blob: 110f71dcf1a1c1df111a24e6b8fa23cf9e1cc6e8 [file] [log] [blame]
Hamsalekha S8d3d3032015-03-13 21:24:58 +05301/******************************************************************************
2 *
3 * Copyright (C) 2015 The Android Open Source Project
4 *
5 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at:
8 *
9 * http://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
16 *
17 *****************************************************************************
18 * Originally developed and contributed by Ittiam Systems Pvt. Ltd, Bangalore
19*/
20#ifndef _IH264D_STRUCTS_H_
21#define _IH264D_STRUCTS_H_
22
23#include "ih264_typedefs.h"
24#include "ih264_macros.h"
25#include "ih264_platform_macros.h"
26#include "iv.h"
27#include "ivd.h"
28
29#include "ih264d_transfer_address.h"
30#include "ih264d_defs.h"
31#include "ih264d_defs.h"
32#include "ih264d_bitstrm.h"
33#include "ih264d_debug.h"
34#include "ih264d_dpb_manager.h"
35/* includes for CABAC */
36#include "ih264d_cabac.h"
37#include "ih264d_dpb_manager.h"
38
39#include "ih264d_vui.h"
40#include "ih264d_sei.h"
41#include "iv.h"
42#include "ivd.h"
43
44#include "ih264_weighted_pred.h"
45#include "ih264_trans_quant_itrans_iquant.h"
46#include "ih264_inter_pred_filters.h"
47#include "ih264_mem_fns.h"
48#include "ih264_padding.h"
49#include "ih264_intra_pred_filters.h"
50#include "ih264_deblk_edge_filters.h"
51
52
53/** Number of Mb's whoose syntax will be read */
54/************************************************************/
55/* MB_GROUP should be a multiple of 2 */
56/************************************************************/
57#define PARSE_MB_GROUP_4 4
58
59/* MV_SCRATCH_BUFS assumed to be pow(2) */
60#define MV_SCRATCH_BUFS 4
61
62#define LEFT_MB_PIXELS 4
63#define LEFT_MB_PIXELS_Y_FRM_BOT 64 /* 4 * 16 */
64#define LEFT_MB_PIXELS_CR_FRM_BOT 32 /* 4 * 8 */
65
66#define TOP_FIELD_ONLY 0x02
67#define BOT_FIELD_ONLY 0x01
68
69#define MAX_REF_BUF_SIZE (3776*2*2)
70
71struct _DecStruct;
72struct _DecMbInfo;
73
74
75#define NUM_INT_G_TABLE ((UWORD32) (sigcoeff_ctxtinc_field8x8 + 1))
76#define NUM_EXT_G_TABLE ((UWORD32) (ITTIAM_LOGO_V_BUF_T + 1))
77
78typedef enum
79{
80 MB_TYPE_SI_SLICE = 0,
81 MB_TYPE_I_SLICE = 3,
82 MB_SKIP_FLAG_P_SLICE = 11,
83 MB_TYPE_P_SLICE = 14,
84 SUB_MB_TYPE_P_SLICE = 21,
85 MB_SKIP_FLAG_B_SLICE = 24,
86 MB_TYPE_B_SLICE = 27,
87 SUB_MB_TYPE_B_SLICE = 36,
88 MVD_X = 40,
89 MVD_Y = 47,
90 REF_IDX = 54,
91 MB_QP_DELTA = 60,
92 INTRA_CHROMA_PRED_MODE = 64,
93 PREV_INTRA4X4_PRED_MODE_FLAG = 68,
94 REM_INTRA4X4_PRED_MODE = 69,
95 MB_FIELD_DECODING_FLAG = 70,
96 CBP_LUMA = 73,
97 CBP_CHROMA = 77,
98 CBF = 85,
99 SIGNIFICANT_COEFF_FLAG_FRAME = 105,
100 SIGNIFICANT_COEFF_FLAG_FLD = 277,
101 LAST_SIGNIFICANT_COEFF_FLAG_FRAME = 166,
102 LAST_SIGNIFICANT_COEFF_FLAG_FLD = 338,
103 COEFF_ABS_LEVEL_MINUS1 = 227,
104
105 /* High profile related Syntax element CABAC offsets */
106 TRANSFORM_SIZE_8X8_FLAG = 399,
107 SIGNIFICANT_COEFF_FLAG_8X8_FRAME = 402,
108 LAST_SIGNIFICANT_COEFF_FLAG_8X8_FRAME = 417,
109 COEFF_ABS_LEVEL_MINUS1_8X8 = 426,
110 SIGNIFICANT_COEFF_FLAG_8X8_FIELD = 436,
111 LAST_SIGNIFICANT_COEFF_FLAG_8X8_FIELD = 451
112
113} cabac_table_num_t;
114
115typedef enum
116{
117 SIG_COEFF_CTXT_CAT_0_OFFSET = 0,
118 SIG_COEFF_CTXT_CAT_1_OFFSET = 15,
119 SIG_COEFF_CTXT_CAT_2_OFFSET = 29,
120 SIG_COEFF_CTXT_CAT_3_OFFSET = 44,
121 SIG_COEFF_CTXT_CAT_4_OFFSET = 47,
122 SIG_COEFF_CTXT_CAT_5_OFFSET = 0,
123 COEFF_ABS_LEVEL_CAT_0_OFFSET = 0,
124 COEFF_ABS_LEVEL_CAT_1_OFFSET = 10,
125 COEFF_ABS_LEVEL_CAT_2_OFFSET = 20,
126 COEFF_ABS_LEVEL_CAT_3_OFFSET = 30,
127 COEFF_ABS_LEVEL_CAT_4_OFFSET = 39,
128 COEFF_ABS_LEVEL_CAT_5_OFFSET = 0
129} cabac_blk_cat_offset_t;
130
131typedef enum
132{
133 CABAC_IPBMB_LD_ADRS_T,
134 CABAC_IPBMB_LD_SZ_T,
135 CAVLC_IPBMB_LD_ADRS_T,
136 CAVLC_IPBMB_LD_SZ_T,
137 PARSE_IPBMB_RUN_ADRS_T,
138
139 MVP_MBAFF_LD_ADRS_T,
140 MVP_MBAFF_LD_SZ_T,
141 MVP_NON_MBAFF_LD_ADRS_T,
142 MVP_NON_MBAFF_LD_SZ_T,
143 MVPRED_RUN_ADRS_T,
144
145 B_REF_DMA_LD_ADRS_T,
146 B_REF_DMA_LD_SZ_T,
147 P_REF_DMA_LD_ADRS_T,
148 P_REF_DMA_LD_SZ_T,
149 REF_DMA_RUN_ADRS_T,
150
151 SP_DRCT_LD_ADRS_T,
152 SP_DRCT_LD_SZ_T,
153 TMP_DRCT_LD_ADRS_T,
154 TMP_DRCT_LD_SZ_T,
155 B_SKIP_RUN_ADRS_T,
156
157 DEC_DEBLK_RUN_ADRS_T,
158 H264_DBLK_LD_ADRS_T,
159 H264_DBLK_LD_SZ_T,
160 H264_DEC_LD_ADRS_T,
161
162 /*
163 * (H264_DEC_LD_SZ_T + 1) will be considered as the end of this table
164 * new members to be added before this
165 */
166 H264_DEC_LD_SZ_T
167} code_overlay_tab_t;
168
169/** Structure for the MV bank */
170typedef struct _mv_pred_t
171{
172 WORD16 i2_mv[4]; /** 0- mvFwdX, 1- mvFwdY, 2- mvBwdX, 3- mvBwdY */
173 WORD8 i1_ref_frame[2];
174
175 UWORD8 u1_col_ref_pic_idx; /** Idx into the pic buff array */
176 UWORD8 u1_pic_type; /** Idx into the pic buff array */
177
178} mv_pred_t;
179
180typedef struct
181{
182 WORD32 i4_mv_indices[16];
183 WORD8 i1_submb_num[16];
184 WORD8 i1_partitionsize[16];
185 WORD8 i1_num_partitions;
186 WORD8 u1_vert_mv_scale;
187 UWORD8 u1_col_zeroflag_change;
188} directmv_t;
189
190typedef struct pic_buffer_t
191{
192 /**Different components of the picture */
193 UWORD8 *pu1_buf1;
194 UWORD8 *pu1_buf2;
195 UWORD8 *pu1_buf3;
196 UWORD16 u2_disp_width; /** Width of the display luma frame in pixels */
197 UWORD16 u2_disp_height; /** Height of the display luma frame in pixels */
198 UWORD32 u4_time_stamp; /** Time at which frame has to be displayed */
199 UWORD16 u2_frm_wd_y; /** Width of the luma frame in pixels */
200 UWORD16 u2_frm_wd_uv; /** Width of the chroma frame */
201 UWORD16 u2_frm_ht_y; /** Height of the luma frame in pixels */
202 UWORD16 u2_frm_ht_uv; /** Height of the chroma frame */
203 /* Upto this is resembling the structure IH264DEC_DispUnit */
204
205 /* If any member is to be added, add below this */
206
207 /* u4_ofst from start of picture buffer to display position for Y buffer */
208 UWORD16 u2_crop_offset_y;
209
210 /* u4_ofst from start of picture buffer to display position for UV buffer */
211 UWORD16 u2_crop_offset_uv;
212
213 UWORD8 u1_is_short; /** (1: short 0: long) term ref pic */
214 UWORD8 u1_pic_type; /** frame / field / complementary field pair */
215 UWORD8 u1_pic_buf_id; /** Idx into the picBufAPI array */
216 UWORD8 u1_mv_buf_id;
217 WORD32 i4_seq;
218 UWORD8 *pu1_col_zero_flag;
219 mv_pred_t *ps_mv; /** Pointer to the MV bank array */
220 WORD32 i4_poc; /** POC */
221 WORD32 i4_pic_num;
222 WORD32 i4_frame_num;
223 WORD32 i4_top_field_order_cnt; /** TopPOC */
224 WORD32 i4_bottom_field_order_cnt; /** BottomPOC */
225 WORD32 i4_avg_poc; /** minPOC */
226 UWORD8 u1_picturetype; /*Same as u1_pic_type..u1_pic_type gets overwritten whereas
227 this doesnot get overwritten ...stores the pictype of
228 frame/complementary field pair/ mbaff */
229 UWORD8 u1_long_term_frm_idx;
230 UWORD8 u1_long_term_pic_num;
231 UWORD32 u4_pack_slc_typ; /* It will contain information about types of slices */
232
233 /* ! */
234 UWORD32 u4_ts;
235 UWORD8 u1_pic_struct;/* Refer to SEI table D-1 */
236
237} pic_buffer_t;
238
239typedef struct
240{
241 void *u4_add[4];
242} neighbouradd_t;
243
244typedef struct
245{
246 const UWORD8 *pu1_inv_scan;
247 void *pv_table[6];
248} cavlc_cntxt_t;
249
250/**
251 ************************************************************************
252 * \file ih264d_structs.h
253 *
254 * \brief
255 * Structures used in the H.264 decoder
256 *
257 * \date
258 * 18/11/2002
259 *
260 * \author Sriram Sethuraman
261 *
262 ************************************************************************
263 */
264
265/**
266 * Structure to represent a MV Bank buffer and col flag
267 */
268typedef struct
269{
270 /**
271 * Pointer to buffer that holds col flag.
272 */
273 void *pv_col_zero_flag;
274
275 /**
276 * Pointer to buffer that holds mv_pred
277 */
278 void *pv_mv;
279
280 }col_mv_buf_t;
281
282
283/* Note the i4_size of this structure is hardcoded in arm_default_weighted_Pred.s as 0x3C.
284 * ADD r0,r0,#0x3C and so on..
285 * If there is a change in i4_size update above file accordingly.
286 */
287typedef struct
288{
289 UWORD8 u1_mc_addr_ofst; /** Offset in bytes relative to pu1_dma_dest_addr */
290 UWORD8 u1_dydx; /** 4*dy + dx for Y comp / 8*dy + dx for UV comp */
291 UWORD8 u1_is_bi_direct; /** 1: is bi-direct 0: forward / backward only */
292 UWORD8 u1_wght_pred_type; /** 0-default 1-singleWeighted 2-BiWeighted */
293 WORD8 i1_mb_partwidth; /** Width of MB partition */
294 WORD8 i1_mb_partheight; /** Height of MB partition */
295 WORD8 i1_mc_wd; /** Number of bytes in a DMA stride */
296 WORD8 i1_dma_ht; /** Number of strides */
297
298 WORD8 i1_pod_ht; /** Flag specifying height of pad on demand */
299 /** 0 (No pod) -ve(Top pod) +ve(Bottom pod) */
300 UWORD16 u2_dst_stride; /** Stride value of the destination */
301 UWORD16 u2_u1_ref_buf_wd; /** Width of the ref buffer */
302 UWORD16 u2_frm_wd;
303 UWORD16 u2_dummy;
304
305 UWORD8 *u1_pi1_wt_ofst_rec_v; /** Pointer to packed weight and u4_ofst */
306 UWORD8 *pu1_rec_y_u; /** MB partition address in row buffer */
307 UWORD8 *pu1_dma_dest_addr; /** Destination address for DMA transfer */
308 UWORD8 *pu1_y_ref;
309 UWORD8 *pu1_u_ref;
310 UWORD8 *pu1_v_ref;
311
312 UWORD8 *pu1_pred;
313 UWORD8 *pu1_pred_u;
314 UWORD8 *pu1_pred_v;
315 UWORD8 u1_dma_wd_y;
316 UWORD8 u1_dma_ht_y;
317 UWORD8 u1_dma_wd_uv;
318 UWORD8 u1_dma_ht_uv;
319} pred_info_t;
320
321typedef struct
322{
323 UWORD32 *pu4_wt_offst;
324 WORD16 i2_mv[2];
325
326 /***************************************************/
327 /*packing information i1_size_pos_info */
328 /* bit 1:0 -> X position in terms of (4x4) units */
329 /* bit 3:2 -> Y position in terms of (4x4) units */
330 /* bit 5:4 -> PU width 0:4,1:8,2:16 */
331 /* bit 7:6 -> PU height 0:4,1:8,2:16 */
332 /***************************************************/
333 WORD8 i1_size_pos_info;
334
335 /***************************************************/
336 /*packing information ref idx info */
337 /* bit 5:0 ->ref_idx */
338 /* bit 6:7 -> 0:l0,1:l1,2:bipred */
339 /***************************************************/
340 WORD8 i1_ref_idx_info;
341
342 WORD8 i1_buf_id;
343
344
345 UWORD8 u1_pic_type; /** frame /top field/bottom field/mbaff / complementary field pair */
346
347}pred_info_pkd_t;
348/*! Sequence level parameters */
349
350typedef struct
351{
352 UWORD8 u1_seq_parameter_set_id; /** id for the seq par set 0-31 */
353 UWORD8 u1_is_valid; /** is Seq Param set valid */
354
355 UWORD16 u2_frm_wd_in_mbs; /** Frame width expressed in MB units */
356 UWORD16 u2_frm_ht_in_mbs; /** Frame height expressed in MB units */
357
358 /* Following are derived from the above two */
359 UWORD16 u2_fld_ht_in_mbs; /** Field height expressed in MB units */
360 UWORD16 u2_max_mb_addr; /** Total number of macroblocks in a coded picture */
361 UWORD16 u2_total_num_of_mbs; /** Total number of macroblocks in a coded picture */
362 UWORD32 u4_fld_ht; /** field height */
363 UWORD32 u4_cwidth; /** chroma width */
364 UWORD32 u4_chr_frm_ht; /** chroma height */
365 UWORD32 u4_chr_fld_ht; /** chroma field height */
366 UWORD8 u1_mb_aff_flag; /** 0 - no mb_aff; 1 - uses mb_aff */
367
368 UWORD8 u1_profile_idc; /** profile value */
369 UWORD8 u1_level_idc; /** level value */
370
371 /* high profile related syntax elements */
372 WORD32 i4_chroma_format_idc;
373 WORD32 i4_bit_depth_luma_minus8;
374 WORD32 i4_bit_depth_chroma_minus8;
375 WORD32 i4_qpprime_y_zero_transform_bypass_flag;
376 WORD32 i4_seq_scaling_matrix_present_flag;
377 UWORD8 u1_seq_scaling_list_present_flag[8];
378 UWORD8 u1_use_default_scaling_matrix_flag[8];
379 WORD16 i2_scalinglist4x4[6][16];
380 WORD16 i2_scalinglist8x8[2][64];
381 UWORD8 u1_more_than_one_slice_group_allowed_flag;
382 UWORD8 u1_arbitrary_slice_order_allowed_flag;
383 UWORD8 u1_redundant_slices_allowed_flag;
384 UWORD8 u1_bits_in_frm_num; /** Number of bits in frame num */
385 UWORD16 u2_u4_max_pic_num_minus1; /** Maximum frame num minus 1 */
386 UWORD8 u1_pic_order_cnt_type; /** 0 - 2 indicates the method to code picture order count */
387 UWORD8 u1_log2_max_pic_order_cnt_lsb_minus;
388 WORD32 i4_max_pic_order_cntLsb;
389 UWORD8 u1_num_ref_frames_in_pic_order_cnt_cycle;
390 UWORD8 u1_delta_pic_order_always_zero_flag;
391 WORD32 i4_ofst_for_non_ref_pic;
392 WORD32 i4_ofst_for_top_to_bottom_field;
393 WORD32 i4_ofst_for_ref_frame[MAX_NUM_REF_FRAMES_OFFSET];
394 UWORD8 u1_num_ref_frames;
395 UWORD8 u1_gaps_in_frame_num_value_allowed_flag;
396 UWORD8 u1_frame_mbs_only_flag; /** 1 - frame only; 0 - field/frame pic */
397 UWORD8 u1_direct_8x8_inference_flag;
398 UWORD8 u1_vui_parameters_present_flag;
399 vui_t s_vui;
400} dec_seq_params_t;
401
402typedef struct
403{
404 UWORD16 u2_frm_wd_in_mbs; /** Frame width expressed in MB units */
405 UWORD16 u2_frm_ht_in_mbs; /** Frame height expressed in MB units */
406 UWORD8 u1_frame_mbs_only_flag; /** 1 - frame only; 0 - field/frame pic */
407 UWORD8 u1_profile_idc; /** profile value */
408 UWORD8 u1_level_idc; /** level value */
409 UWORD8 u1_direct_8x8_inference_flag;
410 UWORD8 u1_eoseq_pending;
411} prev_seq_params_t;
412
413/** Picture level parameters */
414typedef struct
415{
416 dec_seq_params_t *ps_sps; /** applicable seq. parameter set */
417
418 /* High profile related syntax elements */
419 WORD32 i4_transform_8x8_mode_flag;
420 WORD32 i4_pic_scaling_matrix_present_flag;
421 UWORD8 u1_pic_scaling_list_present_flag[8];
422 UWORD8 u1_pic_use_default_scaling_matrix_flag[8];
423 WORD16 i2_pic_scalinglist4x4[6][16];
424 WORD16 i2_pic_scalinglist8x8[2][64];
425 WORD8 i1_second_chroma_qp_index_offset;
426
427 UWORD32 u4_slice_group_change_rate;
428 UWORD8 *pu1_slice_groupmb_map; /** MB map with slice membership labels */
429 UWORD8 u1_pic_parameter_set_id; /** id for the picture par set 0-255*/
430 UWORD8 u1_entropy_coding_mode; /** Entropy coding : 0-VLC; 1 - CABAC */
431 UWORD8 u1_num_slice_groups; /** Number of slice groups */
432 UWORD8 u1_pic_init_qp; /** Initial QPY for the picture {-26,25}*/
433 WORD8 i1_chroma_qp_index_offset; /** Chroma QP u4_ofst w.r.t QPY {-12,12} */
434 UWORD8 u1_dblk_filter_parms_flag; /** Slice layer has deblocking filter parameters */
435 UWORD8 u1_constrained_intra_pred_flag; /** Constrained intra prediction u4_flag */
436 UWORD8 u1_redundant_pic_cnt_present_flag; /** Redundant_pic_cnt is in slices using this PPS */
437 UWORD8 u1_pic_order_present_flag; /** Pic order present u4_flag */
438 UWORD8 u1_num_ref_idx_lx_active[2]; /** Maximum reference picture index in the reference list 0 : range [1 - 15] */
439 UWORD8 u1_wted_pred_flag;
440 UWORD8 u1_wted_bipred_idc;
441 UWORD8 u1_pic_init_qs;
442 UWORD8 u1_deblocking_filter_parameters_present_flag;
443 UWORD8 u1_vui_pic_parameters_flag;
444 UWORD8 u1_mb_slice_group_map_type;
445 UWORD8 u1_slice_group_change_direction_flag;
446 UWORD8 u1_frame_cropping_flag;
447 UWORD8 u1_frame_cropping_rect_left_ofst;
448 UWORD8 u1_frame_cropping_rect_right_ofst;
449 UWORD8 u1_frame_cropping_rect_top_ofst;
450 UWORD8 u1_frame_cropping_rect_bottom_ofst;
451 void * pv_codec_handle; /* For Error Handling */
452 WORD32 i4_top_field_order_cnt;
453 WORD32 i4_bottom_field_order_cnt;
454 WORD32 i4_avg_poc;
455 UWORD8 u1_is_valid; /** is Pic Param set valid */
456} dec_pic_params_t;
457
458/** Picture Order Count Paramsters */
459typedef struct
460{
461 WORD32 i4_pic_order_cnt_lsb;
462 WORD32 i4_pic_order_cnt_msb;
463 WORD32 i4_delta_pic_order_cnt_bottom;
464 WORD32 i4_delta_pic_order_cnt[2];
465 WORD32 i4_prev_frame_num_ofst;
466 UWORD8 u1_mmco_equalto5;
467 UWORD8 u1_bot_field;
468 UWORD16 u2_frame_num;
469 WORD32 i4_top_field_order_count;
470 WORD32 i4_bottom_field_order_count;
471} pocstruct_t;
472
473/*****************************************************************************/
474/* parse_mb_pers_info contains necessary mb info data required persistently */
475/* in the form of top and left neighbours. */
476/*****************************************************************************/
477typedef struct
478{
479 void *u4_pic_addrress[4]; /* picture address for BS calc */
480 WORD8 pi1_intrapredmodes[4]; /* calc Intra pred modes */
481 UWORD8 pu1_nnz_y[4];
482 UWORD8 pu1_nnz_uv[4];
483 UWORD8 u1_mb_fld;
484 UWORD8 u1_mb_type;
485 UWORD16 u2_luma_csbp; /* Luma csbp used for BS calc */
486 UWORD8 u1_tran_form8x8;
487} mb_neigbour_params_t;
488
489/* This info is required for decoding purposes except Deblockng */
490typedef struct _DecMbInfo
491{
492 UWORD8 u1_mb_type; /** macroblock type: I/P/B/SI/SP */
493 UWORD8 u1_chroma_pred_mode;
494 UWORD8 u1_cbp;
495 UWORD8 u1_mb_mc_mode; /** 16x16, 2 16x8, 2 8x16, 4 8x8 */
496 UWORD8 u1_topmb; /** top Mb u4_flag */
497 UWORD8 u1_mb_ngbr_availablity;
498 UWORD8 u1_end_of_slice;
499 UWORD8 u1_mb_field_decodingflag;
500 UWORD8 u1_topleft_mb_fld;
501 UWORD8 u1_topleft_mbtype;
502 WORD8 i1_offset;
503 UWORD8 u1_Mux;
504 UWORD8 u1_qp_div6;
505 UWORD8 u1_qp_rem6;
506 UWORD8 u1_qpc_div6;
507 UWORD8 u1_qpcr_div6;
508 UWORD8 u1_qpc_rem6;
509 UWORD8 u1_qpcr_rem6;
510 UWORD8 u1_tran_form8x8;
511 UWORD8 u1_num_pred_parts;
512 UWORD8 u1_yuv_dc_block_flag;
513 UWORD16 u2_top_right_avail_mask;
514 UWORD16 u2_top_left_avail_mask;
515 UWORD16 u2_luma_csbp; /** Coded 4x4 Sub Block Pattern */
516 UWORD16 u2_chroma_csbp; /** Coded 4x4 Sub Block Pattern */
517 UWORD16 u2_mbx;
518 UWORD16 u2_mby;
519 UWORD16 u2_mask[2];
520
521 UWORD32 u4_pred_info_pkd_idx;
522
523 mb_neigbour_params_t *ps_left_mb;
524 mb_neigbour_params_t *ps_top_mb;
525 mb_neigbour_params_t *ps_top_right_mb;
526 mb_neigbour_params_t *ps_curmb;
527} dec_mb_info_t;
528
529
530/** Slice level parameters */
531typedef struct
532{
533 dec_pic_params_t *ps_pps; /** PPS used */
534 WORD32 i4_delta_pic_order_cnt[2];
535 WORD32 i4_poc; /** Pic order cnt of picture to which slice belongs*/
536 UWORD32 u4_idr_pic_id; /** IDR pic ID */
537 UWORD16 u2_first_mb_in_slice; /** Address of first MB in slice*/
538 UWORD16 u2_frame_num; /** Frame number from prev IDR pic */
539
540 UWORD8 u1_mbaff_frame_flag; /** Mb adaptive frame field u4_flag */
541 UWORD8 u1_field_pic_flag; /** Field picture or not */
542 UWORD8 u1_bottom_field_flag; /** If slice belongs to bot field pic */
543 UWORD8 u1_slice_type; /** I/P/B/SI/SP */
544 WORD32 i4_pic_order_cnt_lsb; /** Picture Order Count */
545 UWORD8 u1_slice_qp; /** Add slice_qp_delta to pic_init_QP */
546 UWORD8 u1_disable_dblk_filter_idc; /** 0-dblk all edges; 1 - suppress; 2 - suppress only edges */
547 WORD8 i1_slice_alpha_c0_offset; /** dblk: alpha and C0 table u4_ofst {-12,12}*/
548 WORD8 i1_slice_beta_offset; /** dblk: beta table u4_ofst {-12, 12}*/
549 UWORD8 u1_sp_for_switch_flag;
550 UWORD8 u1_no_output_of_prior_pics_flag;
551 UWORD8 u1_long_term_reference_flag;
552 UWORD8 u1_num_ref_idx_lx_active[2];
553 UWORD8 u1_cabac_init_idc; /** cabac_init_idc */
554 UWORD8 u1_num_ref_idx_active_override_flag;
555 UWORD8 u1_direct_spatial_mv_pred_flag;
556 WORD32 (*pf_decodeDirect)(struct _DecStruct *ps_dec,
557 UWORD8 u1_wd_x,
558 dec_mb_info_t *ps_cur_mb_info,
559 UWORD8 u1_mb_num);
560 UWORD8 u1_redundant_pic_cnt;
561 WORD8 i1_slice_qs_delta;
562 UWORD8 u1_nal_ref_idc; /** NAL ref idc of the Slice NAL unit */
563 UWORD8 u1_nal_unit_type; /** NAL unit type of the Slice NAL */
564 UWORD8 u1_direct_8x8_inference_flag;
565 UWORD8 u1_mmco_equalto5; /** any of the MMCO command equal to 5 */
566 UWORD8 u1_pic_order_cnt_type;
567 pocstruct_t s_POC;
568 /* DataStructures required for weighted prediction */
569 UWORD16 u2_log2Y_crwd; /** Packed luma and chroma log2_weight_denom */
570 /* [list0/list1]:[ref pics index]:[0-Y 1-Cb 2-Cr] [weight/u4_ofst],
571 weights and offsets are signed numbers, since they are packed, it is defined
572 unsigned. LSB byte : weight and MSB byte: u4_ofst */
573 UWORD32 u4_wt_ofst_lx[2][MAX_REF_BUFS][3];
574 void * pv_codec_handle; /* For Error Handling */
575 UWORD8 u1_end_of_frame_signal;
576
577 /* This is used when reordering is done in Forward or */
578 /* backward lists. This is because reordering can point */
579 /* to any valid entry in initial list irrespective of */
580 /* num_ref_idx_active which could be overwritten using */
581 /* ref_idx_reorder_flag */
582 UWORD8 u1_initial_list_size[2];
583 UWORD32 u4_mbs_in_slice;
584} dec_slice_params_t;
585
586
587typedef struct
588{
589 UWORD8 u1_mb_type; /* Bit representations, X- reserved */
590 /** |Field/Frame|X|X|X|X|Bslice u4_flag|PRED_NON_16x16 u4_flag |Intra Mbflag| */
591 UWORD8 u1_mb_qp;
592 UWORD8 u1_deblocking_mode; /** dblk: Mode [ NO / NO TOP / NO LEFT] filter */
593 WORD8 i1_slice_alpha_c0_offset; /** dblk: alpha and C0 table u4_ofst {-12,12}*/
594 WORD8 i1_slice_beta_offset; /** dblk: beta table u4_ofst {-12, 12}*/
595 UWORD8 u1_single_call;
596 UWORD8 u1_topmb_qp;
597 UWORD8 u1_left_mb_qp;
598 UWORD32 u4_bs_table[10]; /* Boundary strength */
599
600} deblk_mb_t;
601
602typedef struct
603{
604 UWORD8 u1_mb_type;
605 UWORD8 u1_mb_qp;
606} deblkmb_neighbour_t;
607
608#define MAX_MV_RESIDUAL_INFO_PER_MB 32
609#define MAX_REFIDX_INFO_PER_MB 4
610#define PART_NOT_DIRECT 0
611#define PART_DIRECT_8x8 1
612#define PART_DIRECT_16x16 2
613typedef struct
614{
615 UWORD8 u1_is_direct;
616 UWORD8 u1_pred_mode;
617 UWORD8 u1_sub_mb_num;
618 UWORD8 u1_partheight;
619 UWORD8 u1_partwidth;
620} parse_part_params_t;
621
622typedef struct
623{
624 UWORD8 u1_isI_mb;
625 UWORD8 u1_num_part;
626 UWORD32 *pu4_wt_offst[MAX_REFIDX_INFO_PER_MB];
627 WORD8 i1_ref_idx[2][MAX_REFIDX_INFO_PER_MB];
628 UWORD8 u1_col_info[MAX_REFIDX_INFO_PER_MB];
629} parse_pmbarams_t;
630
631typedef struct
632{
633 UWORD8 *pu1_mb_y; /* pointer to N-Mb pad buffer Y (Horz) */
634 UWORD8 *pu1_mb_u; /* pointer to N-Mb pad buffer U (Horz) */
635 UWORD8 *pu1_mb_v; /* pointer to N-Mb pad buffer V (Horz) */
636 UWORD8 *pu1_row_y; /* pointer to row pad buffer Y (Vert) */
637 UWORD8 *pu1_row_u; /* pointer to row pad buffer U (Vert) */
638 UWORD8 *pu1_row_v; /* pointer to row pad buffer V (Vert) */
639 UWORD8 u1_vert_pad_top; /* flip-flop u4_flag remembering pad area (Vert) */
640 UWORD8 u1_vert_pad_bot; /* flip-flop u4_flag remembering pad area (Vert) */
641 UWORD8 u1_horz_pad; /* flip-flop u4_flag remembering pad area (Vert) */
642 UWORD8 u1_pad_len_y_v; /* vertical pad amount for luma */
643 UWORD8 u1_pad_len_cr_v; /* vertical pad amount for chroma */
644} pad_mgr_t;
645
646typedef struct code_overlay_ctxt
647{
648 UWORD8 u1_pb_slice_type;
649 UWORD8 u1_entropy_coding_type;
650 UWORD8 u1_mbaff_frame_flag;
651 UWORD8 u1_b_direct_flag;
652} code_overlay_ctxt_t;
653
654#define ACCEPT_ALL_PICS (0x00)
655#define REJECT_CUR_PIC (0x01)
656#define REJECT_PB_PICS (0x02)
657
658#define PIC_TYPE_UNKNOWN (0xFF)
659#define PIC_TYPE_I (0x00)
660#define SYNC_FRM_DEFAULT (0xFFFFFFFF)
661#define INIT_FRAME (0xFFFFFF)
662
663typedef struct dec_err_status_t
664{
665 UWORD8 u1_cur_pic_type;
666 UWORD8 u1_pic_aud_i;
667 UWORD8 u1_err_flag;
668 UWORD32 u4_frm_sei_sync;
669 UWORD32 u4_cur_frm;
670} dec_err_status_t;
671
672/**************************************************************************/
673/* Structure holds information about all high profile toolsets */
674/**************************************************************************/
675typedef struct
676{
677 /*****************************************/
678 /* variables required for scaling */
679 /*****************************************/
680 UWORD8 u1_scaling_present;
681 WORD16 *pi2_scale_mat[8];
682
683 /*************************************************/
684 /* scaling matrices for frame macroblocks after */
685 /* inverse scanning */
686 /*************************************************/
687 WORD16 i2_scalinglist4x4[6][16];
688 WORD16 i2_scalinglist8x8[2][64];
689
690
691 /*****************************************/
692 /* variables required for transform8x8 */
693 /*****************************************/
694 UWORD8 u1_transform8x8_present;
695 UWORD8 u1_direct_8x8_inference_flag;
696 /* temporary variable to get noSubMbPartSizeLessThan8x8Flag from ih264d_parse_bmb_non_direct_cavlc */
697 UWORD8 u1_no_submb_part_size_lt8x8_flag;
698
699 /* needed for inverse scanning */
700 cavlc_cntxt_t s_cavlc_ctxt;
701
702 /* contexts for the CABAC related parsing */
703 bin_ctxt_model_t *ps_transform8x8_flag;
704 bin_ctxt_model_t *ps_sigcoeff_8x8_frame;
705 bin_ctxt_model_t *ps_last_sigcoeff_8x8_frame;
706 bin_ctxt_model_t *ps_coeff_abs_levelminus1;
707 bin_ctxt_model_t *ps_sigcoeff_8x8_field;
708 bin_ctxt_model_t *ps_last_sigcoeff_8x8_field;
709
710/* variables required for intra8x8 */
711
712/* variables required for handling different Qp for Cb and Cr */
713
714} high_profile_tools_t;
715
716typedef struct
717{
718 UWORD32 u4_num_bufs; /* Number of buffers in each display frame. 2 for 420SP and 3 for 420P and so on */
719 void *buf[3]; /* Pointers to each of the components */
720 UWORD32 u4_bufsize[3];
721 UWORD32 u4_ofst[3];
722} disp_buf_t;
723typedef struct _dec_slice_struct
724{
725 volatile UWORD32 u4_first_mb_in_slice;
726 volatile UWORD32 u4_num_mbs_done_in_slice;
727 volatile UWORD32 slice_type;
728 volatile UWORD32 end_of_slice;
729 volatile UWORD32 slice_header_done;
730 volatile UWORD32 last_slice_in_frame;
731 volatile UWORD16 u2_log2Y_crwd;
732 volatile UWORD16 u2_error_flag;
733 volatile void **ppv_map_ref_idx_to_poc;
734} dec_slice_struct_t;
735
736typedef struct
737{
738 UWORD32 u4_flag;
739 UWORD32 u4_start_y;
740 UWORD32 u4_num_rows_y;
741} fmt_conv_part_t;
742
743/**
744 * Structure to hold coefficient info for a 4x4 transform
745 */
746typedef struct
747{
748 /**
749 * significant coefficient map
750 */
751 UWORD16 u2_sig_coeff_map;
752
753 /**
754 * holds coefficients
755 */
756 WORD16 ai2_level[16];
757}tu_sblk4x4_coeff_data_t;
758
759/**
760 * Structure to hold coefficient info for a 8x8 transform
761 */
762typedef struct
763{
764
765 /**
766 * significant coefficient map
767 */
768 UWORD32 au4_sig_coeff_map[2];
769
770 /**
771 * holds coefficients
772 */
773 WORD16 ai2_level[64];
774}tu_blk8x8_coeff_data_t;
775
776/** Aggregating structure that is globally available */
777typedef struct _DecStruct
778{
779
780 /* Add below all other static memory allocations and pointers to items
781 that are dynamically allocated once per session */
782 dec_bit_stream_t *ps_bitstrm;
783 dec_seq_params_t *ps_cur_sps;
784 dec_pic_params_t *ps_cur_pps;
785 dec_slice_params_t *ps_cur_slice;
786
787 dec_pic_params_t *ps_pps;
788 dec_seq_params_t *ps_sps;
789 const UWORD16 *pu2_quant_scale_y;
790 const UWORD16 *pu2_quant_scale_u;
791 const UWORD16 *pu2_quant_scale_v;
792 UWORD16 u2_mbx;
793 UWORD16 u2_mby;
794
795 UWORD16 u2_frm_wd_y; /** Width for luma buff */
796 UWORD16 u2_frm_ht_y; /** Height for luma buff */
797 UWORD16 u2_frm_wd_uv; /** Width for chroma buff */
798 UWORD16 u2_frm_ht_uv; /** Height for chroma buff */
799 UWORD16 u2_frm_wd_in_mbs; /** Frame width expressed in MB units */
800 UWORD16 u2_frm_ht_in_mbs; /** Frame height expressed in MB units */
801 WORD32 i4_submb_ofst; /** Offset in subMbs from the top left edge */
802 /* Pointer to colocated Zero frame Image, will be used in B_DIRECT mode */
803 /* colZeroFlag | // 0th bit
804 field_flag | // 1st bit
805 XX | // 2:3 bit don't cares
806 subMbMode | // 4:5 bit
807 MbMode | // 6:7 bit */
808
809 UWORD8 *pu1_col_zero_flag;
810
811 UWORD16 u2_pic_wd; /** Width of the picture being decoded */
812 UWORD16 u2_pic_ht; /** Height of the picture being decoded */
813
814 UWORD8 u1_first_nal_in_pic;
815 UWORD8 u1_mb_ngbr_availablity;
816 UWORD8 u1_ref_idxl0_active_minus1;
817 UWORD8 u1_qp;
818 UWORD8 u1_qp_y_div6;
819 UWORD8 u1_qp_u_div6;
820 UWORD8 u1_qp_y_rem6;
821 UWORD8 u1_qp_u_rem6;
822
823 /*********************************/
824 /* configurable mb-group numbers */
825 /* very critical to the decoder */
826 /*********************************/
827 /************************************************************/
828 /* MB_GROUP should be a multiple of 2 */
829 /************************************************************/
830 UWORD8 u1_recon_mb_grp;
831 UWORD8 u1_recon_mb_grp_pair;
832 /* Variables to handle Cabac */
833 decoding_envirnoment_t s_cab_dec_env; /* < Structure for decoding_envirnoment_t */
834 /* These things need to be updated at each MbLevel */
835 WORD8 i1_next_ctxt_idx; /* < next Ctxt Index */
836 UWORD8 u1_currB_type;
837 WORD8 i1_prev_mb_qp_delta; /* Prev MbQpDelta */
838 UWORD8 u1_nal_unit_type;
839
840 ctxt_inc_mb_info_t *p_ctxt_inc_mb_map; /* Pointer to ctxt_inc_mb_info_t map */
841 ctxt_inc_mb_info_t *p_left_ctxt_mb_info; /* Pointer to left ctxt_inc_mb_info_t */
842 ctxt_inc_mb_info_t *p_top_ctxt_mb_info; /* Pointer to top ctxt_inc_mb_info_t */
843 ctxt_inc_mb_info_t *ps_curr_ctxt_mb_info; /* Pointer to current ctxt_inc_mb_info_t */
844 ctxt_inc_mb_info_t *ps_def_ctxt_mb_info; /* Pointer to default ctxt_inc_mb_info_t */
845
846 /* mv contexts for mv decoding using cabac */
847 //UWORD8 u1_top_mv_ctxt_inc[4][4];
848 /* Dimensions for u1_left_mv_ctxt_inc_arr is [2][4][4] for Mbaff case */
849 UWORD8 u1_left_mv_ctxt_inc_arr[2][4][4];
850 UWORD8 (*pu1_left_mv_ctxt_inc)[4];
851
852 UWORD8 u1_sub_mb_num;
853 UWORD8 u1_B; /** if B slice u1_B = 1 else 0 */
854 WORD16 i2_only_backwarddma_info_idx;
855 mv_pred_t *ps_mv; /** Pointer to the MV bank array */
856 mv_pred_t *ps_mv_bank_cur; /** Pointer to the MV bank array */
857 mv_pred_t s_default_mv_pred; /** Structure containing the default values
858 for MV predictor */
859
860 pred_info_t *ps_pred; /** Stores info to cfg MC */
861 pred_info_t *ps_pred_start;
862
863 UWORD32 u4_pred_info_idx;
864 pred_info_pkd_t *ps_pred_pkd;
865 pred_info_pkd_t *ps_pred_pkd_start;
866 UWORD32 u4_pred_info_pkd_idx;
867 UWORD8 *pu1_ref_buff; /** Destination buffer for DMAs */
868 UWORD32 u4_dma_buf_idx;
869
870 UWORD8 *pu1_y;
871 UWORD8 *pu1_u;
872 UWORD8 *pu1_v;
873
874 WORD16 *pi2_y_coeff;
875 UWORD8 *pu1_inv_scan;
876
877 /**
878 * Pointer frame level TU subblock coeff data
879 */
880 void *pv_pic_tu_coeff_data;
881
882 /**
883 * Pointer to TU subblock coeff data and number of subblocks and scan idx
884 * Incremented each time a coded subblock is processed
885 *
886 */
887 void *pv_parse_tu_coeff_data;
888
889 void *pv_proc_tu_coeff_data;
890
891 WORD16 *pi2_coeff_data;
892
893 cavlc_cntxt_t s_cavlc_ctxt;
894
895 UWORD32 u4_n_leftY[2];
896 UWORD32 u4_n_left_cr[2];
897 UWORD32 u4_n_left_temp_y;
898
899 UWORD8 pu1_left_nnz_y[4];
900 UWORD8 pu1_left_nnz_uv[4];
901 UWORD32 u4_n_left_temp_uv;
902 /***************************************************************************/
903 /* Base pointer to all the cabac contexts */
904 /***************************************************************************/
905 bin_ctxt_model_t *p_cabac_ctxt_table_t;
906
907 /***************************************************************************/
908 /* cabac context pointers for every SE mapped into in p_cabac_ctxt_table_t */
909 /***************************************************************************/
910 bin_ctxt_model_t *p_mb_type_t;
911 bin_ctxt_model_t *p_mb_skip_flag_t;
912 bin_ctxt_model_t *p_sub_mb_type_t;
913 bin_ctxt_model_t *p_mvd_x_t;
914 bin_ctxt_model_t *p_mvd_y_t;
915 bin_ctxt_model_t *p_ref_idx_t;
916 bin_ctxt_model_t *p_mb_qp_delta_t;
917 bin_ctxt_model_t *p_intra_chroma_pred_mode_t;
918 bin_ctxt_model_t *p_prev_intra4x4_pred_mode_flag_t;
919 bin_ctxt_model_t *p_rem_intra4x4_pred_mode_t;
920 bin_ctxt_model_t *p_mb_field_dec_flag_t;
921 bin_ctxt_model_t *p_cbp_luma_t;
922 bin_ctxt_model_t *p_cbp_chroma_t;
923 bin_ctxt_model_t *p_cbf_t[NUM_CTX_CAT];
924 bin_ctxt_model_t *p_significant_coeff_flag_t[NUM_CTX_CAT];
925 bin_ctxt_model_t *p_coeff_abs_level_minus1_t[NUM_CTX_CAT];
926
927 UWORD32 u4_num_pmbair; /** MB pair number */
928 mv_pred_t *ps_mv_left; /** Pointer to left motion vector bank */
929 mv_pred_t *ps_mv_top_left; /** Pointer to top left motion vector bank */
930 mv_pred_t *ps_mv_top_right; /** Pointer to top right motion vector bank */
931
932 UWORD8 *pu1_left_yuv_dc_csbp;
933
934 /* c64x_map.inc takes care of only this part
935 If you change/add any members above this,
936 modify c64x_map.inc accordingly */
937
938 void **pp_ext_g_table_ptr;
939
940 deblkmb_neighbour_t deblk_left_mb[2];
941 deblkmb_neighbour_t *ps_deblk_top_mb;
942 neighbouradd_t (*ps_left_mvpred_addr)[2]; /* Left MvPred Address Ping Pong*/
943// neighbouradd_t *ps_topMvPredAdd;
944
945 /***************************************************************************/
946 /* Ref_idx contexts are stored in the following way */
947 /* Array Idx 0,1 for reference indices in Forward direction */
948 /* Array Idx 2,3 for reference indices in backward direction */
949 /***************************************************************************/
950
951 /* Dimensions for u1_left_ref_ctxt_inc_arr is [2][4] for Mbaff:Top and Bot */
952 WORD8 i1_left_ref_idx_ctx_inc_arr[2][4];
953 WORD8 *pi1_left_ref_idx_ctxt_inc;
954
955 /*************************************************************************/
956 /* Arrangnment of DC CSBP */
957 /* bits: b7 b6 b5 b4 b3 b2 b1 b0 */
958 /* CSBP: x x x x x Vdc Udc Ydc */
959 /*************************************************************************/
960 /*************************************************************************/
961 /* Points either to u1_yuv_dc_csbp_topmb or u1_yuv_dc_csbp_bot_mb */
962 /*************************************************************************/
963 UWORD8 u1_yuv_dc_csbp_topmb;
964 UWORD8 u1_yuv_dc_csbp_bot_mb;
965
966 /* DMA SETUP */
967 tfr_ctxt_t s_tran_addrecon_parse;
968 tfr_ctxt_t s_tran_addrecon;
969
970 /* slice Header Simplification */
971 UWORD8 u1_pr_sl_type;
972 UWORD8 u1_sl_typ_5_9;
973 WORD32 i4_frametype;
974 UWORD32 u4_app_disp_width;
975 WORD32 i4_error_code;
976 UWORD8 u1_first_pb_nal_in_pic;
977 UWORD32 u4_bitoffset;
978
979 /* Variables added to handle field pics */
980
981 UWORD8 u1_second_field;
982 WORD32 i4_pic_type;
983 WORD32 i4_content_type;
984 WORD32 i4_decode_header;
985 WORD32 i4_header_decoded;
986 UWORD32 u4_total_frames_decoded;
987
988 ctxt_inc_mb_info_t *ps_left_mb_ctxt_info; /* structure containing the left MB's
989 context info, incase of Mbaff */
990 pocstruct_t s_prev_pic_poc;
991 pocstruct_t s_cur_pic_poc;
992 WORD32 i4_cur_display_seq;
993 WORD32 i4_prev_max_display_seq;
994 WORD32 i4_max_poc;
995 deblk_mb_t *ps_cur_deblk_mb;
996
997 /* Pointers to local scratch buffers */
998 deblk_mb_t *ps_deblk_pic;
999
1000 /* Pointers to Picture Buffers (Given by BufAPI Lib) */
1001 struct pic_buffer_t *ps_cur_pic; /** Pointer to Current picture buffer */
1002
1003 /* Scratch Picture Buffers (Given by BufAPI Lib) */
1004 struct pic_buffer_t s_cur_pic;
1005
1006 /* Current Slice related information */
1007 volatile UWORD16 u2_cur_slice_num;
1008 volatile UWORD16 u2_cur_slice_num_dec_thread;
1009
1010 /* Variables needed for Buffer API handling */
1011 UWORD8 u1_nal_buf_id;
1012 UWORD8 u1_pic_buf_id;
1013 UWORD8 u1_pic_bufs;
1014
1015 WORD16 *pi2_pred1; //[441]; /** Temp predictor buffer for MC */
1016 /* Pointer to refernce Pic buffers list, 0:fwd, 1:bwd */
1017 pic_buffer_t **ps_ref_pic_buf_lx[2];
1018 /* refIdx to POC mapping */
1019 void **ppv_map_ref_idx_to_poc;
1020 UWORD32 *pu4_defI_wts_ofsts;
1021 UWORD32 *pu4_wts_ofsts_mat;
1022 UWORD32 *pu4_wt_ofsts;
1023 UWORD32 *pu4_mbaff_wt_mat;
1024 /* Function pointers to read Params common to CAVLC and CABAC */
1025 WORD32 (*pf_parse_inter_mb)(struct _DecStruct * ps_dec,
1026 dec_mb_info_t * ps_cur_mb_info,
1027 UWORD8 u1_mb_num,
1028 UWORD8 u1_num_mbsNby2);
1029 WORD32 (*pf_mvpred_ref_tfr_nby2mb)(struct _DecStruct * ps_dec,
1030 UWORD8 u1_num_mbs,
1031 UWORD8 u1_num_mbsNby2);
1032
1033 WORD32 (*pf_parse_inter_slice)(struct _DecStruct * ps_dec,
1034 dec_slice_params_t * ps_slice,
1035 UWORD16 u2_first_mb_in_slice);
1036
1037 UWORD32 (*pf_get_mb_info)(struct _DecStruct * ps_dec,
1038 const UWORD16 u2_cur_mb_address,
1039 dec_mb_info_t * ps_cur_mb_info,
1040 UWORD32 u4_mbskip_run);
1041
1042 /* Variables for Decode Buffer Management */
1043 dpb_manager_t *ps_dpb_mgr;
1044 dpb_commands_t *ps_dpb_cmds;
1045
1046 /* Variables Required for N MB design */
1047 dec_mb_info_t *ps_nmb_info;
1048
1049 UWORD8 *pu1_y_intra_pred_line;
1050 UWORD8 *pu1_u_intra_pred_line;
1051 UWORD8 *pu1_v_intra_pred_line;
1052
1053 UWORD8 *pu1_cur_y_intra_pred_line;
1054 UWORD8 *pu1_cur_u_intra_pred_line;
1055 UWORD8 *pu1_cur_v_intra_pred_line;
1056
1057 UWORD8 *pu1_cur_y_intra_pred_line_base;
1058 UWORD8 *pu1_cur_u_intra_pred_line_base;
1059 UWORD8 *pu1_cur_v_intra_pred_line_base;
1060
1061 UWORD8 *pu1_prev_y_intra_pred_line;
1062 UWORD8 *pu1_prev_u_intra_pred_line;
1063 UWORD8 *pu1_prev_v_intra_pred_line;
1064
1065 UWORD32 u4_intra_pred_line_ofst;
1066
1067 /* Scratch ping reconstruction pointers for Y U V */
1068 UWORD8 *pu1_y_scratch[2];
1069 UWORD8 *pu1_u_scratch[2];
1070 UWORD8 *pu1_v_scratch[2];
1071 UWORD8 u1_yuv_scratch_idx;
1072 UWORD8 u1_not_wait_rec;
1073 UWORD8 u1_res_changed;
1074
1075 UWORD8 *pu1_yleft; /** Left Y pointer, used for intra-pred */
1076 UWORD8 *pu1_uleft; /** Left U pointer, used for intra-pred */
1077 UWORD8 *pu1_vleft; /** Left V pointer, used for intra-pred */
1078 UWORD8 u1_y_topleft[2]; /** Left Y pointer, used for intra-pred */
1079 UWORD8 u1_u_topleft[2]; /** Left U pointer, used for intra-pred */
1080 UWORD8 u1_v_topleft[2]; /** Left V pointer, used for intra-pred */
1081 UWORD16 u2_mb_group_cols_y; /** Number of Y pixels in the N MB group */
1082 UWORD16 u2_mb_group_cols_cr; /** Number of U/V pixels in the N MB group */
1083 UWORD16 u2_mb_group_cols_y1; /** Number of Y pixels in the N MB group */
1084 UWORD16 u2_mb_group_cols_cr1; /** Number of U/V pixels in the N MB group */
1085
1086 mv_pred_t *ps_mv_cur; /** pointer to current motion vector bank */
1087 mv_pred_t *ps_mv_top; /** pointer to top motion vector bank */
1088 mv_pred_t *ps_mv_top_right2;/** Pointer to top right motion vector bank */
1089 mv_pred_t *ps_mv_p[2]; /** Scratch ping motion vector bank */
1090 mv_pred_t *ps_mv_top_p[MV_SCRATCH_BUFS]; /** Scratch top pong motion vector bank */
1091 UWORD8 u1_mv_top_p;
1092
1093 deblk_mb_t *ps_deblk_mbn;
1094 deblk_mb_t *ps_deblk_mbn_dec_thrd;/*pointer used by parsing when spearaet_parse is 1*/
1095 deblk_mb_t *ps_deblk_mbn_curr;
1096 deblk_mb_t *ps_deblk_mbn_prev;
1097
1098 UWORD8 *pu1_temp_mc_buffer;
1099
1100 struct _sei *ps_sei;
1101 UWORD8 u1_pic_struct_copy;
1102 /* Variables required for cropping */
1103 UWORD16 u2_disp_width;
1104 UWORD16 u2_disp_height;
1105 UWORD16 u2_crop_offset_y;
1106 UWORD16 u2_crop_offset_uv;
1107
1108 /* Variable required to get presentation time stamp through application */
1109 UWORD32 u4_pts;
1110
1111 /* Variables used for gaps in frame number */
1112 UWORD16 u2_prev_ref_frame_num;
1113 UWORD8 u1_vert_up_scale_flag;
1114 iv_mem_rec_t *ps_mem_tab;
1115
1116 UWORD16 u2_wait_id;
1117
1118 void *pi4_ctxt_save_register;
1119 void *pi4_ctxt_save_register_dec;
1120
1121 UWORD8 u1_mb_idx;
1122 struct pic_buffer_t *ps_col_pic;
1123 void (*pf_parse_mvdirect)(struct _DecStruct*,
1124 struct pic_buffer_t*,
1125 directmv_t*,
1126 UWORD8,
1127 WORD32,
1128 dec_mb_info_t *);
1129 void *pv_dec_out;
1130 void *pv_dec_in;
1131 void *pv_scratch_sps_pps; /*used temeporarily store sps/ spps while parsing*/
1132
1133 /* state pointers to mb and partition information */
1134 parse_pmbarams_t *ps_parse_mb_data;
1135 parse_part_params_t *ps_parse_part_params;
1136
1137 /* scratch pointers to mb and partition information */
1138 parse_part_params_t *ps_part;
1139
1140 UWORD8 u1_max_dec_frame_buffering;
1141 pad_mgr_t s_pad_mgr;
1142 UWORD8 (*pf_mvpred)(struct _DecStruct *ps_dec,
1143 struct _DecMbInfo *ps_cur_mb_info,
1144 mv_pred_t *ps_mv_pred,
1145 mv_pred_t *ps_mv_nmb,
1146 mv_pred_t *ps_mv_ntop,
1147 UWORD8 u1_sub_mb_num,
1148 UWORD8 uc_mb_part_width,
1149 UWORD8 uc_lxstart,
1150 UWORD8 uc_lxend,
1151 UWORD8 u1_mb_mc_mode);
1152 void (*pf_compute_bs)(struct _DecStruct * ps_dec,
1153 struct _DecMbInfo * ps_cur_mb_info,
1154 const UWORD16 u2_mbxn_mb);
1155 UWORD8 u1_init_dec_flag;
1156 prev_seq_params_t s_prev_seq_params;
1157 UWORD8 u1_cur_mb_fld_dec_flag; /* current Mb fld or Frm */
1158
1159 code_overlay_ctxt_t s_code_overlay_ctxt;
1160 UWORD8 u1_code_overlay;
1161
1162// WORD8 *pi1_cur_predmodes;
1163 WORD8 pi1_left_pred_mode[8];
1164 UWORD8 u1_topleft_mb_fld;
1165 UWORD8 u1_topleft_mbtype;
1166 UWORD8 u1_topleft_mb_fld_bot;
1167 UWORD8 u1_topleft_mbtype_bot;
1168 UWORD8 u1_deblk_mb_grp;
1169 WORD16 i2_prev_slice_mbx;
1170 WORD16 i2_prev_slice_mby;
1171 UWORD16 u2_top_left_mask;
1172 UWORD16 u2_top_right_mask;
1173 dec_err_status_t * ps_dec_err_status;
1174
1175 UWORD32 *pu4_sos_signal;
1176 UWORD8 u1_mb_idx_mv;
1177 UWORD16 u2_mv_2mb[2];
1178 UWORD32 u4_ref_buf_size;
1179 UWORD32 u4_packet_cnt;
1180 /* to remember the i4_status & input parameters from the sample app */
1181 void *pv_dec_status; // itt_dec_status_t void pointer */
1182 void *pv_dec_params; // itt_dec_prms_t void pointer
1183 void *pv_app_ctxt;
1184 UWORD32 u4_skip_frm_mask;
1185 void *pv_fmt_con_ctxt;
1186 /* for the parallel format conversion */
1187 UWORD8 *pu1_frmt_conv_y[3];
1188 UWORD8 *pu1_frmt_conv_u[3];
1189 UWORD8 *pu1_frmt_conv_v[3];
1190 UWORD8 *pu1_deblk_scr;
1191 UWORD32 u4_deblk_scr_sz;
1192
1193 /* variable for finding the no.of mbs decoded in the current picture */
1194 UWORD16 u2_total_mbs_coded;
1195 /* member added for supporting fragmented annex - B */
1196// frg_annex_read_t s_frag_annex_read;
1197 /* added for vui_t, sei support*/
1198 WORD32 i4_vui_frame_rate;
1199 /* To Store the value of ref_idx_active for previous slice */
1200 /* useful in error handling */
1201 UWORD8 u1_num_ref_idx_lx_active_prev;
1202 /* Flag added to come out of process call in annex-b if&if frame is decoded */
1203 /* presence of access unit delimters and pps and sps */
1204 UWORD8 u1_frame_decoded_flag;
1205
1206 /* To keep track of whether the last picture was decoded or not */
1207 /* in case of skip mode set by the application */
1208 UWORD8 u1_last_pic_not_decoded;
1209 UWORD32 *pu4_return_remaining_bufs;
1210
1211 /* Used for disabling deblocking of non-reference pictures */
1212 WORD32 i4_set_low_complexity_mode;
1213 WORD32 i4_disable_deblock;
1214
1215 WORD32 e_dec_status;
1216 UWORD32 u4_num_fld_in_frm;
1217
1218 /* Function pointer for 4x4 residual cavlc parsing based on total coeff */
1219 WORD32 (*pf_cavlc_4x4res_block[3])(UWORD32 u4_isdc,
1220 UWORD32 u4_total_coeff_trail_one, /**TotalCoefficients<<16+trailingones*/
1221 dec_bit_stream_t *ps_bitstrm);
1222
1223 /* Function pointer array for interpolate functions in called from motion compensattion module */
1224 void (*p_mc_interpolate_x_y[16][3])(UWORD8*,
1225 UWORD8*,
1226 UWORD8*,
1227 UWORD8,
1228 UWORD16,
1229 UWORD16,
1230 UWORD8);
1231
1232 /**************************************************************************/
1233 /* Function pointer for 4x4 totalcoeff, trlone and residual cavlc parsing */
1234 /* based on u4_n (neigbourinng nnz average) */
1235 /* These point to two functions depending on (u4_n > 7) and (u4_n <= 7) */
1236 /**************************************************************************/
1237 WORD32 (*pf_cavlc_parse4x4coeff[2])(WORD16 *pi2_coeff_block,
1238 UWORD32 u4_isdc, /* is it a DC block */
1239 WORD32 u4_n,
1240 struct _DecStruct *ps_dec, /** Decoder Parameters */
1241 UWORD32 *pu4_total_coeff);
1242
1243 /**************************************************************************/
1244 /* Function pointer for luma 8x8block cavlc parsing based on top and left */
1245 /* neigbour availability. */
1246 /**************************************************************************/
1247 WORD32 (*pf_cavlc_parse_8x8block[4])(WORD16 *pi2_coeff_block,
1248 UWORD32 u4_sub_block_strd,
1249 UWORD32 u4_isdc,
1250 struct _DecStruct *ps_dec,
1251 UWORD8 *pu1_top_nnz,
1252 UWORD8 *pu1_left_nnz,
1253 UWORD8 u1_tran_form8x8,
1254 UWORD8 u1_mb_field_decodingflag,
1255 UWORD32 *pu4_csbp);
1256
1257 /**************************************************************************/
1258 /* Ping pong top and current rows of mb neigbour_params */
1259 /**************************************************************************/
1260 mb_neigbour_params_t *ps_nbr_mb_row;
1261 mb_neigbour_params_t *ps_cur_mb_row;
1262 mb_neigbour_params_t *ps_top_mb_row;
1263
1264 /**************************************************************************/
1265 /* Function pointer for 16x16 and non16x16 Bs1 calculations depending on */
1266 /* P and B slice. */
1267 /***************************************************************************/
1268 void (*pf_fill_bs1[2][2])(mv_pred_t *ps_cur_mv_pred,
1269 mv_pred_t *ps_top_mv_pred,
1270 void **ppv_map_ref_idx_to_poc,
1271 UWORD32 *pu4_bs_table, /* pointer to the BsTable array */
1272 mv_pred_t *ps_leftmost_mv_pred,
1273 neighbouradd_t *ps_left_addr,
1274 void **u4_pic_addrress,
1275 WORD32 i4_ver_mvlimit);
1276
1277 void (*pf_fill_bs_xtra_left_edge[2])(UWORD32 *pu4_bs, /* Base pointer of BS table */
1278 WORD32 u4_left_mb_t_csbp, /* left mbpair's top csbp */
1279 WORD32 u4_left_mb_b_csbp, /* left mbpair's bottom csbp*/
1280 WORD32 u4_cur_mb_csbp, /* csbp of current mb */
1281 UWORD32 u4_cur_mb_bot /* is top or bottom mb */
1282
1283 );
1284 /* Function pointer array for BP and MP functions for MC*/
1285 void (*p_motion_compensate)(struct _DecStruct * ps_dec,
1286 dec_mb_info_t *ps_cur_mb_info);
1287
1288
1289 void (*p_mc_dec_thread)(struct _DecStruct * ps_dec, dec_mb_info_t *ps_cur_mb_info);
1290
1291 /* Function pointer array for BP and MP functions for formMbPartInfo*/
1292
1293 WORD32 (*p_form_mb_part_info)(pred_info_pkd_t *ps_pred_pkd,
1294 struct _DecStruct * ps_dec,
1295 UWORD16 u2_mb_x,
1296 UWORD16 u2_mb_y,
1297 WORD32 mb_index,
1298 dec_mb_info_t *ps_cur_mb_info);
1299
1300 WORD32 (*p_form_mb_part_info_thread)(pred_info_pkd_t *ps_pred_pkd,
1301 struct _DecStruct * ps_dec,
1302 UWORD16 u2_mb_x,
1303 UWORD16 u2_mb_y,
1304 WORD32 mb_index,
1305 dec_mb_info_t *ps_cur_mb_info);
1306
1307
1308 /* Required for cabac mbaff bottom mb */
1309 UWORD32 u4_next_mb_skip;
1310
1311 void (*p_DeblockPicture[2])(struct _DecStruct *);
1312
1313 /* ! */
1314 UWORD32 u4_ts;
1315 UWORD8 u1_flushfrm;
1316
1317 /* Output format sent by the application */
1318 UWORD8 u1_chroma_format;
1319 UWORD8 u1_pic_decode_done;
1320 UWORD32 u4_level_at_init;
1321 UWORD32 u4_width_at_init;
1322 UWORD32 u4_height_at_init;
1323 WORD32 init_done;
1324 WORD32 process_called;
1325
1326 /******************************************/
1327 /* For the high profile related variables */
1328 /******************************************/
1329 high_profile_tools_t s_high_profile;
1330 /* CBCR */
1331 UWORD8 u1_qp_v_div6;
1332 UWORD8 u1_qp_v_rem6;
1333 /*
1334 * TO help solve the dangling field case.
1335 * Check for the previous frame number and the current frame number.
1336 */
1337 UWORD16 u2_prv_frame_num;
1338 UWORD8 u1_top_bottom_decoded;
1339 UWORD8 u1_dangling_field;
1340
1341 /*
1342 * For Low Memory case
1343 */
1344 UWORD32 u4_num_ref_frames_at_init;
1345 UWORD32 u4_num_reorder_frames_at_init;
1346 UWORD32 u4_num_extra_disp_bufs_at_init;
1347 UWORD32 u4_num_disp_bufs_requested;
1348 WORD32 i4_display_delay;
1349 UWORD32 u4_slice_start_code_found;
1350
1351 UWORD32 u4_mb_level_deblk;
1352 UWORD32 u4_use_intrapred_line_copy;
1353 UWORD32 u4_num_mbs_prev_nmb;
1354 UWORD32 u4_app_deblk_disable_level;
1355 UWORD32 u4_app_disable_deblk_frm;
1356 WORD32 i4_app_skip_mode;
1357 WORD32 i4_mv_frac_mask;
1358
1359 disp_buf_t disp_bufs[MAX_DISP_BUFS_NEW];
1360 UWORD32 u4_disp_buf_mapping[MAX_DISP_BUFS_NEW];
1361 UWORD32 u4_disp_buf_to_be_freed[MAX_DISP_BUFS_NEW];
1362 UWORD32 u4_share_disp_buf;
1363 UWORD32 u4_num_disp_bufs;
1364 UWORD32 u4_prev_nal_skipped;
1365 UWORD32 u4_return_to_app;
1366 WORD32 i4_dec_skip_mode;
1367
1368 UWORD32 u4_bs_deblk_thread_created;
1369 volatile UWORD32 u4_start_bs_deblk;
1370 void *pv_bs_deblk_thread_handle;
1371
1372 UWORD32 u4_cur_bs_mb_num;
1373 UWORD32 u4_bs_cur_slice_num_mbs;
1374 UWORD32 u4_cur_slice_bs_done;
1375 UWORD32 u4_cur_deblk_mb_num;
1376 volatile UWORD16 u2_cur_slice_num_bs;
1377
1378 UWORD32 u4_deblk_mb_x;
1379 UWORD32 u4_deblk_mb_y;
1380 deblk_mb_t *ps_cur_deblk_thrd_mb;
1381
1382
1383 iv_yuv_buf_t s_disp_frame_info;
1384 UWORD32 u4_fmt_conv_num_rows;
1385 UWORD32 u4_fmt_conv_cur_row;
1386 ivd_out_bufdesc_t *ps_out_buffer;
1387 ivd_get_display_frame_op_t s_disp_op;
1388 UWORD32 u4_stop_threads;
1389 UWORD32 u4_output_present;
1390
1391 volatile UWORD16 cur_dec_mb_num;
1392 volatile UWORD16 u2_cur_mb_addr;
1393 WORD16 i2_dec_thread_mb_y;
1394
1395 UWORD8 u1_separate_parse;
1396// 0: slice parse not started, 1: slice decode can start, 2: slice in error
1397 volatile UWORD32 u4_start_frame_decode;
1398 UWORD32 u4_dec_thread_created;
1399 void *pv_dec_thread_handle;
1400 volatile UWORD8 *pu1_dec_mb_map;
1401 volatile UWORD8 *pu1_recon_mb_map;
1402 volatile UWORD16 *pu2_slice_num_map;
1403 dec_slice_struct_t *ps_dec_slice_buf;
1404 void *pv_map_ref_idx_to_poc_buf;
1405 dec_mb_info_t *ps_frm_mb_info;
1406 volatile dec_slice_struct_t * volatile ps_parse_cur_slice;
1407 volatile dec_slice_struct_t * volatile ps_decode_cur_slice;
1408 volatile dec_slice_struct_t * volatile ps_computebs_cur_slice;
1409 UWORD32 u4_cur_slice_decode_done;
1410 UWORD32 u4_extra_mem_used;
1411
1412 UWORD32 u4_first_slice_in_pic;
1413 UWORD32 u4_num_cores;
1414 IVD_ARCH_T e_processor_arch;
1415 IVD_SOC_T e_processor_soc;
1416
1417 /**
1418 * Pictures that are are degraded
1419 * 0 : No degrade
1420 * 1 : Only on non-reference frames
1421 * 2 : Use interval specified by u4_nondegrade_interval
1422 * 3 : All non-key frames
1423 * 4 : All frames
1424 */
1425 WORD32 i4_degrade_pics;
1426
1427 /**
1428 * Interval for pictures which are completely decoded without any degradation
1429 */
1430 WORD32 i4_nondegrade_interval;
1431
1432 /**
1433 * bit position (lsb is zero): Type of degradation
1434 * 1 : Disable deblocking
1435 * 2 : Faster inter prediction filters
1436 * 3 : Fastest inter prediction filters
1437 */
1438 WORD32 i4_degrade_type;
1439
1440 /** Degrade pic count, Used to maintain the interval between non-degraded pics
1441 *
1442 */
1443 WORD32 i4_degrade_pic_cnt;
1444
1445 fmt_conv_part_t as_fmt_conv_part[2];
1446 UWORD32 u4_fmt_conv_in_process;
1447 UWORD32 u4_pic_buf_got;
1448 UWORD16 u2_mb_skip_error;
1449 volatile UWORD16 u2_skip_deblock;
1450
1451 /**
1452 * Col flag and mv pred buffer manager
1453 */
1454 void *pv_mv_buf_mgr;
1455
1456 /**
1457 * Picture buffer manager
1458 */
1459 void *pv_pic_buf_mgr;
1460
1461 /**
1462 * Display buffer manager
1463 */
1464 void *pv_disp_buf_mgr;
1465
1466 void *apv_buf_id_pic_buf_map[MAX_DISP_BUFS_NEW];
1467
1468 UWORD8 au1_pic_buf_id_mv_buf_id_map[MAX_DISP_BUFS_NEW];
1469
1470 UWORD8 au1_pic_buf_ref_flag[MAX_DISP_BUFS_NEW];
1471
1472 ih264_default_weighted_pred_ft *pf_default_weighted_pred_luma;
1473
1474 ih264_default_weighted_pred_ft *pf_default_weighted_pred_chroma;
1475
1476 ih264_weighted_pred_ft *pf_weighted_pred_luma;
1477
1478 ih264_weighted_pred_ft *pf_weighted_pred_chroma;
1479
1480 ih264_weighted_bi_pred_ft *pf_weighted_bi_pred_luma;
1481
1482 ih264_weighted_bi_pred_ft *pf_weighted_bi_pred_chroma;
1483
1484 ih264_pad *pf_pad_top;
1485 ih264_pad *pf_pad_bottom;
1486 ih264_pad *pf_pad_left_luma;
1487 ih264_pad *pf_pad_left_chroma;
1488 ih264_pad *pf_pad_right_luma;
1489 ih264_pad *pf_pad_right_chroma;
1490
1491 ih264_inter_pred_chroma_ft *pf_inter_pred_chroma;
1492
1493 ih264_inter_pred_luma_ft *apf_inter_pred_luma[16];
1494
1495 ih264_intra_pred_luma_ft *apf_intra_pred_luma_16x16[4];
1496
1497 ih264_intra_pred_luma_ft *apf_intra_pred_luma_8x8[9];
1498
1499 ih264_intra_pred_luma_ft *apf_intra_pred_luma_4x4[9];
1500
1501 ih264_intra_pred_ref_filtering_ft *pf_intra_pred_ref_filtering;
1502
1503 ih264_intra_pred_chroma_ft *apf_intra_pred_chroma[4];
1504
1505 ih264_iquant_itrans_recon_ft *pf_iquant_itrans_recon_luma_4x4;
1506
1507 ih264_iquant_itrans_recon_ft *pf_iquant_itrans_recon_luma_4x4_dc;
1508
1509 ih264_iquant_itrans_recon_ft *pf_iquant_itrans_recon_luma_8x8;
1510
1511 ih264_iquant_itrans_recon_ft *pf_iquant_itrans_recon_luma_8x8_dc;
1512
1513 ih264_iquant_itrans_recon_chroma_ft *pf_iquant_itrans_recon_chroma_4x4;
1514
1515 ih264_iquant_itrans_recon_chroma_ft *pf_iquant_itrans_recon_chroma_4x4_dc;
1516
1517 ih264_ihadamard_scaling_ft *pf_ihadamard_scaling_4x4;
1518
1519 /**
1520 * deblock vertical luma edge with blocking strength 4
1521 */
1522 ih264_deblk_edge_bs4_ft *pf_deblk_luma_vert_bs4;
1523
1524 /**
1525 * deblock vertical luma edge with blocking strength less than 4
1526 */
1527 ih264_deblk_edge_bslt4_ft *pf_deblk_luma_vert_bslt4;
1528
1529 /**
1530 * deblock vertical luma edge with blocking strength 4 for mbaff
1531 */
1532 ih264_deblk_edge_bs4_ft *pf_deblk_luma_vert_bs4_mbaff;
1533
1534 /**
1535 * deblock vertical luma edge with blocking strength less than 4 for mbaff
1536 */
1537 ih264_deblk_edge_bslt4_ft *pf_deblk_luma_vert_bslt4_mbaff;
1538
1539 /**
1540 * deblock vertical chroma edge with blocking strength 4
1541 */
1542 ih264_deblk_chroma_edge_bs4_ft *pf_deblk_chroma_vert_bs4;
1543
1544 /**
1545 * deblock vertical chroma edge with blocking strength less than 4
1546 */
1547 ih264_deblk_chroma_edge_bslt4_ft *pf_deblk_chroma_vert_bslt4;
1548
1549 /**
1550 * deblock vertical chroma edge with blocking strength 4 for mbaff
1551 */
1552 ih264_deblk_chroma_edge_bs4_ft *pf_deblk_chroma_vert_bs4_mbaff;
1553
1554 /**
1555 * deblock vertical chroma edge with blocking strength less than 4 for mbaff
1556 */
1557 ih264_deblk_chroma_edge_bslt4_ft *pf_deblk_chroma_vert_bslt4_mbaff;
1558
1559 /**
1560 * deblock horizontal luma edge with blocking strength 4
1561 */
1562 ih264_deblk_edge_bs4_ft *pf_deblk_luma_horz_bs4;
1563
1564 /**
1565 * deblock horizontal luma edge with blocking strength less than 4
1566 */
1567 ih264_deblk_edge_bslt4_ft *pf_deblk_luma_horz_bslt4;
1568
1569 /**
1570 * deblock horizontal chroma edge with blocking strength 4
1571 */
1572 ih264_deblk_chroma_edge_bs4_ft *pf_deblk_chroma_horz_bs4;
1573
1574 /**
1575 * deblock horizontal chroma edge with blocking strength less than 4
1576 */
1577 ih264_deblk_chroma_edge_bslt4_ft *pf_deblk_chroma_horz_bslt4;
1578
1579
1580} dec_struct_t;
1581
1582#endif /* _H264_DEC_STRUCTS_H */