Module: Mesa Branch: main Commit: 26237b980759bcc4611476fb06559ed2f015b399 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=26237b980759bcc4611476fb06559ed2f015b399
Author: Boyuan Zhang <[email protected]> Date: Mon Nov 6 11:54:00 2023 -0500 gallium/pipe: define hevc max slices number No logic change, just use define instead of hardcoded number to make it more clear. Signed-off-by: Boyuan Zhang <[email protected]> Reviewed-by: Leo Liu <[email protected]> Reviewed-by: Ruijing Dong <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26081> --- src/gallium/include/pipe/p_video_state.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/gallium/include/pipe/p_video_state.h b/src/gallium/include/pipe/p_video_state.h index 36df1ce0469..2ee1201cc52 100644 --- a/src/gallium/include/pipe/p_video_state.h +++ b/src/gallium/include/pipe/p_video_state.h @@ -41,6 +41,7 @@ extern "C" { #endif #define PIPE_H265_MAX_REFERENCES 15 +#define PIPE_H265_MAX_SLICES 128 #define PIPE_AV1_MAX_REFERENCES 8 #define PIPE_DEFAULT_FRAME_RATE_DEN 1 #define PIPE_DEFAULT_FRAME_RATE_NUM 30 @@ -1167,9 +1168,9 @@ struct pipe_h265_picture_desc { bool slice_info_present; uint32_t slice_count; - uint32_t slice_data_size[128]; - uint32_t slice_data_offset[128]; - enum pipe_slice_buffer_placement_type slice_data_flag[128]; + uint32_t slice_data_size[PIPE_H265_MAX_SLICES]; + uint32_t slice_data_offset[PIPE_H265_MAX_SLICES]; + enum pipe_slice_buffer_placement_type slice_data_flag[PIPE_H265_MAX_SLICES]; } slice_parameter; };
