Overview

API Differences Between Versions

In this document, the media data processing APIs in the V1 and V2 versions have the same functions such as image cropping, image resizing, and format conversion. Nevertheless, these two sets of APIs must not be mixed together.
  • V2 APIs are recommended, which guarantee continuous evolution of API functions and services in later versions.
  • V1 APIs are retained for backward compatibility considerations, but will be deprecated in later versions.

Function Description

Table 1 describes the functions of media data processing V2.

Table 1 Function description

Function

Description

Vision Preprocessing Core (VPC)

Manipulates image processing, including image resizing, cropping, pyramid, and color space conversion (CSC). For details, see Restrictions.

JPEG Decoder (JPEGD)

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

JPEG Encoder (JPEGE)

Encodes images. For details, see JPEGE Functions and Restrictions.

Video Decoder (VDEC)

Decodes videos. For details, see VDEC Functions and Restrictions.

Video Encoder (VENC)

Encodes videos. For details, see VENC 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 V2 supported by Ascend AI Processors.

Table 2 Function support

Ascend AI Processor

VPC

JPEGD

JPEGE

PNGD

VDEC

VENC

Ascend 310 AI Processor

x

x

x

x

x

x

Ascend 910 AI Processor

x

x

x

x

x

x

Ascend 310P AI Processor

√

√

√

√

√

√

Restrictions

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