summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: c875278)
raw | patch | inline | side by side (parent: c875278)
author | Vincent Penquerc'h <vincent.penquerch@collabora.co.uk> | |
Tue, 17 Jul 2012 11:14:09 +0000 (11:14 +0000) | ||
committer | Vincent Penquerc'h <vincent.penquerch@collabora.co.uk> | |
Tue, 17 Jul 2012 11:14:09 +0000 (11:14 +0000) |
This makes it less confusing, as I thought drop_frame was actually
dropping the frame before looking at the implementation.
dropping the frame before looking at the implementation.
src/gstducatih264dec.c | patch | blob | history | |
src/gstducativc1dec.c | patch | blob | history | |
src/gstducatividdec.c | patch | blob | history | |
src/gstducatividdec.h | patch | blob | history |
diff --git a/src/gstducatih264dec.c b/src/gstducatih264dec.c
index 47456150e086669e681c08c4a73ec1d4270986ca..8ad8b48eb543ab07ab9536cbcde8a141e60f5549 100644 (file)
--- a/src/gstducatih264dec.c
+++ b/src/gstducatih264dec.c
}
static gboolean
-gst_ducati_h264dec_drop_frame (GstDucatiVidDec * self, GstBuffer * buf,
+gst_ducati_h264dec_can_drop_frame (GstDucatiVidDec * self, GstBuffer * buf,
gint64 diff)
{
gboolean is_bframe = GST_BUFFER_FLAG_IS_SET (buf,
bclass->allocate_params =
GST_DEBUG_FUNCPTR (gst_ducati_h264dec_allocate_params);
bclass->handle_error = GST_DEBUG_FUNCPTR (gst_ducati_h264dec_handle_error);
- bclass->drop_frame = GST_DEBUG_FUNCPTR (gst_ducati_h264dec_drop_frame);
+ bclass->can_drop_frame = GST_DEBUG_FUNCPTR (gst_ducati_h264dec_can_drop_frame);
bclass->query = GST_DEBUG_FUNCPTR (gst_ducati_h264dec_query);
}
diff --git a/src/gstducativc1dec.c b/src/gstducativc1dec.c
index 2c4067135b22393eb3be2cf062ff9708b26ee5d5..8815d2bdd9f3f8d61783be91aeb94a611d1b9fef 100644 (file)
--- a/src/gstducativc1dec.c
+++ b/src/gstducativc1dec.c
}
static gboolean
-gst_ducati_vc1dec_drop_frame (GstDucatiVidDec * self, GstBuffer * buf,
+gst_ducati_vc1dec_can_drop_frame (GstDucatiVidDec * self, GstBuffer * buf,
gint64 diff)
{
gboolean is_bframe = GST_BUFFER_FLAG_IS_SET (buf,
bclass->push_input =
GST_DEBUG_FUNCPTR (gst_ducati_vc1dec_push_input);
bclass->handle_error = GST_DEBUG_FUNCPTR (gst_ducati_vc1dec_handle_error);
- bclass->drop_frame = GST_DEBUG_FUNCPTR (gst_ducati_vc1dec_drop_frame);
+ bclass->can_drop_frame = GST_DEBUG_FUNCPTR (gst_ducati_vc1dec_can_drop_frame);
}
static void
diff --git a/src/gstducatividdec.c b/src/gstducatividdec.c
index afb36749a5c47048a6f095e1c685cd4c4beb2f01..3a4c95f0bfbd8f07efe2db24c6c66563642a4ef5 100644 (file)
--- a/src/gstducatividdec.c
+++ b/src/gstducatividdec.c
GST_TIME_ARGS (qostime), GST_TIME_ARGS (self->qos_earliest_time), diff,
self->qos_proportion);
- if (klass->drop_frame (self, buf, diff)) {
+ if (klass->can_drop_frame (self, buf, diff)) {
GST_INFO_OBJECT (self, "dropping frame");
return FALSE;
}
}
static gboolean
-gst_ducati_viddec_drop_frame (GstDucatiVidDec * self, GstBuffer * buf,
+gst_ducati_viddec_can_drop_frame (GstDucatiVidDec * self, GstBuffer * buf,
gint64 diff)
{
gboolean is_keyframe = !GST_BUFFER_FLAG_IS_SET (buf,
GST_DEBUG_FUNCPTR (gst_ducati_viddec_allocate_params);
klass->push_input = GST_DEBUG_FUNCPTR (gst_ducati_viddec_push_input);
klass->handle_error = GST_DEBUG_FUNCPTR (gst_ducati_viddec_handle_error);
- klass->drop_frame = GST_DEBUG_FUNCPTR (gst_ducati_viddec_drop_frame);
+ klass->can_drop_frame = GST_DEBUG_FUNCPTR (gst_ducati_viddec_can_drop_frame);
klass->query = GST_DEBUG_FUNCPTR (gst_ducati_viddec_query);
g_object_class_install_property (gobject_class, PROP_VERSION,
diff --git a/src/gstducatividdec.h b/src/gstducatividdec.h
index 0b5e2a536541ce8c1a1c996e55b24c1b8a6e1c25..1aac4aaf0323f0b1e9fffd5fc6b7a58dfa470e7d 100644 (file)
--- a/src/gstducatividdec.h
+++ b/src/gstducatividdec.h
/**
* Called to check whether it's a good idea to drop buf or not.
*/
- gboolean (*drop_frame) (GstDucatiVidDec * self, GstBuffer * buf, gint64 diff);
+ gboolean (*can_drop_frame) (GstDucatiVidDec * self, GstBuffer * buf, gint64 diff);
gboolean (*query) (GstDucatiVidDec * self, GstPad * pad, GstQuery * query,
gboolean * forward);