Commit 42a492c7 authored by benoit's avatar benoit

Remove SHIFT_TEMPS from jfdct code.

Patch by avcoder: our_beloved_project AT gmail DOT com
See thread [FFmpeg-devel] Patch: remove useless SHIFT_TEMPS definition
Date: Tue, 20 Oct 2009 14:29:05 +0800


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@20331 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 2e5a91b3
...@@ -76,7 +76,6 @@ ...@@ -76,7 +76,6 @@
#define DCTSIZE 8 #define DCTSIZE 8
#define GLOBAL(x) x #define GLOBAL(x) x
#define RIGHT_SHIFT(x, n) ((x) >> (n)) #define RIGHT_SHIFT(x, n) ((x) >> (n))
#define SHIFT_TEMPS
/* /*
* This module is specialized to the case DCTSIZE = 8. * This module is specialized to the case DCTSIZE = 8.
...@@ -151,7 +150,6 @@ static av_always_inline void row_fdct(DCTELEM * data){ ...@@ -151,7 +150,6 @@ static av_always_inline void row_fdct(DCTELEM * data){
int_fast16_t z1, z2, z3, z4, z5, z11, z13; int_fast16_t z1, z2, z3, z4, z5, z11, z13;
DCTELEM *dataptr; DCTELEM *dataptr;
int ctr; int ctr;
SHIFT_TEMPS
/* Pass 1: process rows. */ /* Pass 1: process rows. */
...@@ -216,7 +214,6 @@ fdct_ifast (DCTELEM * data) ...@@ -216,7 +214,6 @@ fdct_ifast (DCTELEM * data)
int_fast16_t z1, z2, z3, z4, z5, z11, z13; int_fast16_t z1, z2, z3, z4, z5, z11, z13;
DCTELEM *dataptr; DCTELEM *dataptr;
int ctr; int ctr;
SHIFT_TEMPS
row_fdct(data); row_fdct(data);
...@@ -283,7 +280,6 @@ fdct_ifast248 (DCTELEM * data) ...@@ -283,7 +280,6 @@ fdct_ifast248 (DCTELEM * data)
int_fast16_t z1; int_fast16_t z1;
DCTELEM *dataptr; DCTELEM *dataptr;
int ctr; int ctr;
SHIFT_TEMPS
row_fdct(data); row_fdct(data);
......
...@@ -66,7 +66,6 @@ ...@@ -66,7 +66,6 @@
#include "libavutil/common.h" #include "libavutil/common.h"
#include "dsputil.h" #include "dsputil.h"
#define SHIFT_TEMPS
#define DCTSIZE 8 #define DCTSIZE 8
#define BITS_IN_JSAMPLE 8 #define BITS_IN_JSAMPLE 8
#define GLOBAL(x) x #define GLOBAL(x) x
...@@ -187,7 +186,6 @@ static av_always_inline void row_fdct(DCTELEM * data){ ...@@ -187,7 +186,6 @@ static av_always_inline void row_fdct(DCTELEM * data){
int_fast32_t z1, z2, z3, z4, z5; int_fast32_t z1, z2, z3, z4, z5;
DCTELEM *dataptr; DCTELEM *dataptr;
int ctr; int ctr;
SHIFT_TEMPS
/* Pass 1: process rows. */ /* Pass 1: process rows. */
/* Note results are scaled up by sqrt(8) compared to a true DCT; */ /* Note results are scaled up by sqrt(8) compared to a true DCT; */
...@@ -266,7 +264,6 @@ ff_jpeg_fdct_islow (DCTELEM * data) ...@@ -266,7 +264,6 @@ ff_jpeg_fdct_islow (DCTELEM * data)
int_fast32_t z1, z2, z3, z4, z5; int_fast32_t z1, z2, z3, z4, z5;
DCTELEM *dataptr; DCTELEM *dataptr;
int ctr; int ctr;
SHIFT_TEMPS
row_fdct(data); row_fdct(data);
...@@ -353,7 +350,6 @@ ff_fdct248_islow (DCTELEM * data) ...@@ -353,7 +350,6 @@ ff_fdct248_islow (DCTELEM * data)
int_fast32_t z1; int_fast32_t z1;
DCTELEM *dataptr; DCTELEM *dataptr;
int ctr; int ctr;
SHIFT_TEMPS
row_fdct(data); row_fdct(data);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment