hi_mpi_vdec_set_chn_attr
This API is not supported in the current version. The function does not take effect. If this API is called, the return value is 0.
Description
Sets the attributes of a decoding channel.
Restrictions
- Ensure that a channel has been created. Otherwise, the error code HI_ERR_VDEC_UNEXIST is returned.
- Among the attributes, only the following are configurable: type, mode, and ref_frame_num. For type, only HI_PT_H264 and HI_PT_H265 are supported.
- The decoder automatically resets the decoding channel when the channel attributes are updated.
Prototype
hi_s32 hi_mpi_vdec_set_chn_attr(hi_vdec_chn chn, const hi_vdec_chn_attr *attr)
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
chn |
Input |
Decoding channel ID. |
attr |
Input |
Pointer to the decoding channel attributes. |
Returns
- 0: success
- Other values: failure. For details, see VDEC/JPEGD Return Codes.
Parent topic: VDEC/JPEGD