• Home
  • Raw
  • Download

Lines Matching refs:ptr_ps_dec

98 VOID ixheaacd_decode_ps_data(ia_ps_dec_struct *ptr_ps_dec) {  in ixheaacd_decode_ps_data()  argument
100 WORD16 iid_mode = (WORD16)((ptr_ps_dec->iid_mode) ? 1 : 2); in ixheaacd_decode_ps_data()
101 WORD16 icc_mode = (WORD16)((ptr_ps_dec->icc_mode) ? 1 : 2); in ixheaacd_decode_ps_data()
103 (WORD16)(ptr_ps_dec->iid_quant ? NUM_IID_LEVELS_FINE : NUM_IID_LEVELS); in ixheaacd_decode_ps_data()
105 if (!ptr_ps_dec->ps_data_present) { in ixheaacd_decode_ps_data()
106 ptr_ps_dec->num_env = 0; in ixheaacd_decode_ps_data()
109 for (e = 0; e < ptr_ps_dec->num_env; e++) { in ixheaacd_decode_ps_data()
114 p_iid_par_prev = ptr_ps_dec->iid_par_prev; in ixheaacd_decode_ps_data()
115 p_icc_par_prev = ptr_ps_dec->icc_par_prev; in ixheaacd_decode_ps_data()
117 p_iid_par_prev = ptr_ps_dec->iid_par_table[e - 1]; in ixheaacd_decode_ps_data()
118 p_icc_par_prev = ptr_ps_dec->icc_par_table[e - 1]; in ixheaacd_decode_ps_data()
121 if (ptr_ps_dec->enable_iid) { in ixheaacd_decode_ps_data()
122 if (ptr_ps_dec->iid_dt[e]) { in ixheaacd_decode_ps_data()
123 for (i = 0; i < ixheaacd_num_bands[ptr_ps_dec->iid_mode]; i++) { in ixheaacd_decode_ps_data()
125 ixheaacd_add16(*p_iid_par_prev, ptr_ps_dec->iid_par_table[e][i]); in ixheaacd_decode_ps_data()
126 ptr_ps_dec->iid_par_table[e][i] = ixheaacd_clamp( in ixheaacd_decode_ps_data()
131 ptr_ps_dec->iid_par_table[e][0] = in ixheaacd_decode_ps_data()
132 ixheaacd_clamp(ptr_ps_dec->iid_par_table[e][0], in ixheaacd_decode_ps_data()
134 for (i = 1; i < ixheaacd_num_bands[ptr_ps_dec->iid_mode]; i++) { in ixheaacd_decode_ps_data()
135 temp = ixheaacd_add16(ptr_ps_dec->iid_par_table[e][i - 1], in ixheaacd_decode_ps_data()
136 ptr_ps_dec->iid_par_table[e][i]); in ixheaacd_decode_ps_data()
137 ptr_ps_dec->iid_par_table[e][i] = ixheaacd_clamp( in ixheaacd_decode_ps_data()
142 memset(ptr_ps_dec->iid_par_table[e], 0, in ixheaacd_decode_ps_data()
143 sizeof(WORD16) * ixheaacd_num_bands[ptr_ps_dec->iid_mode]); in ixheaacd_decode_ps_data()
147 for (i = (ixheaacd_num_bands[ptr_ps_dec->iid_mode] * iid_mode - 1); in ixheaacd_decode_ps_data()
149 ptr_ps_dec->iid_par_table[e][i] = in ixheaacd_decode_ps_data()
150 ptr_ps_dec->iid_par_table[e][ixheaacd_shr32(i, 1)]; in ixheaacd_decode_ps_data()
154 if (ptr_ps_dec->enable_icc) { in ixheaacd_decode_ps_data()
155 if (ptr_ps_dec->icc_dt[e]) { in ixheaacd_decode_ps_data()
156 for (i = 0; i < ixheaacd_num_bands[ptr_ps_dec->icc_mode]; i++) { in ixheaacd_decode_ps_data()
158 ixheaacd_add16(*p_icc_par_prev, ptr_ps_dec->icc_par_table[e][i]); in ixheaacd_decode_ps_data()
159 ptr_ps_dec->icc_par_table[e][i] = in ixheaacd_decode_ps_data()
164 ptr_ps_dec->icc_par_table[e][0] = ixheaacd_clamp( in ixheaacd_decode_ps_data()
165 ptr_ps_dec->icc_par_table[e][0], 0, (WORD16)(NUM_ICC_LEVELS - 1)); in ixheaacd_decode_ps_data()
166 for (i = 1; i < ixheaacd_num_bands[ptr_ps_dec->icc_mode]; i++) { in ixheaacd_decode_ps_data()
167 temp = ixheaacd_add16(ptr_ps_dec->icc_par_table[e][i - 1], in ixheaacd_decode_ps_data()
168 ptr_ps_dec->icc_par_table[e][i]); in ixheaacd_decode_ps_data()
169 ptr_ps_dec->icc_par_table[e][i] = in ixheaacd_decode_ps_data()
174 memset(ptr_ps_dec->icc_par_table[e], 0, in ixheaacd_decode_ps_data()
175 sizeof(WORD16) * ixheaacd_num_bands[ptr_ps_dec->icc_mode]); in ixheaacd_decode_ps_data()
179 for (i = (ixheaacd_num_bands[ptr_ps_dec->icc_mode] * icc_mode - 1); in ixheaacd_decode_ps_data()
181 ptr_ps_dec->icc_par_table[e][i] = in ixheaacd_decode_ps_data()
182 ptr_ps_dec->icc_par_table[e][ixheaacd_shr32(i, 1)]; in ixheaacd_decode_ps_data()
187 if (ptr_ps_dec->num_env == 0) { in ixheaacd_decode_ps_data()
188 ptr_ps_dec->num_env = 1; in ixheaacd_decode_ps_data()
190 if (ptr_ps_dec->enable_iid) { in ixheaacd_decode_ps_data()
191 memcpy(ptr_ps_dec->iid_par_table[0], ptr_ps_dec->iid_par_prev, in ixheaacd_decode_ps_data()
194 memset(ptr_ps_dec->iid_par_table[0], 0, sizeof(WORD16) * NUM_BANDS_FINE); in ixheaacd_decode_ps_data()
197 if (ptr_ps_dec->enable_icc) { in ixheaacd_decode_ps_data()
198 memcpy(ptr_ps_dec->icc_par_table[0], ptr_ps_dec->icc_par_prev, in ixheaacd_decode_ps_data()
201 memset(ptr_ps_dec->icc_par_table[0], 0, sizeof(WORD16) * NUM_BANDS_FINE); in ixheaacd_decode_ps_data()
205 memcpy(ptr_ps_dec->iid_par_prev, in ixheaacd_decode_ps_data()
206 ptr_ps_dec->iid_par_table[ptr_ps_dec->num_env - 1], in ixheaacd_decode_ps_data()
209 memcpy(ptr_ps_dec->icc_par_prev, in ixheaacd_decode_ps_data()
210 ptr_ps_dec->icc_par_table[ptr_ps_dec->num_env - 1], in ixheaacd_decode_ps_data()
213 ptr_ps_dec->ps_data_present = 0; in ixheaacd_decode_ps_data()
215 if (ptr_ps_dec->frame_class == 0) { in ixheaacd_decode_ps_data()
219 switch (ptr_ps_dec->num_env) { in ixheaacd_decode_ps_data()
230 ptr_ps_dec->border_position[0] = 0; in ixheaacd_decode_ps_data()
233 for (e = 1; e < ptr_ps_dec->num_env; e++) { in ixheaacd_decode_ps_data()
235 ptr_ps_dec->border_position[e] = (WORD16)(env_count >> shift); in ixheaacd_decode_ps_data()
237 ptr_ps_dec->border_position[ptr_ps_dec->num_env] = MAX_NUM_COLUMNS; in ixheaacd_decode_ps_data()
239 ptr_ps_dec->border_position[0] = 0; in ixheaacd_decode_ps_data()
241 if (ptr_ps_dec->border_position[ptr_ps_dec->num_env] < MAX_NUM_COLUMNS) { in ixheaacd_decode_ps_data()
242 ptr_ps_dec->num_env++; in ixheaacd_decode_ps_data()
243 add_d(ptr_ps_dec->num_env, 1); in ixheaacd_decode_ps_data()
244 ptr_ps_dec->border_position[ptr_ps_dec->num_env] = MAX_NUM_COLUMNS; in ixheaacd_decode_ps_data()
246 memcpy(ptr_ps_dec->iid_par_table[ptr_ps_dec->num_env - 1], in ixheaacd_decode_ps_data()
247 ptr_ps_dec->iid_par_table[ptr_ps_dec->num_env - 2], in ixheaacd_decode_ps_data()
250 memcpy(ptr_ps_dec->icc_par_table[ptr_ps_dec->num_env - 1], in ixheaacd_decode_ps_data()
251 ptr_ps_dec->icc_par_table[ptr_ps_dec->num_env - 2], in ixheaacd_decode_ps_data()
255 for (e = 1; e < ptr_ps_dec->num_env; e++) { in ixheaacd_decode_ps_data()
257 threshold = sub_d(MAX_NUM_COLUMNS, sub_d(ptr_ps_dec->num_env, e)); in ixheaacd_decode_ps_data()
259 if (ptr_ps_dec->border_position[e] > threshold) { in ixheaacd_decode_ps_data()
260 ptr_ps_dec->border_position[e] = threshold; in ixheaacd_decode_ps_data()
262 threshold = add_d(ptr_ps_dec->border_position[e - 1], 1); in ixheaacd_decode_ps_data()
264 if (ptr_ps_dec->border_position[e] < threshold) { in ixheaacd_decode_ps_data()
265 ptr_ps_dec->border_position[e] = threshold; in ixheaacd_decode_ps_data()
271 for (e = 0; e < ptr_ps_dec->num_env; e++) { in ixheaacd_decode_ps_data()
272 if (ptr_ps_dec->iid_mode == 2) in ixheaacd_decode_ps_data()
273 ixheaacd_map_34_params_to_20(ptr_ps_dec->iid_par_table[e]); in ixheaacd_decode_ps_data()
275 if (ptr_ps_dec->icc_mode == 2) in ixheaacd_decode_ps_data()
276 ixheaacd_map_34_params_to_20(ptr_ps_dec->icc_par_table[e]); in ixheaacd_decode_ps_data()