mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-25 01:30:38 +00:00
va: basedec: Fix some artifact when do the crop copy.
The default video converter setting will add some artifact into the picture for 10/12 bits conversion. This make the MD5 checksum change from the original picture. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2379>
This commit is contained in:
parent
0d2664c668
commit
77a2ad5b1a
1 changed files with 6 additions and 0 deletions
|
@ -856,6 +856,12 @@ _copy_buffer_and_apply_video_crop (GstVaBaseDec * base,
|
||||||
if (!base->convert) {
|
if (!base->convert) {
|
||||||
base->convert = gst_video_converter_new (&src_frame->info, &dst_info,
|
base->convert = gst_video_converter_new (&src_frame->info, &dst_info,
|
||||||
gst_structure_new ("options",
|
gst_structure_new ("options",
|
||||||
|
GST_VIDEO_CONVERTER_OPT_DITHER_METHOD,
|
||||||
|
GST_TYPE_VIDEO_DITHER_METHOD, GST_VIDEO_DITHER_NONE,
|
||||||
|
GST_VIDEO_CONVERTER_OPT_DITHER_QUANTIZATION,
|
||||||
|
G_TYPE_UINT, 0,
|
||||||
|
GST_VIDEO_CONVERTER_OPT_CHROMA_MODE,
|
||||||
|
GST_TYPE_VIDEO_CHROMA_MODE, GST_VIDEO_CHROMA_MODE_NONE,
|
||||||
GST_VIDEO_CONVERTER_OPT_MATRIX_MODE,
|
GST_VIDEO_CONVERTER_OPT_MATRIX_MODE,
|
||||||
GST_TYPE_VIDEO_MATRIX_MODE, GST_VIDEO_MATRIX_MODE_NONE,
|
GST_TYPE_VIDEO_MATRIX_MODE, GST_VIDEO_MATRIX_MODE_NONE,
|
||||||
GST_VIDEO_CONVERTER_OPT_SRC_X, G_TYPE_INT, video_crop->x,
|
GST_VIDEO_CONVERTER_OPT_SRC_X, G_TYPE_INT, video_crop->x,
|
||||||
|
|
Loading…
Reference in a new issue