[FFmpeg-cvslog] Merge commit '34c22a9ca656603428b2c3490d1339c5a5966961'
Clément Bœsch
git at videolan.org
Sun Mar 19 17:00:45 EET 2017
ffmpeg | branch: master | Clément Bœsch <u at pkh.me> | Sun Mar 19 16:00:21 2017 +0100| [7a6514861ecf26fe7f892ddc494c063c5d093023] | committer: Clément Bœsch
Merge commit '34c22a9ca656603428b2c3490d1339c5a5966961'
* commit '34c22a9ca656603428b2c3490d1339c5a5966961':
faan(i)dct: Kill some disabled code
Merged-by: Clément Bœsch <u at pkh.me>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=7a6514861ecf26fe7f892ddc494c063c5d093023
---
libavcodec/faandct.c | 20 ++------------------
libavcodec/faanidct.c | 9 ---------
2 files changed, 2 insertions(+), 27 deletions(-)
diff --git a/libavcodec/faandct.c b/libavcodec/faandct.c
index b683072..38c392b 100644
--- a/libavcodec/faandct.c
+++ b/libavcodec/faandct.c
@@ -96,17 +96,9 @@ static av_always_inline void row_fdct(FLOAT temp[64], int16_t *data)
tmp5 += tmp6;
tmp6 += tmp7;
-#if 0
- {
- FLOAT z5;
- z5 = (tmp4 - tmp6) * A5;
- z2 = tmp4 * A2 + z5;
- z4 = tmp6 * A4 + z5;
- }
-#else
z2= tmp4*(A2+A5) - tmp6*A5;
z4= tmp6*(A4-A5) + tmp4*A5;
-#endif
+
tmp5*=A1;
z11= tmp7 + tmp5;
@@ -158,17 +150,9 @@ void ff_faandct(int16_t *data)
tmp5 += tmp6;
tmp6 += tmp7;
-#if 0
- {
- FLOAT z5;
- z5 = (tmp4 - tmp6) * A5;
- z2 = tmp4 * A2 + z5;
- z4 = tmp6 * A4 + z5;
- }
-#else
z2= tmp4*(A2+A5) - tmp6*A5;
z4= tmp6*(A4-A5) + tmp4*A5;
-#endif
+
tmp5*=A1;
z11= tmp7 + tmp5;
diff --git a/libavcodec/faanidct.c b/libavcodec/faanidct.c
index bbaaa3f..2aab726 100644
--- a/libavcodec/faanidct.c
+++ b/libavcodec/faanidct.c
@@ -62,17 +62,8 @@ static inline void p8idct(int16_t data[64], FLOAT temp[64], uint8_t *dest, int s
od07= s17 + s53;
od25= (s17 - s53)*(2*A4);
-#if 0 //these 2 are equivalent
- {
- FLOAT tmp0;
- tmp0 = (d17 + d53) * (2 * A2);
- od34 = d17 * (2 * B6) - tmp0;
- od16 = d53 * (-2 * B2) + tmp0;
- }
-#else
od34= d17*(2*(B6-A2)) - d53*(2*A2);
od16= d53*(2*(A2-B2)) + d17*(2*A2);
-#endif
od16 -= od07;
od25 -= od16;
======================================================================
More information about the ffmpeg-cvslog
mailing list