mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-25 01:30:38 +00:00
decoder: default to YUV 4:2:0 VA surfaces.
Cope with context changes to support non-YUV 4:2:0 VA surfaces. Still, make sure all codecs use YUV 4:2:0 output format for now, by default.
This commit is contained in:
parent
1b79049317
commit
dbf32a2521
6 changed files with 6 additions and 0 deletions
|
@ -890,6 +890,7 @@ ensure_context(GstVaapiDecoderH264 *decoder, GstH264SPS *sps)
|
|||
/* XXX: fix surface size when cropping is implemented */
|
||||
info.profile = priv->profile;
|
||||
info.entrypoint = priv->entrypoint;
|
||||
info.chroma_type = GST_VAAPI_CHROMA_TYPE_YUV420;
|
||||
info.width = sps->width;
|
||||
info.height = sps->height;
|
||||
info.ref_frames = get_max_dec_frame_buffering(sps);
|
||||
|
|
|
@ -191,6 +191,7 @@ ensure_context(GstVaapiDecoderJpeg *decoder)
|
|||
|
||||
info.profile = priv->profile;
|
||||
info.entrypoint = entrypoint;
|
||||
info.chroma_type = GST_VAAPI_CHROMA_TYPE_YUV420;
|
||||
info.width = priv->width;
|
||||
info.height = priv->height;
|
||||
info.ref_frames = 2;
|
||||
|
|
|
@ -435,6 +435,7 @@ ensure_context(GstVaapiDecoderMpeg2 *decoder)
|
|||
|
||||
info.profile = priv->hw_profile;
|
||||
info.entrypoint = entrypoint;
|
||||
info.chroma_type = GST_VAAPI_CHROMA_TYPE_YUV420;
|
||||
info.width = priv->width;
|
||||
info.height = priv->height;
|
||||
info.ref_frames = 2;
|
||||
|
|
|
@ -222,6 +222,7 @@ ensure_context(GstVaapiDecoderMpeg4 *decoder)
|
|||
|
||||
info.profile = priv->profile;
|
||||
info.entrypoint = entrypoint;
|
||||
info.chroma_type = GST_VAAPI_CHROMA_TYPE_YUV420;
|
||||
info.width = priv->width;
|
||||
info.height = priv->height;
|
||||
info.ref_frames = 2;
|
||||
|
|
|
@ -215,6 +215,7 @@ ensure_context(GstVaapiDecoderVC1 *decoder)
|
|||
|
||||
info.profile = priv->profile;
|
||||
info.entrypoint = entrypoint;
|
||||
info.chroma_type = GST_VAAPI_CHROMA_TYPE_YUV420;
|
||||
info.width = priv->width;
|
||||
info.height = priv->height;
|
||||
info.ref_frames = 2;
|
||||
|
|
|
@ -173,6 +173,7 @@ ensure_context (GstVaapiDecoderVp8 * decoder)
|
|||
|
||||
info.profile = priv->profile;
|
||||
info.entrypoint = entrypoint;
|
||||
info.chroma_type = GST_VAAPI_CHROMA_TYPE_YUV420;
|
||||
info.width = priv->width;
|
||||
info.height = priv->height;
|
||||
info.ref_frames = 3;
|
||||
|
|
Loading…
Reference in a new issue