mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
Skip unnecessary calculations in 4col-mode.
Originally committed as revision 25347 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
90a3ffe276
commit
bbc26bae11
@ -138,7 +138,7 @@ static void render_charset(AVCodecContext *avctx, uint8_t *charset,
|
|||||||
if(INTERLACED) charset[y+0x800] = row2;
|
if(INTERLACED) charset[y+0x800] = row2;
|
||||||
}
|
}
|
||||||
/* do we need to adjust pixels? */
|
/* do we need to adjust pixels? */
|
||||||
if (highdiff > 0 && lowdiff > 0) {
|
if (highdiff > 0 && lowdiff > 0 && c->mc_use_5col) {
|
||||||
if (lowdiff > highdiff) {
|
if (lowdiff > highdiff) {
|
||||||
for (x = 0; x < 32; x++)
|
for (x = 0; x < 32; x++)
|
||||||
best_cb[x] = FFMIN(c->mc_luma_vals[3], best_cb[x]);
|
best_cb[x] = FFMIN(c->mc_luma_vals[3], best_cb[x]);
|
||||||
|
Loading…
Reference in New Issue
Block a user