summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 6fea255)
raw | patch | inline | side by side (parent: 6fea255)
author | Alessandro Decina <alessandro.decina@collabora.co.uk> | |
Tue, 14 Feb 2012 16:41:40 +0000 (17:41 +0100) | ||
committer | Alessandro Decina <alessandro.decina@collabora.co.uk> | |
Tue, 14 Feb 2012 16:41:40 +0000 (17:41 +0100) |
src/gstducatih264dec.c | patch | blob | history |
diff --git a/src/gstducatih264dec.c b/src/gstducatih264dec.c
index 035aa2158966a7d90593b68fbd1b7490d49e9f1b..a744900eb5517f3f55584eb7e072de7e3cc1ec36 100644 (file)
--- a/src/gstducatih264dec.c
+++ b/src/gstducatih264dec.c
#include "gstducatih264dec.h"
+#define GST_BUFFER_FLAG_B_FRAME (GST_BUFFER_FLAG_LAST << 0)
#define PADX 32
#define PADY 24
return ret;
}
+static gboolean
+gst_ducati_h264dec_drop_frame (GstDucatiVidDec * self, GstBuffer * buf,
+ gint64 diff)
+{
+ gboolean is_bframe = GST_BUFFER_FLAG_IS_SET (buf,
+ GST_BUFFER_FLAG_B_FRAME);
+
+ if (diff >= 0 && is_bframe)
+ return TRUE;
+
+ return FALSE;
+}
+
/* GObject vmethod implementations */
static void
GST_DEBUG_FUNCPTR (gst_ducati_h264dec_update_buffer_size);
bclass->allocate_params =
GST_DEBUG_FUNCPTR (gst_ducati_h264dec_allocate_params);
+ bclass->drop_frame = GST_DEBUG_FUNCPTR (gst_ducati_h264dec_drop_frame);
}
static void