hi_mpi_venc_get_fd
Applicability
|
Product |
Supported |
|---|---|
|
Atlas 350 Accelerator Card |
√ |
|
|
√ |
|
|
√ |
|
|
√ |
|
|
√ |
|
|
☓ |
Function Description
Obtains the device file descriptor corresponding to an encoding channel.
When the process exits, the file descriptor is automatically closed to clean up associated allocations.
Prototype
hi_s32 hi_mpi_venc_get_fd(hi_venc_chn chn)
Parameters
|
Parameter |
Input/Output |
Description |
|---|---|---|
|
chn |
Input |
Encoding channel ID. Atlas 350 Accelerator Card: encoding channel ID. The value range is as follows: [0, 256). The maximum number of JPEGE channels is 256. For the |
Returns
- 0 or positive value: valid.
- Non-positive value: invalid.