mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-25 02:40:46 +02:00
ac/vcn_dec: Make the helper functions static
They are only used in ac_vcn_dec.c now. Reviewed-by: Benjamin Cheng <benjamin.cheng@amd.com> Reviewed-by: Ruijing Dong <ruijing.dong@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39627>
This commit is contained in:
parent
7ad4f501fa
commit
24c74f522c
2 changed files with 5 additions and 10 deletions
|
|
@ -137,7 +137,8 @@ struct cmd_buffer {
|
|||
void *it_probs_ptr;
|
||||
};
|
||||
|
||||
void ac_vcn_vp9_fill_probs_table(void *ptr)
|
||||
static void
|
||||
ac_vcn_vp9_fill_probs_table(void *ptr)
|
||||
{
|
||||
rvcn_dec_vp9_probs_t *probs = (rvcn_dec_vp9_probs_t *)ptr;
|
||||
|
||||
|
|
@ -172,7 +173,7 @@ ac_vcn_dec_frame_ctx_size_av1(unsigned av1_version)
|
|||
: align(sizeof(rvcn_av1_vcn4_frame_context_t), 2048);
|
||||
}
|
||||
|
||||
unsigned
|
||||
static unsigned
|
||||
ac_vcn_dec_calc_ctx_size_av1(unsigned av1_version)
|
||||
{
|
||||
unsigned frame_ctxt_size = ac_vcn_dec_frame_ctx_size_av1(av1_version);
|
||||
|
|
@ -509,7 +510,7 @@ ac_vcn_vcn4_av1_default_coef_probs(void *prob, int index)
|
|||
memcpy(fc->eob_flag_cdf1024, av1_default_eob_multi1024_cdfs[index], sizeof(av1_default_eob_multi1024_cdfs[index]));
|
||||
}
|
||||
|
||||
void
|
||||
static void
|
||||
ac_vcn_av1_init_probs(unsigned av1_version, uint8_t *prob)
|
||||
{
|
||||
unsigned frame_ctxt_size = ac_vcn_dec_frame_ctx_size_av1(av1_version);
|
||||
|
|
@ -573,7 +574,7 @@ radv_vcn_av1_film_grain_init_scaling(uint8_t scaling_points[][2], uint8_t num, s
|
|||
scaling_lut[i] = scaling_points[num - 1][1];
|
||||
}
|
||||
|
||||
void
|
||||
static void
|
||||
ac_vcn_av1_init_film_grain_buffer(unsigned av1_version, rvcn_dec_film_grain_params_t *fg_params, rvcn_dec_av1_fg_init_buf_t *fg_buf)
|
||||
{
|
||||
const int32_t luma_block_size_y = LUMA_BLOCK_SIZE_Y;
|
||||
|
|
|
|||
|
|
@ -1280,12 +1280,6 @@ struct jpeg_params {
|
|||
#define RDECODE_MAX_SUBSAMPLE_SIZE (2048 * 2 * 4)
|
||||
#define RDECODE_IT_SCALING_TABLE_SIZE 992
|
||||
|
||||
void ac_vcn_vp9_fill_probs_table(void *ptr);
|
||||
|
||||
unsigned ac_vcn_dec_calc_ctx_size_av1(unsigned av1_version);
|
||||
void ac_vcn_av1_init_probs(unsigned av1_version, uint8_t *prob);
|
||||
void ac_vcn_av1_init_film_grain_buffer(unsigned av1_version, rvcn_dec_film_grain_params_t *fg_params, rvcn_dec_av1_fg_init_buf_t *fg_buf);
|
||||
|
||||
uint32_t ac_vcn_dec_dpb_size(const struct radeon_info *info, struct ac_video_dec_session_param *param);
|
||||
uint32_t ac_vcn_dec_dpb_alignment(const struct radeon_info *info, struct ac_video_dec_session_param *param);
|
||||
struct ac_video_dec *ac_vcn_create_video_decoder(const struct radeon_info *info, struct ac_video_dec_session_param *param);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue