mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-28 11:55:39 +00:00
libs: decoder: h264: add setter for base-only mode
https://bugzilla.gnome.org/show_bug.cgi?id=732265
This commit is contained in:
parent
bd040adb9c
commit
1dd03ac2fd
2 changed files with 23 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue