hi_mpi_venc_start_chn
Applicable Products
|
Product |
Supported |
|---|---|
|
|
√ |
|
|
√ |
|
|
√ |
|
|
√ |
|
|
√ |
|
|
☓ |
Function
Enables an encoding channel to start receiving source images. The encoding channel automatically stops receiving images when the specified receive limit is reached.
Prototype
hi_s32 hi_mpi_venc_start_chn(hi_venc_chn chn, const hi_venc_start_param *recv_param)
Parameters
|
Parameter |
Input/Output |
Description |
|---|---|---|
|
chn |
Input |
Encoding channel ID. |
|
recv_param |
Input |
Pointer to the received picture parameter. This pointer indicates the number of frames to be received. |
Returns
- 0: success
- Other values: failure. For details, see VENC/JPEGE Return Codes.
Restrictions
- Ensure that a channel has been created. Otherwise, the error code HI_ERR_VENC_UNEXIST is returned.
- If the number of frames to be received is set to -1, the number of frames is not specified.
- If a channel has started receiving images, calling this API again to specify its frame receive limit before the channel has stopped receiving images will return an unallowed operation.
- If a channel has started to receive images, you can call this API again without specifying the number of frames to be received before the channel stops receiving images.
- The encoder starts images receiving and encoding only after this API call.