mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-20 00:31:13 +00:00
video-converter: also chroma up/downsample when scaling
This commit is contained in:
parent
6a529cb1dd
commit
5c3c42b95d
1 changed files with 3 additions and 1 deletions
|
@ -1126,7 +1126,9 @@ video_converter_compute_resample (GstVideoConverter * convert)
|
||||||
|
|
||||||
if (sfinfo->w_sub[2] != dfinfo->w_sub[2] ||
|
if (sfinfo->w_sub[2] != dfinfo->w_sub[2] ||
|
||||||
sfinfo->h_sub[2] != dfinfo->h_sub[2] ||
|
sfinfo->h_sub[2] != dfinfo->h_sub[2] ||
|
||||||
in_info->chroma_site != out_info->chroma_site) {
|
in_info->chroma_site != out_info->chroma_site ||
|
||||||
|
in_info->width != out_info->width ||
|
||||||
|
in_info->height != out_info->height) {
|
||||||
GstVideoChromaFlags flags = (GST_VIDEO_INFO_IS_INTERLACED (in_info) ?
|
GstVideoChromaFlags flags = (GST_VIDEO_INFO_IS_INTERLACED (in_info) ?
|
||||||
GST_VIDEO_CHROMA_FLAG_INTERLACED : 0);
|
GST_VIDEO_CHROMA_FLAG_INTERLACED : 0);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue