vdec_get_fd
Applicability
Product |
Supported |
|---|---|
Atlas 350 Accelerator Card |
√ |
√ |
|
√ |
|
x |
|
√ |
|
√ |
Description
Obtains the device file descriptor corresponding to a decoding channel.
Prototype
- C Prototype
1hi_s32 hi_mpi_vdec_get_fd(hi_vdec_chn chn)
- Python Function
1ret = acl.himpi.vdec_get_fd(chn)
Parameters
Parameter |
Description |
|---|---|
chn |
Int, decoding channel ID. |
Return Value
Return Value |
Description |
|---|---|
ret |
Int, error code.
|
Restrictions
When a process exits, the file descriptor is automatically closed to clean up associated allocations.
Parent topic: VDEC/JPEGD APIs