Overview

API Differences Between Versions

Function Description

Table 1 describes the functions of media data processing V1.

Table 1 Function description

Function

Description

Vision Preprocessing Core (VPC)

Processes images, including cropping, resizing, pasting, stitching, and format conversion. For details, see Restrictions.

JPEG Decoder (JPEGD)

Decodes .jpg, .jpeg, .JPG, and .JPEG images into YUV images. For details, see Functions and Restrictions.

JPEG Encoder (JPEGE)

Encodes YUV images into .jpg images. For details, see Functions and Restrictions.

Video Decoder (VDEC)

Decodes videos. For details, see Functions and Restrictions.

Video Encoder (VENC)

Encodes videos. For details, see Functions and Restrictions.

PNG Decoder (PNGD)

Decodes PNG images. For details, see Functions and Restrictions.

Function Support

Table 2 describes the functions of media data processing V1 supported by Ascend AI Processors.

Table 2 Function support

Ascend AI Processor

VPC

JPEGD

JPEGE

PNGD

VDEC

VENC

Ascend 310 AI Processor

√

√

√

√

√

√

Ascend 910 AI Processor

√

√

√

√

√

x

Ascend 310P AI Processor

√

√

√

√

√

√

Restrictions

When using the APIs described in this chapter, pay attention to the following points: