venc_set_streamcopy_param
Applicability
Product |
Supported (√/x) |
|---|---|
x |
|
x |
|
x |
|
√ |
|
x |
Function Usage
Sets the frame copy parameter.
Prototype
- C Prototype
1hi_s32 hi_mpi_venc_set_streamcopy_param(hi_venc_chn, const hi_venc_streamcopy_param *streamcopy_param)
- Python Function
1ret = acl.himpi.venc_set_streamcopy_param(chn, streamcopy_param)
Parameter Description
Parameter |
Description |
|---|---|
chn |
Int, encoding channel ID. |
streamcopy_param |
Dict, frame copy parameter. For details, see hi_venc_streamcopy_param. |
Return Value Description
Return Value |
Description |
|---|---|
ret |
Int, error code.
|
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 at a later time, but it only takes effect in the new IDR.
- After frame copy is enabled, the temporal motion vector (TMV) automatically becomes invalid.
Parent topic: VENC/JPEGE APIs