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

JPEGD+VPC+JPEGE Cascading

./sample_dvpp_hlt_ddk --in_image_file dvpp_jpegd_vpc_jpege.jpg --out_image_file out_jpegd_vpc_jpege_new.jpg --hmax 1919 --hmin 0 --vmax 999 --vmin 0 --outLeftOffset 0 --outRightOffset 719 --outUpOffset 0 --outDownOffset 719 --outWidthStride 720 --outHighStride 720 --test_type 12

Sample description: This command calls the JPEGD, VPC, and JPEGE in sequence. test_type 12 indicates that the user allocates memory. This command calls the JPEGD to decode a JPG image as a YUV420SP image, sends the image to the VPC for cropping and resizing, and calls the JPEGE to encode the VPC output to generate a JPG image.

  • Input image:
    • The input image has the width of 1920 pixels, height of 1080 pixels, and file name of dvpp_jpegd_vpc_jpege.jpg.
    • The input image is in the same directory as the executable file.
  • Output image:
    • The output image has the width of 720 pixels, height of 720 pixels, and file name of out_jpegd_vpc_jpege_new.jpg.
    • The output image is in the same directory as the executable file.