Function Support Status

In this document, the media data processing APIs in the V1 and V2 versions are both used to implement functions such as image cropping, image resizing, and format conversion. However, these two sets of APIs must not be mixed together. V2 has more functions than V1. For example:

The APIs in the V2 version are recommended, which guarantee continuous evolution of API functions and services in later versions.

Module

Function or Restriction

Ascend 310 AI Processor Media Data Processing V1 API (API names start with "acldvpp".)

Ascend 310P AI Processor Media Data Processing V1 API (API names start with "acldvpp".)

Ascend 310P AI Processor Media Data Processing V2 API (API names start with "hi_mpi".)

JPEGE

Image encoding into JPEG

Yes

Yes

Yes

Configurable Huffman table

No

No

Yes

PNGD

PNG decoding

Yes

Yes

Yes

JPEGD

JPEG-to-YUV image decoding

Yes

Yes

Yes

VENC

H.264 encoding

Yes

Yes

Yes

H.265 encoding

Yes

Yes

Yes

Adjustable bit rate

Yes

Yes

Yes

Adjustable frame rate

Yes

Yes

Yes

Constant bit rate (CBR)

Yes

Yes

Yes

Variable bit rate (VBR)

Yes

Yes

Yes

Forced I-frame

Yes

Yes

Yes

Constant variable bit rate (CVBR)

No

No

Yes

Adaptive variable bit rate (AVBR)

No

No

Yes

Quality-defined variable bit rate (QVBR)

No

No

Yes

I-frame interval (GOP)

Yes

Yes

Yes

Scenario mode configuration

No

No

Yes

VDEC

H.264 decoding

Yes

Yes

Yes

H.265 decoding

Yes

Yes

Yes

Interlaced scanning

Yes

Yes

Yes

Real-time frame output

Yes

Yes

Yes

Frame extraction

Yes

Yes

Yes

Decoding and resizing

Yes

Yes

Yes

RGB888 output

No

Yes

Yes

VPC

Cropping

Yes

Yes

Yes

Resizing

Yes

Yes

Yes

Padding

No

Yes

Yes

Cropping and resizing

Yes

Yes

Yes

Cropping, resizing, and pasting

Yes

Yes

Yes

Cropping, resizing, and padding

No

Yes

Yes

Single-image, multi-ROI pasting

Yes

Yes

Yes

Single-image, multi-ROI padding

No

Yes

Yes

Multi-image, multi-ROI pasting

Yes

Yes

Yes

Multi-image, multi-ROI padding

No

Yes

Yes

Color space conversion (CSC)

Yes

Yes

Yes

CSC coefficient configuration

No

Yes

Yes

Pyramid

No

Yes

Yes

Histogram equalization (LUT)

No

Yes

Yes

Histogram statistics

No

Yes

Yes