changeset 474:11dbd00682fc libavcodec

avoid name clash with libjpeg - added missing externs
author bellard
date Tue, 04 Jun 2002 12:58:40 +0000
parents 1ca0876f99bc
children 6ccc48e4c41b
files dct-test.c dsputil.c dsputil.h jfdctfst.c mpegvideo.c
diffstat 5 files changed, 8 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/dct-test.c	Tue Jun 04 12:56:04 2002 +0000
+++ b/dct-test.c	Tue Jun 04 12:58:40 2002 +0000
@@ -90,7 +90,7 @@
         fdct_func(block);
         emms(); /* for ff_mmx_idct */
 
-        if (fdct_func == jpeg_fdct_ifast) {
+        if (fdct_func == fdct_ifast) {
             for(i=0; i<64; i++) {
                 scale = (1 << (AANSCALE_BITS + 11)) / aanscales[i];
                 block[i] = (block[i] * scale) >> AANSCALE_BITS;
@@ -173,7 +173,7 @@
 
     if (!test_idct) {
         dct_error("REF", 0, fdct, fdct); /* only to verify code ! */
-        dct_error("AAN", 0, jpeg_fdct_ifast, fdct);
+        dct_error("AAN", 0, fdct_ifast, fdct);
         dct_error("MMX", 0, fdct_mmx, fdct);
     } else {
         dct_error("REF", 1, idct, idct);
--- a/dsputil.c	Tue Jun 04 12:56:04 2002 +0000
+++ b/dsputil.c	Tue Jun 04 12:58:40 2002 +0000
@@ -23,6 +23,7 @@
 #include "simple_idct.h"
 
 void (*ff_idct)(DCTELEM *block);
+void (*av_fdct)(DCTELEM *block);
 void (*get_pixels)(DCTELEM *block, const UINT8 *pixels, int line_size);
 void (*diff_pixels)(DCTELEM *block, const UINT8 *s1, const UINT8 *s2, int stride);
 void (*put_pixels_clamped)(const DCTELEM *block, UINT8 *pixels, int line_size);
@@ -1278,7 +1279,7 @@
     pix_abs8x8_x2  = pix_abs8x8_x2_c;
     pix_abs8x8_y2  = pix_abs8x8_y2_c;
     pix_abs8x8_xy2 = pix_abs8x8_xy2_c;
-    av_fdct = jpeg_fdct_ifast;
+    av_fdct = fdct_ifast;
 
     use_permuted_idct = 1;
 
--- a/dsputil.h	Tue Jun 04 12:56:04 2002 +0000
+++ b/dsputil.h	Tue Jun 04 12:58:40 2002 +0000
@@ -26,13 +26,13 @@
 /* dct code */
 typedef short DCTELEM;
 
-void jpeg_fdct_ifast (DCTELEM *data);
+void fdct_ifast (DCTELEM *data);
 
 void j_rev_dct (DCTELEM *data);
 
 void fdct_mmx(DCTELEM *block);
 
-void (*av_fdct)(DCTELEM *block);
+extern void (*av_fdct)(DCTELEM *block);
 
 /* encoding scans */
 extern UINT8 ff_alternate_horizontal_scan[64];
--- a/jfdctfst.c	Tue Jun 04 12:56:04 2002 +0000
+++ b/jfdctfst.c	Tue Jun 04 12:58:40 2002 +0000
@@ -113,7 +113,7 @@
  */
 
 GLOBAL(void)
-jpeg_fdct_ifast (DCTELEM * data)
+fdct_ifast (DCTELEM * data)
 {
   DCTELEM tmp0, tmp1, tmp2, tmp3, tmp4, tmp5, tmp6, tmp7;
   DCTELEM tmp10, tmp11, tmp12, tmp13;
--- a/mpegvideo.c	Tue Jun 04 12:56:04 2002 +0000
+++ b/mpegvideo.c	Tue Jun 04 12:58:40 2002 +0000
@@ -81,7 +81,7 @@
 
     for(qscale=1; qscale<32; qscale++){
         int i;
-        if (av_fdct == jpeg_fdct_ifast) {
+        if (av_fdct == fdct_ifast) {
             for(i=0;i<64;i++) {
                 const int j= block_permute_op(i);
                 /* 16 <= qscale * quant_matrix[i] <= 7905 */