hi_venc_slice_split

Description

Defines the parameters for controlling I-slice refresh in P-frames.

Prototype

typedef struct {
    hi_bool                    split_enable;
    hi_u32                     split_mode;
    hi_u32                     split_size;
    hi_bool                    slice_output_en;
    hi_u32                     reserved[2];
} hi_venc_slice_split;

Members

Member

Description

split_enable

Whether to enable slice splitting.

  • 0: disabled (default)
  • 1: enabled

split_mode

Slice split mode.

Currently, this parameter can only be set to 1, indicating splitting by macroblock row or LCU row.

For H.265, when split_mode is set to 1, attention should be paid to the LCU size, which is fixed at 32.

split_size

  • For H.264: number of macroblock rows occupied by each slice.

    Maximum value: (Image height + 15)/16

    Minimum value: (Maximum value + 15)/16

  • For H.265: number of LCU rows occupied by each slice.

    Maximum value: (Image height + LCU – 1)/LCU

    Minimum value: (Maximum value + 15)/16

slice_output_en

Only false is supported.

reserved[2]

Reserved. Currently, this parameter can only be set to 0.