hi_mpi_vdec_get_fd

Applicable Products

Product

Supported

Ascend 950PR/Ascend 950DT

√

Atlas A3 training products/Atlas A3 inference products

√

Atlas A2 training products/Atlas A2 inference products

√

Atlas 200I/500 A2 inference products

√

Atlas inference products

√

Atlas training products

☓

Function

Obtains the device file descriptor corresponding to a decoding channel.

When the process exits, the file descriptor is automatically closed to clean up associated allocations.

Prototype

hi_s32 hi_mpi_vdec_get_fd(hi_vdec_chn chn)

Parameters

Parameter

Input/Output

Description

chn

Input

Decoding channel ID.

Returns

  • 0 or positive value: valid
  • Negative value: invalid