Dear all,
I am using TI DM6446 EVM. And trying to add some code in dvsdk_demos_2_00_00_07 encodedecode file to achieve my goal. Following is the trouble and confusion I meet.
Question1:
In my cognition, the procedure for real-time image processing should be like following description.
video(frames) from CCD -------->decode-------->image processing (such as edge detection) ------->encode------>display on monitor
However, I find out the procedure in dvsdk_demos_2_00_00_07 encodedecode file is different. It did the encode first and decode following . After decoding, it displays video.
Why the procedure is different? Or is my cognition is wrong? If I have to add some image processing code in encodedecode file. Should I put my code after decode part before display part?
Question2:
Because hVidBuf is declared as Buffer_Handle, how can I get the YUV 422 pixels value from the buffer? I have search Buffer_Handle information on internet and read the document in Dmai folder of dvsdk_2_00_00_22. However, the only thing I got is "typedef struct _Buffer_Object *Buffer_Handle;". So I don't know how to get the pixels value form Buffers in Buffer_Handle type.
Question3:
Picture above is the hVidBuf information after doing decode part. I thought [#num] is the frame number. And each of message (such as [0] @.....(1440)) is represented as a frame. Is my guess right?
Thank you very much!! Please give me replies or suggestion.
Regards,
Lorraine Chen