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.

how to access pixel data (i.e. YUV) in buffer

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,