hi_venc_slice_split

Description

Defines the parameters for controlling Islice refresh in P-frames.

Prototype

hi_venc_slice_split = {"split_enable":split_enable,
                       "split_mode":split_mode,
                       "split_size":split_size,
                       "slice_output_en":slice_output_en,
                       "reserved":reserved[2]}

Members

Member

Description

split_enable

Indicates whether to enable slice splitting. The options are as follows:

  • 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.

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

NOTE:

The value of split_size must be an integer.

slice_output_en

Only 0 is supported.

reserved

This parameter is reserved. Currently, this parameter can only be set to 0.

Precautions

When split_mode is set to 1, pay attention to the LCU size of the current chip when the H.265 protocol is used.