OSDN Git Service
(root)
/
coroid
/
libav_saccubus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
890f093
)
skip blocks with small chroma dc too (if the user wants it) needed to avoid IDCT...
author
Michael Niedermayer
<michaelni@gmx.at>
Sat, 17 Aug 2002 20:10:27 +0000
(20:10 +0000)
committer
Michael Niedermayer
<michaelni@gmx.at>
Sat, 17 Aug 2002 20:10:27 +0000
(20:10 +0000)
Originally committed as revision 853 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/mpegvideo.c
patch
|
blob
|
history
diff --git
a/libavcodec/mpegvideo.c
b/libavcodec/mpegvideo.c
index
320e2e4
..
9e8b50b
100644
(file)
--- a/
libavcodec/mpegvideo.c
+++ b/
libavcodec/mpegvideo.c
@@
-1589,7
+1589,11
@@
static inline void dct_single_coeff_elimination(MpegEncContext *s, int n, int th
const int last_index= s->block_last_index[n];
if(skip_dc) skip_dc=1;
-
+ if(threshold<0){
+ skip_dc=0;
+ threshold= -threshold;
+ }
+
/* are all which we could set to zero are allready zero? */
if(last_index<=skip_dc - 1) return;