hi_mpi_vdec_set_protocol_param
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 protocol-specific memory allocation parameters of a channel, such as the slice, picture parameter set (PPS), and sequence parameter set (SPS).
Restrictions
- Ensure that a channel has been created. Otherwise, the error code HI_ERR_VDEC_UNEXIST is returned.
- Ensure that the channel has stopped receiving streams. Otherwise, the error code HI_ERR_VDEC_NOT_PERM is returned.
- When protocol parameters are updated, the decoder automatically resets the decoding channel.
- The memory required by protocol parameters is dynamically allocated by the decoder by using vmalloc based on the actual number of VPSs, SPSs, PPSs, or slices in the current stream. The maximum number of memories must be no greater than the maximum number of VPSs, SPSs, PPSs, or slices configured by this API.
Prototype
hi_s32 hi_mpi_vdec_set_protocol_param(hi_vdec_chn chn, const hi_vdec_protocol_param *protocol_param)
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
chn |
Input |
Decoding channel ID. |
protocol_param |
Input |
Pointer to the decoding channel parameters. |
Returns
- 0: success
- Other values: failure. For details, see VDEC/JPEGD Return Codes.
Parent topic: VDEC/JPEGD