diff options
author | He Junyan <junyan.he@intel.com> | 2021-07-12 00:01:58 +0800 |
---|---|---|
committer | GStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org> | 2021-07-21 15:23:17 +0000 |
commit | 4411a4e00f7a3274cad5aebaa541cfd8f8b68fe8 (patch) | |
tree | 9d6391e7bf4cda52c73c9354bb82526de8ec6263 /gst-libs | |
parent | 23b15aa5d066d73a0691d982e764309fe8c0802a (diff) | |
download | gstreamer-plugins-bad-4411a4e00f7a3274cad5aebaa541cfd8f8b68fe8.tar.gz |
codecs: h264dec: Make dpb_has_empty_frame_buffer a codecs API.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2373>
Diffstat (limited to 'gst-libs')
-rw-r--r-- | gst-libs/gst/codecs/gsth264picture.c | 10 | ||||
-rw-r--r-- | gst-libs/gst/codecs/gsth264picture.h | 3 |
2 files changed, 12 insertions, 1 deletions
diff --git a/gst-libs/gst/codecs/gsth264picture.c b/gst-libs/gst/codecs/gsth264picture.c index b5a1de5f1..0f23455a2 100644 --- a/gst-libs/gst/codecs/gsth264picture.c +++ b/gst-libs/gst/codecs/gsth264picture.c @@ -587,7 +587,15 @@ gst_h264_dpb_get_picture (GstH264Dpb * dpb, guint32 system_frame_number) return NULL; } -static gboolean +/** + * gst_h264_dpb_has_empty_frame_buffer: + * @dpb: a #GstH264Dpb + * + * Returns: %TRUE if @dpb still has empty frame buffers. + * + * Since: 1.20 + */ +gboolean gst_h264_dpb_has_empty_frame_buffer (GstH264Dpb * dpb) { if (!dpb->interlaced) { diff --git a/gst-libs/gst/codecs/gsth264picture.h b/gst-libs/gst/codecs/gsth264picture.h index bdf99b5b0..5bedfe132 100644 --- a/gst-libs/gst/codecs/gsth264picture.h +++ b/gst-libs/gst/codecs/gsth264picture.h @@ -279,6 +279,9 @@ GST_CODECS_API gint gst_h264_dpb_get_size (GstH264Dpb * dpb); GST_CODECS_API +gboolean gst_h264_dpb_has_empty_frame_buffer (GstH264Dpb * dpb); + +GST_CODECS_API gboolean gst_h264_dpb_needs_bump (GstH264Dpb * dpb, guint32 max_num_reorder_frames, gboolean low_latency); |