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

VPC Basic Function 1

./sample_dvpp_hlt_ddk --in_image_file dvpp_vpc_1920x1080_nv12.yuv --out_image_file vpc_out.yuv --inWidthStride 1920 --inHighStride 1080 --in_format 1 --out_format 0 --hmax 1919 --hmin 0 --vmax 999 --vmin 0 --outLeftOffset 0 --outRightOffset 719 --outUpOffset 0 --outDownOffset 719 --outWidthStride 720 --outHighStride 720 --test_type 1

Call the VPC to crop and resize an image.

  • Input image:
    • An image whose width is 1920 pixels, height is 1080 pixels, format is YUV420SP, and file name is dvpp_vpc_1920x1080_nv12.yuv.
    • The input image is in the same directory as the executable file.
  • Output image:
    • An image whose width is 720 pixels, height is 720 pixels, format is YUV420SP (NV12), and file name is vpc_out.yuv.
    • The output image is in the same directory as the executable file.
  • You can open the vpc_out.yuv image by using image display software to verify the correctness.