acl.himpi.venc_set_cu_pred
C Prototype |
hi_s32 hi_mpi_venc_set_cu_pred(hi_venc_chn chn, const hi_venc_cu_prediction *cu_pred) |
|---|---|
Python Function |
ret = acl.himpi.venc_set_cu_pred(chn, cu_pred) |
Function Usage |
Adjusts the tendency of selecting the CU/MB mode of a channel and supports the tendency adjustment of the inter/intra-frame prediction and encoding block size. In the encoding protocol, pixel blocks are used as basic processing units, such as the coding units (CUs) in H.265 and macroblocks (MBs) in H.264. The CU mode in this API refers to the selection of pixel blocks of different sizes in inter/intra-frame prediction mode. The Atlas 200/300/500 Inference Product does not support this API. The Atlas Training Series Product does not support this API. |
Input Description |
chn: int, encoding channel ID.
cu_pred: dict, dictionary of the tendency to use the CU mode. For details, see hi_venc_cu_prediction. The dictionary contains the following parameters:
|
Return Value |
ret: int, error code.
|
Restrictions |
|