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.
hi all
I want to access pixels in a frame on DM6437 demo application 1.30
But it's not like the Accessing pixels in a frame on DM643x (http://wiki.davincidsp.com/index.php/Accessing_pixels_in_a_frame_on_DM643x)
So, How to access pixels in a frame on DM6437 demo application
Any idea?
Thanks!
The demo application is significantly more complex so the accessing of pixels is not as easy, first you would need to choose where in the code you want to access the pixels at because the demo is broken up into several C files for each portion of the demo operation. It seems to me that the most appropriate place for the pixel accessing would be app_block_video_encode.c as this is where you would be 'processing' the incoming video, though you could also put it in app_block_video_input.c, or even the output, depending on how you want to structure your code. Within these C files you just have to take the frame buffer poitner and access the pixels as done in the wiki example, the frame buffers are in the same format as the wiki example so you should be able to access the pixels in the same way. For example in app_block_video_encode.c you could get the frame out of the LOCAL_msgRawVideo function with the msgPtr->hBuffDesc structure.
To get closer to the video input phase of the demo you would want to take a look at app_block_video_input.c, there is a LOCAL_ioTsk() function in there that has the video capture loop.