[FFmpeg-cvslog] dsputil: Move ff_svq3 function declarations to a separate header

Diego Biurrun git at videolan.org
Sat Feb 9 13:51:14 CET 2013


ffmpeg | branch: master | Diego Biurrun <diego at biurrun.de> | Thu Feb  7 21:33:31 2013 +0100| [75d5156ac1526c732464d11329cd63a0258b1cae] | committer: Diego Biurrun

dsputil: Move ff_svq3 function declarations to a separate header

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=75d5156ac1526c732464d11329cd63a0258b1cae
---

 libavcodec/dsputil.h |    3 ---
 libavcodec/h264.c    |    1 +
 libavcodec/svq3.c    |    1 +
 libavcodec/svq3.h    |   27 +++++++++++++++++++++++++++
 4 files changed, 29 insertions(+), 3 deletions(-)

diff --git a/libavcodec/dsputil.h b/libavcodec/dsputil.h
index 8b42eee..aadb9a8 100644
--- a/libavcodec/dsputil.h
+++ b/libavcodec/dsputil.h
@@ -50,9 +50,6 @@ void ff_fdct_mmx(int16_t *block);
 void ff_fdct_mmxext(int16_t *block);
 void ff_fdct_sse2(int16_t *block);
 
-void ff_svq3_luma_dc_dequant_idct_c(int16_t *output, int16_t *input, int qp);
-void ff_svq3_add_idct_c(uint8_t *dst, int16_t *block, int stride, int qp, int dc);
-
 /* encoding scans */
 extern const uint8_t ff_alternate_horizontal_scan[64];
 extern const uint8_t ff_alternate_vertical_scan[64];
diff --git a/libavcodec/h264.c b/libavcodec/h264.c
index d52b932..464c403 100644
--- a/libavcodec/h264.c
+++ b/libavcodec/h264.c
@@ -39,6 +39,7 @@
 #include "golomb.h"
 #include "mathops.h"
 #include "rectangle.h"
+#include "svq3.h"
 #include "thread.h"
 #include "vdpau_internal.h"
 #include "libavutil/avassert.h"
diff --git a/libavcodec/svq3.c b/libavcodec/svq3.c
index 4b5a8d0..2fbf40d 100644
--- a/libavcodec/svq3.c
+++ b/libavcodec/svq3.c
@@ -57,6 +57,7 @@
 #endif
 
 #include "svq1.h"
+#include "svq3.h"
 
 /**
  * @file
diff --git a/libavcodec/svq3.h b/libavcodec/svq3.h
new file mode 100644
index 0000000..8c67a23
--- /dev/null
+++ b/libavcodec/svq3.h
@@ -0,0 +1,27 @@
+/*
+ * This file is part of Libav.
+ *
+ * Libav is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * Libav is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with Libav; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+
+#ifndef AVCODEC_SVQ3_H
+#define AVCODEC_SVQ3_H
+
+#include <stdint.h>
+
+void ff_svq3_luma_dc_dequant_idct_c(int16_t *output, int16_t *input, int qp);
+void ff_svq3_add_idct_c(uint8_t *dst, int16_t *block, int stride, int qp, int dc);
+
+#endif /* AVCODEC_DSPUTIL_H */



More information about the ffmpeg-cvslog mailing list