This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

gralloc.omap3.so YV12 buffer stride bug

Hi,

The gralloc.omap3.so (ddk 1.8) published on rowboat gitorious http://gitorious.org/rowboat/hardware-ti-sgx aligns the stride of allocated YV12 buffers to 8 bytes instead of the correct 16 byte alignment that YV12 requires.

Because of that, rendering videos with width not multiple of 16 to YV12 buffer becomes complicated (a pillarbox has to be used to manually align the video width to 16 bytes to get the buffer stride aligned to 16 bytes).

mAllocDev->alloc(mAllocDev, 840, 480, HAL_PIXEL_FORMAT_YV12, usage, handle, stride);
returns stride 840, while the correct stride should be 848.

Can this issue be fixed please?

Best Regards,
Pavel