mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-19 05:45:58 +00:00
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:
parent
23b15aa5d0
commit
4411a4e00f
2 changed files with 12 additions and 1 deletions
|
@ -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) {
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue