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

Usage of the JPEGE

./sample_dvpp_hlt_ddk --in_image_file dvpp_jpege_444_1920x1080_1920_1080_nv12.yuv --img_width 1920 --img_height 1080 --in_format 16 --test_type 5
./sample_dvpp_hlt_ddk --in_image_file dvpp_jpege_444_1920x1080_1920_1080_nv12.yuv --img_width 1920 --img_height 1080 --in_format 16 --test_type 6

Sample description: In the first command (test_type 5), the DVPP allocates memory. In the second command (test_type 6), the user allocates memory. Both commands can be used to encode a YUV image into a JPG image.

  • Input image:
    • The input image has the width of 1920 pixels, height of 1080 pixels, format of YUV420SP NV12, and file name of dvpp_jpege_444_1920x1080_1920_1080_nv12.yuv.
    • The input image is in the same directory as the executable file.
  • Output image:
    • The output image has the width of 1920 pixels, height of 1080 pixels, and file name of outfile_tX.jpg (X indicates the thread ID).
    • The output image is in the same directory as the executable file.