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

VPC Basic Function 2

./sample_dvpp_hlt_ddk --test_type 2

This command calls the VPC to resize the original image, resize the cropped image, perform single-image multi-ROI cropping, and resize an 8K image.

  • Input images:
    • An image whose width is 1920 pixels, height is 1080 pixels, format is YUV420SP NV12, and file name is dvpp_vpc_1920x1080_nv12.yuv.
    • An image whose width is 8192 pixels, height is 8192 pixels, format is YUV420SP NV12, and file name is dvpp_vpc_8192x8192_nv12.yuv.
    • The input images are in the same directory as the executable file.
  • Output images:
    • Call the NewVpcTest1 function to resize the 1080p YUV420SP image to 1280 x 720 YUV420SP (NV12). The output file name is NewVpcTest1Out.yuv.
    • Call the NewVpcTest2 function to crop a sub-image from the 1080p YUV420SP image, and attach the sub-images to a specified location in the output image. The output file name is NewVpcTest2Out.yuv, the output image size is 1280 x 720, and the output image format is YUV420SP.
    • Call the NewVpcTest3 function to crop five sub-images from the 1080p YUV420SP image, and attach the su-images to specified locations in the output image. The output file name is NewVpcTest3_*Out.yuv. The output image size is 1280 x 720 and the output image format is YUV420SP.
    • Call the NewVpcTest4 function to resize the 8192 x 8192 YUV420SP image to a 4000 x 4000 YUV420SP image. The output file name is NewVpcTest4Out.yuv.
    • The generated images and the executable file are in the same directory.
  • You can open the images by using image display software to verify the correctness.