summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrijesh.singh <brijesh.singh@24075187-2e39-4e88-bbb8-bc8aa768f540>2011-01-18 17:03:14 +0000
committerbrijesh.singh <brijesh.singh@24075187-2e39-4e88-bbb8-bc8aa768f540>2011-01-18 17:03:14 +0000
commit2a9fc4f10bc333e6828b428328a86edd5b667063 (patch)
treee59396c0fce9f1a5e6fe3a3f56541939e14a9e6c
parentf72d17a8c9bd1bbcb8b7a0c1582a4428429deb4d (diff)
DMAI causes asseration when X or Y offset are not even on some platforms. This patch updates X and Y offset to make it even to avoid asserations.
git-svn-id: https://gstreamer.ti.com/svn/gstreamer_ti/trunk@899 24075187-2e39-4e88-bbb8-bc8aa768f540
-rw-r--r--gstreamer_ti/ti_build/ticodecplugin/src/gsttidmaivideosink.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/gstreamer_ti/ti_build/ticodecplugin/src/gsttidmaivideosink.c b/gstreamer_ti/ti_build/ticodecplugin/src/gsttidmaivideosink.c
index ec86214..54ddbda 100644
--- a/gstreamer_ti/ti_build/ticodecplugin/src/gsttidmaivideosink.c
+++ b/gstreamer_ti/ti_build/ticodecplugin/src/gsttidmaivideosink.c
@@ -1764,6 +1764,17 @@ static GstFlowReturn gst_tidmaivideosink_render(GstBaseSink * bsink,
dim.y = (dim.height - sink->dGfxAttrs.dim.height) / 2;
dim.height = sink->dGfxAttrs.dim.height;
}
+
+ #if defined(Platform_dm365) || defined(Platform_dm368)
+ /* Y must be even otherwise DMAI will report asseration */
+ dim.y = dim.y & 0xFFFE;
+ #endif
+
+ #if defined(Platform_omap3530) || defined(Platform_dm3730)
+ /* X must be even otherwise DMAI will report asseration */
+ dim.x = dim.x & 0xFFFE;
+ #endif
+
BufferGfx_setDimensions(hDispBuf, &dim);
/* DM6467 Only: Color convert the 420Psemi decoded buffer from