mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 19:17:44 +00:00
LibVideo/VP9: Use u32 to store the parsed value counts
There were rare cases in which u8 was not large enough for the total count of values read, and increasing this to u32 should have no real effect on performance (hopefully).
This commit is contained in:
parent
69e9f9ff63
commit
7b92eff4a6
5 changed files with 74 additions and 79 deletions
|
@ -16,28 +16,28 @@ public:
|
|||
/* (8.3) Clear Counts Process */
|
||||
void clear_counts();
|
||||
|
||||
u8 m_counts_intra_mode[BLOCK_SIZE_GROUPS][INTRA_MODES];
|
||||
u8 m_counts_uv_mode[INTRA_MODES][INTRA_MODES];
|
||||
u8 m_counts_partition[PARTITION_CONTEXTS][PARTITION_TYPES];
|
||||
u8 m_counts_interp_filter[INTERP_FILTER_CONTEXTS][SWITCHABLE_FILTERS];
|
||||
u8 m_counts_inter_mode[INTER_MODE_CONTEXTS][INTER_MODES];
|
||||
u8 m_counts_tx_size[TX_SIZES][TX_SIZE_CONTEXTS][TX_SIZES];
|
||||
u8 m_counts_is_inter[IS_INTER_CONTEXTS][2];
|
||||
u8 m_counts_comp_mode[COMP_MODE_CONTEXTS][2];
|
||||
u8 m_counts_single_ref[REF_CONTEXTS][2][2];
|
||||
u8 m_counts_comp_ref[REF_CONTEXTS][2];
|
||||
u8 m_counts_skip[SKIP_CONTEXTS][2];
|
||||
u8 m_counts_mv_joint[MV_JOINTS];
|
||||
u8 m_counts_mv_sign[2][2];
|
||||
u8 m_counts_mv_class[2][MV_CLASSES];
|
||||
u8 m_counts_mv_class0_bit[2][CLASS0_SIZE];
|
||||
u8 m_counts_mv_class0_fr[2][CLASS0_SIZE][MV_FR_SIZE];
|
||||
u8 m_counts_mv_class0_hp[2][2];
|
||||
u8 m_counts_mv_bits[2][MV_OFFSET_BITS][2];
|
||||
u8 m_counts_mv_fr[2][MV_FR_SIZE];
|
||||
u8 m_counts_mv_hp[2][2];
|
||||
u8 m_counts_token[TX_SIZES][BLOCK_TYPES][REF_TYPES][COEF_BANDS][PREV_COEF_CONTEXTS][UNCONSTRAINED_NODES];
|
||||
u8 m_counts_more_coefs[TX_SIZES][BLOCK_TYPES][REF_TYPES][COEF_BANDS][PREV_COEF_CONTEXTS][2];
|
||||
u32 m_counts_intra_mode[BLOCK_SIZE_GROUPS][INTRA_MODES];
|
||||
u32 m_counts_uv_mode[INTRA_MODES][INTRA_MODES];
|
||||
u32 m_counts_partition[PARTITION_CONTEXTS][PARTITION_TYPES];
|
||||
u32 m_counts_interp_filter[INTERP_FILTER_CONTEXTS][SWITCHABLE_FILTERS];
|
||||
u32 m_counts_inter_mode[INTER_MODE_CONTEXTS][INTER_MODES];
|
||||
u32 m_counts_tx_size[TX_SIZES][TX_SIZE_CONTEXTS][TX_SIZES];
|
||||
u32 m_counts_is_inter[IS_INTER_CONTEXTS][2];
|
||||
u32 m_counts_comp_mode[COMP_MODE_CONTEXTS][2];
|
||||
u32 m_counts_single_ref[REF_CONTEXTS][2][2];
|
||||
u32 m_counts_comp_ref[REF_CONTEXTS][2];
|
||||
u32 m_counts_skip[SKIP_CONTEXTS][2];
|
||||
u32 m_counts_mv_joint[MV_JOINTS];
|
||||
u32 m_counts_mv_sign[2][2];
|
||||
u32 m_counts_mv_class[2][MV_CLASSES];
|
||||
u32 m_counts_mv_class0_bit[2][CLASS0_SIZE];
|
||||
u32 m_counts_mv_class0_fr[2][CLASS0_SIZE][MV_FR_SIZE];
|
||||
u32 m_counts_mv_class0_hp[2][2];
|
||||
u32 m_counts_mv_bits[2][MV_OFFSET_BITS][2];
|
||||
u32 m_counts_mv_fr[2][MV_FR_SIZE];
|
||||
u32 m_counts_mv_hp[2][2];
|
||||
u32 m_counts_token[TX_SIZES][BLOCK_TYPES][REF_TYPES][COEF_BANDS][PREV_COEF_CONTEXTS][UNCONSTRAINED_NODES];
|
||||
u32 m_counts_more_coefs[TX_SIZES][BLOCK_TYPES][REF_TYPES][COEF_BANDS][PREV_COEF_CONTEXTS][2];
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue