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.

Extract YUV data from OMX_TI_COLOR_FormatYUV420PackedSemiPlanar on FillBufferDone callback received from OMX

Hello,

I need a pointer to the UV data in OMX_TI_COLOR_FormatYUV420PackedSemiPlanar  decoded buffer

int stride = 4096;
int frame_yoffset = 24;
int frame_xoffset = 32;

uint32_t ybuf_offset = frame_yoffset * stride + frame_xoffset;
uint8_t* p1y = (uint8_t*)srcbuffer + ybuf_offset;

int width = 1280;
int height = 720;

uint32_t UV_offset = frame_xoffset + (frame_yoffset * stride)/2;

I am able to extract Y data correctly.

But i need a pointer to UV data

*pUV = (uint8_t*)srcbuffer + ??


please could you give me sample code or necessary information to extract UV plane data


Thanks

- Vinit