summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 2a82c3f)
raw | patch | inline | side by side (parent: 2a82c3f)
author | Alessandro Decina <alessandro.decina@collabora.co.uk> | |
Tue, 29 Nov 2011 19:37:30 +0000 (20:37 +0100) | ||
committer | Alessandro Decina <alessandro.decina@collabora.co.uk> | |
Tue, 29 Nov 2011 19:37:30 +0000 (20:37 +0100) |
src/gstducatividdec.c | patch | blob | history |
diff --git a/src/gstducatividdec.c b/src/gstducatividdec.c
index 97a9aa14e67078868e603f20993650360732ef0d..63082d9182a480f2c144c7262dca7d6425fe1aa4 100644 (file)
--- a/src/gstducatividdec.c
+++ b/src/gstducatividdec.c
if (G_UNLIKELY (self->first_out_buffer) && send) {
gint crop_width, crop_height;
GstDucatiBufferPool *pool;
+ GstDucatiVidDecClass *klass = GST_DUCATIVIDDEC_GET_CLASS (self);
/* send region of interest to sink on first buffer: */
XDM_Rect *r = &(self->outArgs->displayBufs.bufDesc[0].activeFrameRegion);
if (crop_height > self->input_height)
crop_height = self->input_height;
+ if (self->interlaced && !strcmp (klass->codec_name, "ivahd_mpeg2vdec"))
+ crop_height = crop_height / 2;
+
GST_INFO_OBJECT (self, "active frame region %d, %d, %d, %d, crop %dx%d",
r->topLeft.x, r->topLeft.y, r->bottomRight.x, r->bottomRight.y,
crop_width, crop_height);