mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 18:21:04 +00:00
video-converter: only do dithering when needed
Only do dithering when one of the quantizers is > 1.
This commit is contained in:
parent
e397b03f35
commit
6757296386
1 changed files with 2 additions and 1 deletions
|
@ -1466,10 +1466,11 @@ chain_dither (GstVideoConverter * convert, GstLineCache * prev)
|
|||
flags |= GST_VIDEO_DITHER_FLAG_QUANTIZE;
|
||||
quant[i] = target_quant;
|
||||
}
|
||||
do_dither = TRUE;
|
||||
} else {
|
||||
quant[i] = 0;
|
||||
}
|
||||
if (quant[i] > 1)
|
||||
do_dither = TRUE;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue