This is a workaround for bytebuffer mode, as decoder actually uses width
and height as stride and slice height for the output buffer. Changing
only at getParam as the internal value may be used elsewhere.
Backported-from: hardware/samsung_slsi/exynos5
Change-Id: I9360dd5c17cc3f1be206cad65c440cae7d260b5f
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
portDefinition->format.video.eColorFormat =
(OMX_COLOR_FORMATTYPE)Exynos_OSAL_OMX2HalPixelFormat(portDefinition->format.video.eColorFormat);
}
+
+ // WORKAROUND provided by Google engineer
+ if (portIndex == OUTPUT_PORT_INDEX &&
+ (pExynosPort->bufferProcessType & BUFFER_COPY) == BUFFER_COPY) {
+ // Decoder actually uses width and height as stride and slice height for buffer copy.
+ // Changing only at getParam as the internal value may be used elsewhere
+ portDefinition->format.video.nStride = portDefinition->format.video.nFrameWidth;
+ portDefinition->format.video.nSliceHeight = portDefinition->format.video.nFrameHeight;
+ }
}
break;
#endif