mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 14:26:43 +00:00
video-info: use h-cosited chroma for HD video by default
This commit is contained in:
parent
7690d97189
commit
780df29cb1
1 changed files with 5 additions and 2 deletions
|
@ -102,10 +102,13 @@ gst_video_info_set_format (GstVideoInfo * info, GstVideoFormat format,
|
|||
info->height = height;
|
||||
|
||||
if (GST_VIDEO_FORMAT_INFO_IS_YUV (finfo)) {
|
||||
if (height > 576)
|
||||
if (height > 576) {
|
||||
info->chroma_site = GST_VIDEO_CHROMA_SITE_H_COSITED;
|
||||
info->colorimetry = default_color[DEFAULT_YUV_HD];
|
||||
else
|
||||
} else {
|
||||
info->chroma_site = GST_VIDEO_CHROMA_SITE_NONE;
|
||||
info->colorimetry = default_color[DEFAULT_YUV_SD];
|
||||
}
|
||||
} else if (GST_VIDEO_FORMAT_INFO_IS_GRAY (finfo)) {
|
||||
info->colorimetry = default_color[DEFAULT_GRAY];
|
||||
} else if (GST_VIDEO_FORMAT_INFO_IS_RGB (finfo)) {
|
||||
|
|
Loading…
Reference in a new issue