codecs: h264dec: Make dpb_has_empty_frame_buffer a codecs API.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2373>
This commit is contained in:
He Junyan 2021-07-12 00:01:58 +08:00 committed by GStreamer Marge Bot
parent 23b15aa5d0
commit 4411a4e00f
2 changed files with 12 additions and 1 deletions

View file

@ -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) {

View file

@ -278,6 +278,9 @@ GstH264Picture * gst_h264_dpb_get_picture (GstH264Dpb * dpb,
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,