mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 07:28:11 +02:00
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 <boyuan.zhang@amd.com> Reviewed-by: Leo Liu <leo.liu@amd.com> Reviewed-by: Ruijing Dong <ruijing.dong@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26081>
This commit is contained in:
parent
02fe92c908
commit
26237b9807
1 changed files with 4 additions and 3 deletions
|
|
@ -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;
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue