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.
I have a couple of basic questions.
a) How does one access the pixel information, in the buffer.
I am using the dm6467 board and running the encode/decode. I have reproduced
the code context in the demo for reference below:
-------------------------------------------------------------------------------------------
/* Get a buffer from the capture driver to encode */
if (Capture_get(hCapture, &hCapBuf) < 0) {
ERR("Failed to get capture buffer\n");
cleanup(THREAD_FAILURE);
}
if (resize) {
/* Resize buffer from 720P to a smaller resolution */
if (Resize_execute(hRsz, hCapBuf, hIntBuf) < 0) {
ERR("Failed to execute resize job\n");
cleanup(THREAD_FAILURE);
}
hInBuf = hIntBuf;
}
else {
hInBuf = hCapBuf;
}
/*
* Color convert the captured (and possibly resized)
* buffer from 422Psemi to 420Psemi.
*/
if (Ccv_execute(hCcv, hInBuf, hDstBuf) < 0) {
ERR("Failed to execute color conversion job\n");
cleanup(THREAD_FAILURE);
}
question: a) How do I access pixel info like luma and chroma YUV structure of the frame from the hDstBuf which is a pointer to Buffer_Handle ? any code snippets available ? (I take from the comment
that it is in the 420Psemi format.)
b) are there any tools available for viewing the frame in this format after I retrieve it ?
Thanks in advance,
once you have access to the capture buffer memory pointer, the pixel data in the buffer will be laid out as follows Cb0-Y0-Cr0-Y1-Cb2-Y2-Cr2-Y3, assuming Cb0 (chroma blue for pixel 0) is least significant byte and Y3 (luma for pixel 3) is most sgnificant byte. This should be described in the VPFE User Guide.
You can use YUV viewer from Elcard to view YUV video buffer.
So far I have located two docs:
http://focus.ti.com/lit/ug/spruer9d/spruer9d.pdf ---> VPIF for 6467
&
http://focus.ti.com/lit/ug/sprue38e/sprue38e.pdf ---> VPFE for 644X
But there is no VPFE for 6467...Is there one or is it one of the above that you are referring in your reply. Thanks,
Juan,
Thanks for your reply. I am trying to get hold of the VPFE for 6467 document, however will that explain what i am looking for ?
I am trying to get the pixel layout as it exists in the buffer_handle (which is a DMAI strutcure). Also, I need to know for various colorspace (capture from video input as in the capture.c of the demo) as well as when it comes out of the decoder.
Thanks a lot,
Jawa