colorspace: set dithering enum directly
This commit is contained in:
parent
afc7483247
commit
0bb6b6f245
@ -557,11 +557,7 @@ gst_csp_transform (GstBaseTransform * btrans, GstBuffer * inbuf,
|
|||||||
space->to_format == GST_VIDEO_FORMAT_UNKNOWN))
|
space->to_format == GST_VIDEO_FORMAT_UNKNOWN))
|
||||||
goto unknown_format;
|
goto unknown_format;
|
||||||
|
|
||||||
if (space->dither) {
|
colorspace_convert_set_dither (space->convert, space->dither);
|
||||||
colorspace_convert_set_dither (space->convert, 1);
|
|
||||||
} else {
|
|
||||||
colorspace_convert_set_dither (space->convert, 0);
|
|
||||||
}
|
|
||||||
|
|
||||||
colorspace_convert_convert (space->convert, GST_BUFFER_DATA (outbuf),
|
colorspace_convert_convert (space->convert, GST_BUFFER_DATA (outbuf),
|
||||||
GST_BUFFER_DATA (inbuf));
|
GST_BUFFER_DATA (inbuf));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user