AnsweredAssumed Answered

Convert decoder output byte stream to YUV raw image

Question asked by hai Hoang on Oct 18, 2019
Latest reply on Oct 23, 2019 by hai Hoang

Dear NXP Media Team,

I used imx8mqevk board, jpeg decode example on libimxvpuapi2 decode a jpeg image. This is a hardware encode/decode library.

Command:

./jpeg-dec-example -i wall.jpg -o output.bin


Output (detail on attach file) :

output file is `output.bin`
data format: frames to output aligned frame size: 1376 x 768 pixel actual frame size: 1366 x 768 pixel Y/Cb/Cr stride: 1376/1376/1376 Y/Cb/Cr size: 1056768/528384/528384 Y/Cb/Cr offset: 0/1056768/1585152 color format: semi planar YUV 4:2:0 8-bit

Problem:
- File output.bin is byte stream data (dma buffer data) so the data can not display properly on yuv viewer software !

- Could you show me a reference way convert (render) output.bin to standard yuv format (output.yuv)  ?

 

Sincerely,

HaiHoang

Attachments

Outcomes