mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
video-converter: don't do dither when set to NONE
This commit is contained in:
parent
e16377c0c8
commit
620dc30d0f
1 changed files with 3 additions and 0 deletions
|
@ -1500,6 +1500,9 @@ chain_dither (GstVideoConverter * convert, GstLineCache * prev)
|
||||||
guint quant[4], target_quant;
|
guint quant[4], target_quant;
|
||||||
|
|
||||||
method = GET_OPT_DITHER_METHOD (convert);
|
method = GET_OPT_DITHER_METHOD (convert);
|
||||||
|
if (method == GST_VIDEO_DITHER_NONE)
|
||||||
|
return prev;
|
||||||
|
|
||||||
target_quant = GET_OPT_DITHER_QUANTIZATION (convert);
|
target_quant = GET_OPT_DITHER_QUANTIZATION (convert);
|
||||||
GST_DEBUG ("method %d, target-quantization %d", method, target_quant);
|
GST_DEBUG ("method %d, target-quantization %d", method, target_quant);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue