diff options
author | orestisf <orestisf1993@gmail.com> | 2017-07-25 22:03:34 +0300 |
---|---|---|
committer | Víctor Manuel Jáquez Leal <vjaquez@igalia.com> | 2017-08-03 17:07:09 +0200 |
commit | 1dd03ac2fdf97cd2d9d018a5bd6bc1808f623f7e (patch) | |
tree | 1ee8bdbf0297636f48caf98551844408e3ea8b6b | |
parent | bd040adb9c93efd2f30154a6e11a2ac46c6b9462 (diff) |
libs: decoder: h264: add setter for base-only mode
https://bugzilla.gnome.org/show_bug.cgi?id=732265
-rw-r--r-- | gst-libs/gst/vaapi/gstvaapidecoder_h264.c | 19 | ||||
-rw-r--r-- | gst-libs/gst/vaapi/gstvaapidecoder_h264.h | 4 |
2 files changed, 23 insertions, 0 deletions
diff --git a/gst-libs/gst/vaapi/gstvaapidecoder_h264.c b/gst-libs/gst/vaapi/gstvaapidecoder_h264.c index 9c961807..c5c5fddc 100644 --- a/gst-libs/gst/vaapi/gstvaapidecoder_h264.c +++ b/gst-libs/gst/vaapi/gstvaapidecoder_h264.c @@ -530,6 +530,7 @@ struct _GstVaapiDecoderH264Private guint top_field_first:1; gboolean force_low_latency; + gboolean base_only; }; /** @@ -4801,6 +4802,24 @@ gst_vaapi_decoder_h264_set_alignment (GstVaapiDecoderH264 * decoder, } /** + * 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 * @force_low_latency: %TRUE if force low latency diff --git a/gst-libs/gst/vaapi/gstvaapidecoder_h264.h b/gst-libs/gst/vaapi/gstvaapidecoder_h264.h index 9ca65cfc..d1706381 100644 --- a/gst-libs/gst/vaapi/gstvaapidecoder_h264.h +++ b/gst-libs/gst/vaapi/gstvaapidecoder_h264.h @@ -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 */ |