[FFmpeg-devel] Patch: remove useless SHIFT_TEMPS definition

avcoder ffmpeg
Tue Oct 20 08:29:05 CEST 2009


Dear:
SHIFT_TEMPS marco definition in jfdctfst.c and jfdctint.c is useless

The following patches remove them

Index: jfdctfst.c
===================================================================
--- jfdctfst.c (revision 20329)
+++ jfdctfst.c (working copy)
@@ -76,7 +76,6 @@
 #define DCTSIZE 8
 #define GLOBAL(x) x
 #define RIGHT_SHIFT(x, n) ((x) >> (n))
-#define SHIFT_TEMPS

 /*
  * This module is specialized to the case DCTSIZE = 8.
@@ -151,7 +150,6 @@
   int_fast16_t z1, z2, z3, z4, z5, z11, z13;
   DCTELEM *dataptr;
   int ctr;
-  SHIFT_TEMPS

   /* Pass 1: process rows. */

@@ -216,7 +214,6 @@
   int_fast16_t z1, z2, z3, z4, z5, z11, z13;
   DCTELEM *dataptr;
   int ctr;
-  SHIFT_TEMPS

   row_fdct(data);

@@ -283,7 +280,6 @@
   int_fast16_t z1;
   DCTELEM *dataptr;
   int ctr;
-  SHIFT_TEMPS

   row_fdct(data);


Index: jfdctint.c
===================================================================
--- jfdctint.c (revision 20329)
+++ jfdctint.c (working copy)
@@ -66,7 +66,6 @@
 #include "libavutil/common.h"
 #include "dsputil.h"

-#define SHIFT_TEMPS
 #define DCTSIZE 8
 #define BITS_IN_JSAMPLE 8
 #define GLOBAL(x) x
@@ -187,7 +186,6 @@
   int_fast32_t z1, z2, z3, z4, z5;
   DCTELEM *dataptr;
   int ctr;
-  SHIFT_TEMPS

   /* Pass 1: process rows. */
   /* Note results are scaled up by sqrt(8) compared to a true DCT; */
@@ -266,7 +264,6 @@
   int_fast32_t z1, z2, z3, z4, z5;
   DCTELEM *dataptr;
   int ctr;
-  SHIFT_TEMPS

   row_fdct(data);

@@ -353,7 +350,6 @@
   int_fast32_t z1;
   DCTELEM *dataptr;
   int ctr;
-  SHIFT_TEMPS

   row_fdct(data);



-- 
-----------------------------------------------------------------------------------------
My key fingerprint: d1:03:f5:32:26:ff:d7:3c:e4:42:e3:51:ec:92:78:b2
Inspired by http://www.nextplayer.net. Your potential. Our passion.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: jfdctfst.diff
Type: application/octet-stream
Size: 723 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20091020/9beedfd9/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: jfdctint.diff
Type: application/octet-stream
Size: 752 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20091020/9beedfd9/attachment-0001.obj>



More information about the ffmpeg-devel mailing list