1 /* SPDX-License-Identifier: GPL-2.0 */
3 * Hantro VP9 codec driver
5 * Copyright (C) 2021 Collabora Ltd.
8 struct hantro_g2_mv_probs {
16 u8 class0_fr[2][2][3];
20 struct hantro_g2_probs {
29 u8 partition[2][16][4]; /* [keyframe][][], [inter][][] */
30 u8 uv_mode_tail[10][1];
31 u8 interp_filter[4][2];
37 struct hantro_g2_mv_probs mv;
44 u8 coef[4][2][2][6][6][4];
47 struct hantro_g2_all_probs {
48 u8 kf_y_mode_prob[10][10][8];
50 u8 kf_y_mode_prob_tail[10][10][1];
52 u8 mb_segment_tree_probs[7];
53 u8 segment_pred_probs[3];
59 u8 kf_uv_mode_prob[10][8];
60 u8 kf_uv_mode_prob_tail[10][1];
64 struct hantro_g2_probs probs;
73 u32 class0_fp[2][2][4];
79 struct symbol_counts {
80 u32 inter_mode_counts[7][3][2];
81 u32 sb_ymode_counts[4][10];
82 u32 uv_mode_counts[10][10];
83 u32 partition_counts[16][4];
84 u32 switchable_interp_counts[4][3];
85 u32 intra_inter_count[4][2];
86 u32 comp_inter_count[5][2];
87 u32 single_ref_count[5][2][2];
88 u32 comp_ref_count[5][2];
89 u32 tx32x32_count[2][4];
90 u32 tx16x16_count[2][3];
91 u32 tx8x8_count[2][2];
92 u32 mbskip_count[3][2];
94 struct mv_counts mv_counts;
96 u32 count_coeffs[2][2][6][6][4];
97 u32 count_coeffs8x8[2][2][6][6][4];
98 u32 count_coeffs16x16[2][2][6][6][4];
99 u32 count_coeffs32x32[2][2][6][6][4];
101 u32 count_eobs[4][2][2][6][6];