Updated on 2022-03-13 GMT+08:00

Usage of the JPEGD

./sample_dvpp_hlt_ddk --in_image_file dvpp_jpegd_decode_1920x1080.jpg --test_type 7 --rank 0
./sample_dvpp_hlt_ddk --in_image_file dvpp_jpegd_decode_1920x1080.jpg --test_type 8 --rank 0

In the first command (test_type 7), the DVPP allocates memory. In the second command (test_type 8), the user allocates memory. Both commands decode a JPG image into a YUV image.

  • Input image:
    • An image whose width is 1920 pixels, height is 1080 pixels, and file name is dvpp_jpegd_decode_1920x1080.jpg.
    • The input image is in the same directory as the executable file.
    • If --rank is set to 0 or not set, the output data format is NV21. If -- rank is not 0, the output data is the semi-planar data of the original format.
  • Output image:
    • An image whose width is 1920 pixels, height is 1080 pixels, and file name is dvppapi_jpegd_wxx_hxx_fx_tx.yuv.
    • The output image is in the same directory as the executable file.
  • You can open the output YUV image by using image display software to verify the correctness.