vdec_get_fd
Applicability
Product |
Supported (√/x) |
|---|---|
√ |
|
√ |
|
x |
|
√ |
|
√ |
Function Usage
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)
Parameter Description
Parameter |
Description |
|---|---|
chn |
Int, decoding channel ID.
|
Return Value Description
Return Value |
Description |
|---|---|
ret |
Int, error code.
|
Restrictions
When the process exits, the file descriptor is automatically closed to clean up associated allocations.
Parent topic: VDEC/JPEGD APIs