hi_venc_cu_prediction
Function
Defines the parameters that control the tendency to use the CU mode.
Definition
typedef struct {
hi_op_mode pred_mode;
hi_u32 intra32_cost;
hi_u32 intra16_cost;
hi_u32 intra8_cost;
hi_u32 intra4_cost;
hi_u32 inter64_cost;
hi_u32 inter32_cost;
hi_u32 inter16_cost;
hi_u32 inter8_cost;
} hi_venc_cu_prediction;
For details about basic data type hi_u32, see Basic Data Types.
Members
Member |
Description |
|---|---|
pred_mode |
Tendency selection mode, which can be automatic or manual. For details, see hi_op_mode. |
intra32_cost |
Tendency adjustment in Intra32 mode, corresponding to the intra-frame prediction mode with the block size of 32 × 32 pixels. A larger value indicates a weaker tendency to use the mode. Value range: [0, 15] Default value: 8 This parameter is invalid in H.264 encoding. |
intra16_cost |
Tendency adjustment in Intra16 mode, corresponding to the intra-frame prediction mode with the block size of 16 × 16 pixels. A larger value indicates a weaker tendency to use the mode. Value range: [0, 15] Default value: 8 |
intra8_cost |
Tendency adjustment in Intra8 mode, corresponding to the intra-frame prediction mode with the block size of 8 × 8 pixels. A larger value indicates a weaker tendency to use the mode. Value range: [0, 15] Default value: 8 |
intra4_cost |
Tendency adjustment in Intra4 mode, corresponding to the intra-frame prediction mode with the block size of 4 × 4 pixels. A larger value indicates a weaker tendency to use the mode. Value range: [0, 15] Default value: 8 |
inter64_cost |
Tendency adjustment in Inter64 mode, corresponding to the inter-frame prediction mode with the block size of 64 × 64 pixels. A larger value indicates a weaker tendency to use the mode. Value range: [0, 15] Default value: 8 This parameter is invalid in H.264 encoding. |
inter32_cost |
Tendency adjustment in Inter32 mode, corresponding to the inter-frame prediction mode with the block size of 32 × 32 pixels. A larger value indicates a weaker tendency to use the mode. Value range: [0, 15] Default value: 8 This parameter is invalid in H.264 encoding. |
inter16_cost |
Tendency adjustment in Inter16 mode, corresponding to the inter-frame prediction mode with the block size of 16 × 16 pixels. A larger value indicates a weaker tendency to use the mode. Value range: [0, 15] Default value: 8 |
inter8_cost |
Tendency adjustment in Inter8 mode, corresponding to the inter-frame prediction mode with the block size of 8 × 8 pixels. A larger value indicates a weaker tendency to use the mode. Value range: [0, 15] Default value: 8 |