summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: c7c8309)
raw | patch | inline | side by side (parent: c7c8309)
author | Luciana Fujii Pontello <luciana.fujii@collabora.co.uk> | |
Thu, 22 Mar 2012 01:41:32 +0000 (21:41 -0400) | ||
committer | Luciana Fujii Pontello <luciana.fujii@collabora.co.uk> | |
Thu, 29 Mar 2012 01:40:20 +0000 (21:40 -0400) |
src/gstducatividdec.c | patch | blob | history |
diff --git a/src/gstducatividdec.c b/src/gstducatividdec.c
index ebef4f256f13417926752447d914b13ddcd5494d..43210248856d9d3d3c55e83e8df669c1549ad272 100644 (file)
--- a/src/gstducatividdec.c
+++ b/src/gstducatividdec.c
self->outBufs->descs[0].buf = (XDAS_Int8 *) y_paddr;
self->outBufs->descs[1].buf = (XDAS_Int8 *) uv_paddr;
- return (XDAS_Int32) *buf; // XXX use lookup table
+ return (XDAS_Int32) * buf; // XXX use lookup table
}
static GstBuffer *
outbuf = codec_get_outbuf (self, self->outArgs->outputID[i]);
- interlaced = self->outArgs->decodedBufs.contentType == IVIDEO_PROGRESSIVE ? FALSE : TRUE;
+ interlaced =
+ self->outArgs->decodedBufs.contentType ==
+ IVIDEO_PROGRESSIVE ? FALSE : TRUE;
/* if send is FALSE, don't try to renegotiate as we could be flushing during
* a PAUSED->READY state change
self->interlaced = interlaced;
- caps = gst_caps_make_writable (gst_pad_get_negotiated_caps (self->srcpad));
+ caps =
+ gst_caps_make_writable (gst_pad_get_negotiated_caps (self->srcpad));
GST_INFO_OBJECT (self, "changing interlace field in caps");
- gst_caps_set_simple (caps, "interlaced", G_TYPE_BOOLEAN, interlaced, NULL);
+ gst_caps_set_simple (caps, "interlaced", G_TYPE_BOOLEAN, interlaced,
+ NULL);
gst_ducati_bufferpool_set_caps (self->pool, caps);
if (!gst_pad_set_caps (self->srcpad, caps)) {
- GST_ERROR_OBJECT (self, "downstream didn't want to change interlace mode");
+ GST_ERROR_OBJECT (self,
+ "downstream didn't want to change interlace mode");
err = XDM_EFAIL;
}
gst_caps_unref (caps);
i, outbuf, GST_TIME_ARGS (ts));
if (self->ts_may_be_pts) {
- if ((self->last_pts != GST_CLOCK_TIME_NONE) &&
- (self->last_pts > ts)) {
+ if ((self->last_pts != GST_CLOCK_TIME_NONE) && (self->last_pts > ts)) {
GST_DEBUG_OBJECT (self, "detected PTS going backwards, "
"enabling ts_is_pts");
self->ts_is_pts = TRUE;
/* Pass new output buffer to the decoder to decode into. Use buffers from the
* internal pool while self->first_out_buffer == TRUE in order to simplify
* things in case we need to renegotiate */
- self->inArgs->inputID = codec_prepare_outbuf (self, &outbuf, self->first_out_buffer);
+ self->inArgs->inputID =
+ codec_prepare_outbuf (self, &outbuf, self->first_out_buffer);
if (!self->inArgs->inputID) {
GST_ERROR_OBJECT (self, "could not prepare output buffer");
return GST_FLOW_ERROR;
/* if next buffer has earlier ts than previous, then the ts
* we are getting are definitely decode order (DTS):
*/
- if ((self->last_dts != GST_CLOCK_TIME_NONE) &&
- (self->last_dts > ts)) {
+ if ((self->last_dts != GST_CLOCK_TIME_NONE) && (self->last_dts > ts)) {
GST_DEBUG_OBJECT (self, "input timestamp definitely DTS");
self->ts_may_be_pts = FALSE;
}