Differences Between V1 and V2

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:

For details about the V1 functions supported by Ascend AI Processors, see Function Support.

For details about the V2 functions supported by Ascend AI Processors, see Function Support.

The Ascend 310 AI Processor supports only media data processing APIs of the V1 version.

The Ascend 910 AI Processor supports only media data processing APIs of the V1 version.

The Ascend 310P AI Processor supports media data processing APIs of both the V1 and V2 versions. The APIs of the V2 version are recommended, which guarantee continuous evolution of API functions and services in later versions.

Both the Ascend 310 AI Processor and Ascend 310P AI Processor support the APIs of the V1 version, but some usage restrictions are different. For details about the migration of media data processing V1 from the Ascend 310 AI Processor to the Ascend 310P AI Processor, see Guide of Migration from Media Data Processing V1 (Ascend 310 AI Processor) to Media Data Processing V1 (Ascend 710 AI Processor).

The V1 and V2 media data processing APIs differ in function restrictions and call sequences. For details about the migration from media data processing V1 of the Ascend 310 AI Processor to media data processing V2 of the Ascend 310P AI Processor, see Guide of Migration from Media Data Processing V1 (Ascend 310 AI Processor) to Media Data Processing V2 (Ascend 310P AI Processor).