libs: decoder: h264: add setter for base-only mode

https://bugzilla.gnome.org/show_bug.cgi?id=732265
This commit is contained in:
orestisf 2017-07-25 22:03:34 +03:00 committed by Víctor Manuel Jáquez Leal
parent bd040adb9c
commit 1dd03ac2fd
2 changed files with 23 additions and 0 deletions

View file

@ -530,6 +530,7 @@ struct _GstVaapiDecoderH264Private
guint top_field_first:1;
gboolean force_low_latency;
gboolean base_only;
};
/**
@ -4800,6 +4801,24 @@ gst_vaapi_decoder_h264_set_alignment (GstVaapiDecoderH264 * decoder,
decoder->priv.stream_alignment = alignment;
}
/**
* gst_vaapi_decoder_h264_set_base_only:
* @decoder: a #GstVaapiDecoderH264
* @base_only: %TRUE to force decoding the base view only
*
* if @base_only is %TRUE only the base view of MVC encoded streams
* is decoded.
*
**/
void
gst_vaapi_decoder_h264_set_base_only (GstVaapiDecoderH264 * decoder,
gboolean base_only)
{
g_return_if_fail (decoder != NULL);
decoder->priv.base_only = base_only;
}
/**
* gst_vaapi_decoder_h264_set_low_latency:
* @decoder: a #GstVaapiDecoderH264

View file

@ -62,6 +62,10 @@ void
gst_vaapi_decoder_h264_set_low_latency(GstVaapiDecoderH264 * decoder,
gboolean force_low_latency);
void
gst_vaapi_decoder_h264_set_base_only(GstVaapiDecoderH264 * decoder,
gboolean base_only);
G_END_DECLS
#endif /* GST_VAAPI_DECODER_H264_H */