hi_mpi_venc_set_streamcopy_param
Applicability
Product |
Supported |
|---|---|
Atlas 350 Accelerator Card |
☓ |
☓ |
|
☓ |
|
☓ |
|
√ |
|
☓ |
Function Description
Sets the frame copy parameter.
Prototype
hi_s32 hi_mpi_venc_set_streamcopy_param(hi_venc_chn chn, const hi_venc_streamcopy_param *streamcopy_param)
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
chn |
Input |
Encoding channel ID. For the |
streamcopy_param |
Input |
Frame copy parameter. |
Returns
- 0: success
- Other values: failure. For details, see VENC/JPEGE Return Codes.
Restrictions
- Only H.264/H.265 encoding channels support this API.
- When frame copy is enabled with a copy interval set to 0, the H.265 SPS/Slice follows the new protocol, while the H.264 protocol remains unchanged. The copy interval can be adjusted later, and there is no need to request an I-frame for the copy to take effect in this case. If frame copy is disabled, it can be dynamically enabled later, but it only takes effect in the new IDR.
- After the frame copy function is enabled, the time domain TMV automatically becomes invalid.
Parent topic: Video Encoding (VENC) and JPEG Encoder (JPEGE)