Hi,
I'm using one of the omx demo with SATA writing enabled.
I have to copy the encoded data buffer (not the metada but the real data buffer) in a my own unisgned char *buffer.
In basket.c I found a function WriteVideoFrames. But I'm not understanding where encoded data are.
This basket function is called in omx_cmux.c source file from OMX_TI_CMUX_DataNotify and I think that the encoded data buffer could be the follow one
/* Update Inetrface structure to write files to SATA */
be1.pEncodeBuffer = (OMX_U8*)pInBufHeaderPtr->pBuffer;
But if I get sizeof ( pInBufHeaderPtr->pBuffer) I hade a dimension of 4. Why?
Buffer DATA size 4
Buffer DATA [0] = 0
Buffer DATA [1] = 0
Buffer DATA [2] = 0
Buffer DATA [3] = 1
I believe that this dimension has to be equal to the frame size. Isn't it?
I've configured the demo in the right way in order to enable SATA writing:
Bool g_EncDecLoopBack = FALSE;
Bool g_CmuxDmux = TRUE;
Thanks for help.