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

Sample Input Parameters of the DVPP Executor

Parameter

Description

img_width

Input image width

img_height

Input image height

in_format

  • For the VPC, the input image format is as follows:

    INPUT_YUV400, // 0

    INPUT_YUV420_SEMI_PLANNER_UV, // 1

    INPUT_YUV420_SEMI_PLANNER_VU, // 2

    INPUT_YUV422_SEMI_PLANNER_UV, // 3

    INPUT_YUV422_SEMI_PLANNER_VU, // 4

    INPUT_YUV444_SEMI_PLANNER_UV, // 5

    INPUT_YUV444_SEMI_PLANNER_VU, // 6

    INPUT_YUV422_PACKED_YUYV, // 7

    INPUT_YUV422_PACKED_UYVY, // 8

    INPUT_YUV422_PACKED_YVYU, // 9

    INPUT_YUV422_PACKED_VYUY, // 10

    INPUT_YUV444_PACKED_YUV, // 11

    INPUT_RGB, // 12, input image format: RGB888

    INPUT_BGR, // 13, input image format: BGR888

    INPUT_ARGB, // 14. The component sequence of an input image in this format during storage is similar to RGB888. A indicates transparency.

    INPUT_ABGR, // 15. The component sequence of an input image in this format during storage is similar to BGR888. A indicates transparency.

    INPUT_RGBA, // 16. The component sequence of an input image in this format during storage is similar to RGB888. A indicates transparency.

    INPUT_BGRA, // 17. The component sequence of an input image in this format during storage is similar to BGR888. A indicates transparency.

    INPUT_YUV420_SEMI_PLANNER_UV_10BIT, // 18

    INPUT_YUV420_SEMI_PLANNER_VU_10BIT, // 19

  • For the VDEC, the input stream format is as follows:
    • 0: H.264 stream
    • 1: H.265 stream
  • For the VENC, the output stream format is as follows:
    • 0: H.265 Main Profile Level (Only slice streams are supported.)
    • 1: H.264 Baseline Profile Level
    • 2: H.264 Main Profile Level
    • 3: H.264 High Profile Level
  • For the JPEGE, the input image formats are as follows:
    • 0: JPGENC_FORMAT_UYVY
    • 1: JPGENC_FORMAT_VYUY
    • 2: JPGENC_FORMAT_YVYU
    • 3: JPGENC_FORMAT_YUYV
    • 16: JPGENC_FORMAT_NV12
    • 17: JPGENC_FORMAT_NV21

out_format

Output image format of the VPC

  • 0: OUTPUT_YUV420SP_UV
  • 1: OUTPUT_YUV420SP_VU

yuvStoreType

Storage format of the input YUV data of the VENC

  • 0: YUV420 semi-planar
  • 1: YVU420 semi-planar

inWidthStride

Width stride of the VPC input image. For details, see Input Parameter: VpcUserImageConfigure.

inHighStride

Height stride of the VPC input image. For details, see Input Parameter: VpcUserImageConfigure.

outWidthStride

Width stride of the VPC output image, which is 16-pixel aligned

outHighStride

Height stride of the VPC output image, which is 2-pixel aligned

hmin

Left offset of the cropped area specified by the VPC user. The value must be an even number.

hmax

Right offset of the cropped area specified by the VPC user. The value must be an odd number.

vmin

Top offset of the cropped area specified by the VPC user. The value must be an even number.

vmax

Bottom offset of the cropped area specified by the VPC user. The value must be an odd number.

outLeftOffset

Left offset of the output area specified by the VPC user. The value must be an even number.

outRightOffset

Right offset of the output area specified by the VPC user. The value must be an odd number.

outUpOffset

Top offset of the output area specified by the VPC user. The value must be an even number.

outDownOffset

Bottom offset of the output area specified by the VPC user. The value must be an odd number.

out_width

Width of the output image

out_high

Height of the output image

in_image_file

Path of the input image file, which includes the file name

out_image_file

Path of the output image file, which includes the file name

rank

  • 0: The JPEGD outputs YUV420 semi-planar data.
  • 1: The JPEGD outputs original YUV format data.

transform

Transform flag when the PNGD processes images

  • 1: RGBA is converted to RGB.
  • 0: The original format is retained.

test_type

The options are as follows:

  • 1: VPC basic function 1 (image cropping and resizing)
  • 2: VPC basic function 2 (original image resizing, cropped image resizing, single-image multi-ROI cropping, and 8K image resizing)
  • 3: VDEC
  • 4: VENC
  • 5: JPEGE
  • 6: The JPEGE user specifies the output buffer.
  • 7: JPEGD
  • 8: The JPEGD user specifies the output buffer.
  • 9: PNGD
  • 10: The PNGD user specifies the output buffer.
  • 12: JPEGD+VPC+JPEGE