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.

actual pixel on decoder?

Hi all

    I have ran decode_demo on DM6467T and it seemed good on screen, expect  the size of pixel after Vdec2_process. My H.264 files is base on 720P. The Buffer after Vdec2_process should return 1382400(YUV420, 1280x720x1.5 )  byte, But now it gives me 1434240 (1328x720x1.5??).

    If i save the YUV file with size 1434240 and play it, it is totally an different pic:

             ret = Vdec2_process(hVd2, hInBuf, hDstBuf);

             fwrite(Buffer_getUserPtr(hDstBuf),Buffer_getNumBytesUsed(hDstBuf),1,fp_yuv);

Does anyone know how can i get the correct pixel?

  • Caijun,

    The decoder actually gives the size including the horizontal padding pixels (24 pixels on the left, and 24 on the right) . The deocder actually asks for a buffer of size 1328x720x1.5 becuase the padding pixels are required as reference pixels in the decoding process. When displaying only 1280x720 will be diplayed, not (1280+48)x720.

    Regards,

    kapil