source: 3DVCSoftware/branches/HTM-6.2-dev3-RWTH/source/Lib/TLibCommon/ContextTables.h @ 397

Last change on this file since 397 was 397, checked in by rwth, 12 years ago
  • added D0032
  • Property svn:eol-style set to native
File size: 19.0 KB
Line 
1/* The copyright in this software is being made available under the BSD
2 * License, included below. This software may be subject to other third party
3 * and contributor rights, including patent rights, and no such rights are
4 * granted under this license. 
5 *
6 * Copyright (c) 2010-2012, ITU/ISO/IEC
7 * All rights reserved.
8 *
9 * Redistribution and use in source and binary forms, with or without
10 * modification, are permitted provided that the following conditions are met:
11 *
12 *  * Redistributions of source code must retain the above copyright notice,
13 *    this list of conditions and the following disclaimer.
14 *  * Redistributions in binary form must reproduce the above copyright notice,
15 *    this list of conditions and the following disclaimer in the documentation
16 *    and/or other materials provided with the distribution.
17 *  * Neither the name of the ITU/ISO/IEC nor the names of its contributors may
18 *    be used to endorse or promote products derived from this software without
19 *    specific prior written permission.
20 *
21 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
22 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
23 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
24 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS
25 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
26 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
27 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
28 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
29 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
30 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
31 * THE POSSIBILITY OF SUCH DAMAGE.
32 */
33
34/** \file     ContextTables.h
35    \brief    Defines constants and tables for SBAC
36    \todo     number of context models is not matched to actual use, should be fixed
37*/
38
39#ifndef __CONTEXTTABLES__
40#define __CONTEXTTABLES__
41
42//! \ingroup TLibCommon
43//! \{
44
45// ====================================================================================================================
46// Constants
47// ====================================================================================================================
48
49#define MAX_NUM_CTX_MOD             512       ///< maximum number of supported contexts
50
51#define NUM_SPLIT_FLAG_CTX            3       ///< number of context models for split flag
52#define NUM_SKIP_FLAG_CTX             3       ///< number of context models for skip flag
53
54#if LGE_ILLUCOMP_B0045
55#define NUM_IC_FLAG_CTX               3       ///< number of context models for illumination compensation flag
56#endif
57
58#define NUM_MERGE_FLAG_EXT_CTX        1       ///< number of context models for merge flag of merge extended
59#define NUM_MERGE_IDX_EXT_CTX         1       ///< number of context models for merge index of merge extended
60
61#if H3D_IVRP
62#define NUM_RES_PRED_FLAG_CTX         4       ///< number of context for residual prediction flag
63#endif
64
65#define NUM_ALF_CTRL_FLAG_CTX         1       ///< number of context models for ALF control flag
66#define NUM_PART_SIZE_CTX             4       ///< number of context models for partition size
67#define NUM_CU_AMP_CTX                1       ///< number of context models for partition size (AMP)
68#define NUM_PRED_MODE_CTX             1       ///< number of context models for prediction mode
69
70#define NUM_ADI_CTX                   1       ///< number of context models for intra prediction
71
72#define NUM_CHROMA_PRED_CTX           2       ///< number of context models for intra prediction (chroma)
73#define NUM_INTER_DIR_CTX             4       ///< number of context models for inter prediction direction
74#define NUM_MV_RES_CTX                2       ///< number of context models for motion vector difference
75
76#define NUM_REF_NO_CTX                4       ///< number of context models for reference index
77#define NUM_TRANS_SUBDIV_FLAG_CTX     10      ///< number of context models for transform subdivision flags
78#define NUM_QT_CBF_CTX                5       ///< number of context models for QT CBF
79#define NUM_QT_ROOT_CBF_CTX           1       ///< number of context models for QT ROOT CBF
80#define NUM_DELTA_QP_CTX              3       ///< number of context models for dQP
81
82#define NUM_SIG_CG_FLAG_CTX           2       ///< number of context models for MULTI_LEVEL_SIGNIFICANCE
83
84#define NUM_SIG_FLAG_CTX              48      ///< number of context models for sig flag
85
86#define NUM_SIG_FLAG_CTX_LUMA         27      ///< number of context models for luma sig flag
87#define NUM_SIG_FLAG_CTX_CHROMA       21      ///< number of context models for chroma sig flag
88#define NUM_CTX_LAST_FLAG_XY          15      ///< number of context models for last coefficient position
89
90#define NUM_ONE_FLAG_CTX              24      ///< number of context models for greater than 1 flag
91#define NUM_ONE_FLAG_CTX_LUMA         16      ///< number of context models for greater than 1 flag of luma
92#define NUM_ONE_FLAG_CTX_CHROMA        8      ///< number of context models for greater than 1 flag of chroma
93#define NUM_ABS_FLAG_CTX               6      ///< number of context models for greater than 2 flag
94#define NUM_ABS_FLAG_CTX_LUMA          4      ///< number of context models for greater than 2 flag of luma
95#define NUM_ABS_FLAG_CTX_CHROMA        2      ///< number of context models for greater than 2 flag of chroma
96
97#define NUM_MVP_IDX_CTX               2       ///< number of context models for MVP index
98
99#define NUM_ALF_FLAG_CTX              1       ///< number of context models for ALF flag
100#define NUM_ALF_UVLC_CTX              2       ///< number of context models for ALF UVLC (filter length)
101#define NUM_ALF_SVLC_CTX              3       ///< number of context models for ALF SVLC (filter coeff.)
102
103#define NUM_SAO_FLAG_CTX              1       ///< number of context models for SAO flag
104#define NUM_SAO_UVLC_CTX              2       ///< number of context models for SAO UVLC
105#define NUM_SAO_SVLC_CTX              3       ///< number of context models for SAO SVLC
106#define NUM_SAO_RUN_CTX               3       ///< number of context models for AO SVLC (filter coeff.)
107#define NUM_SAO_MERGE_LEFT_FLAG_CTX   3       ///< number of context models for AO SVLC (filter coeff.)
108#define NUM_SAO_MERGE_UP_FLAG_CTX     1       ///< number of context models for AO SVLC (filter coeff.)
109#define NUM_SAO_TYPE_IDX_CTX          2       ///< number of context models for AO SVLC (filter coeff.)
110#define CNU                          154      ///< dummy initialization value for unused context models 'Context model Not Used'
111
112#if HHI_DMM_WEDGE_INTRA || HHI_DMM_PRED_TEX
113#define NUM_DMM_FLAG_CTX              1       ///< number of context models for DMM flag
114#define NUM_DMM_MODE_CTX              1       ///< number of context models for DMM mode
115#if LGE_DMM3_SIMP_C0044
116#define NUM_DMM_DATA_CTX              4       ///< number of context models for DMM data
117#else
118#define NUM_DMM_DATA_CTX              3       ///< number of context models for DMM data
119#endif
120#endif
121
122#if LGE_EDGE_INTRA_A0070
123#define NUM_EDGE_INTRA_CTX            1
124#if LGE_EDGE_INTRA_DELTA_DC
125#define NUM_EDGE_INTRA_DELTA_DC_CTX   2 // one for Delta_DC flag, another for Delta_DC value
126#endif
127#endif
128
129#if RWTH_SDC_DLT_B0036
130#if PKU_QC_DEPTH_INTRA_UNI_D0195
131#define DEPTH_MODE_NUM_FLAG_CTX          8
132#define DMM_DELTA_NUM_FLAG_CTX           1
133#else
134#define SDC_NUM_FLAG_CTX                 3
135#endif
136#define SDC_NUM_RESIDUAL_FLAG_CTX        1
137#if !RWTH_SDC_CTX_SIMPL_D0032
138#define SDC_NUM_SIGN_FLAG_CTX            1
139#endif
140#if RWTH_SDC_CTX_SIMPL_D0032
141#define SDC_NUM_RESIDUAL_CTX             8
142#else
143#define SDC_NUM_RESIDUAL_CTX             10
144#endif
145
146#define SDC_NUM_PRED_MODE_CTX            5
147#endif
148
149// ====================================================================================================================
150// Tables
151// ====================================================================================================================
152
153// initial probability for split flag
154static const UChar
155INIT_SPLIT_FLAG[3][NUM_SPLIT_FLAG_CTX] = 
156{
157  { 139,  141,  157, }, 
158  { 107,  139,  126, }, 
159  { 107,  139,  126, }, 
160};
161
162static const UChar
163INIT_SKIP_FLAG[3][NUM_SKIP_FLAG_CTX] = 
164{
165  { CNU,  CNU,  CNU, }, 
166  { 197,  185,  201, }, 
167  { 197,  185,  201, }, 
168};
169
170#if LGE_ILLUCOMP_B0045
171static const UChar
172INIT_IC_FLAG[3][NUM_IC_FLAG_CTX] = 
173{
174  { CNU,  CNU,  CNU, }, 
175  { 197,  185,  201, }, 
176  { 197,  185,  201, }, 
177};
178#endif
179
180static const UChar
181INIT_ALF_CTRL_FLAG[3][NUM_ALF_CTRL_FLAG_CTX] = 
182{
183  { 200, }, 
184  { 139, }, 
185  { 169, }, 
186};
187
188static const UChar
189INIT_MERGE_FLAG_EXT[3][NUM_MERGE_FLAG_EXT_CTX] = 
190{
191  { CNU, }, 
192  { 110, }, 
193  { 154, }, 
194};
195
196static const UChar
197INIT_MERGE_IDX_EXT[3][NUM_MERGE_IDX_EXT_CTX] = 
198{
199  { CNU, }, 
200  { 122, }, 
201  { 137, }, 
202};
203
204#if H3D_IVRP
205static const UChar
206INIT_RES_PRED_FLAG[3][NUM_RES_PRED_FLAG_CTX] =
207{
208    { CNU, CNU, CNU, CNU },
209    { 154, 154, 154, 154 },
210    { 154, 154, 154, 154 },
211};
212#endif
213
214static const UChar
215INIT_PART_SIZE[3][NUM_PART_SIZE_CTX] = 
216{
217  { 184,  CNU,  CNU,  CNU, }, 
218  { 154,  139,  CNU,  CNU, }, 
219  { 154,  139,  CNU,  CNU, }, 
220};
221
222static const UChar
223INIT_CU_AMP_POS[3][NUM_CU_AMP_CTX] = 
224{
225  { CNU, }, 
226  { 154, }, 
227  { 154, }, 
228};
229
230static const UChar
231INIT_PRED_MODE[3][NUM_PRED_MODE_CTX] = 
232{
233  { CNU, }, 
234  { 149, }, 
235  { 134, }, 
236};
237
238static const UChar
239INIT_INTRA_PRED_MODE[3][NUM_ADI_CTX] = 
240{
241  { 184, }, 
242  { 154, }, 
243  { 183, }, 
244};
245
246static const UChar
247INIT_CHROMA_PRED_MODE[3][NUM_CHROMA_PRED_CTX] = 
248{
249  {  63,  139, }, 
250  { 152,  139, }, 
251  { 152,  139, }, 
252};
253
254static const UChar
255INIT_INTER_DIR[3][NUM_INTER_DIR_CTX] = 
256{
257  { CNU,  CNU,  CNU,  CNU, }, 
258#if CABAC_INIT_FLAG
259  {  95,   79,   63,   31, }, 
260#else
261  { CNU,  CNU,  CNU,  CNU, }, 
262#endif
263  {  95,   79,   63,   31, }, 
264};
265
266static const UChar
267INIT_MVD[3][NUM_MV_RES_CTX] = 
268{
269  { CNU,  CNU, }, 
270  { 140,  198, }, 
271  { 169,  198, }, 
272};
273
274static const UChar
275INIT_REF_PIC[3][NUM_REF_NO_CTX] = 
276{
277  { CNU,  CNU,  CNU,  CNU, }, 
278  { 153,  153,  139,  CNU, }, 
279  { 153,  153,  168,  CNU, }, 
280};
281
282static const UChar
283INIT_DQP[3][NUM_DELTA_QP_CTX] = 
284{
285  { 154,  154,  154, }, 
286  { 154,  154,  154, }, 
287  { 154,  154,  154, }, 
288};
289
290static const UChar
291INIT_QT_CBF[3][2*NUM_QT_CBF_CTX] = 
292{
293  { 111,  141,  CNU,  CNU,  CNU,   94,  138,  182,  CNU,  CNU, }, 
294  { 153,  111,  CNU,  CNU,  CNU,  149,  107,  167,  CNU,  CNU, }, 
295  { 153,  111,  CNU,  CNU,  CNU,  149,   92,  167,  CNU,  CNU, }, 
296};
297
298static const UChar
299INIT_QT_ROOT_CBF[3][NUM_QT_ROOT_CBF_CTX] = 
300{
301  { CNU, }, 
302  {  79, }, 
303  {  79, }, 
304};
305
306static const UChar
307INIT_LAST[3][2*NUM_CTX_LAST_FLAG_XY] = 
308{
309  { 110,  110,  124,  110,  140,  111,  125,  111,  127,  111,  111,  156,  127,  127,  111, 
310    108,  123,   63,  CNU,  CNU,  CNU,  CNU,  CNU,  CNU,  CNU,  CNU,  CNU,  CNU,  CNU,  CNU, 
311  }, 
312  { 125,  110,   94,  110,  125,  110,  125,  111,  111,  110,  139,  111,  111,  111,  125, 
313    108,  123,  108,  CNU,  CNU,  CNU,  CNU,  CNU,  CNU,  CNU,  CNU,  CNU,  CNU,  CNU,  CNU,
314  }, 
315  { 125,  110,  124,  110,  125,  110,  125,  111,  111,  110,  139,  111,  111,  111,  125, 
316    108,  123,   93,  CNU,  CNU,  CNU,  CNU,  CNU,  CNU,  CNU,  CNU,  CNU,  CNU,  CNU,  CNU, 
317  }, 
318};
319
320static const UChar
321INIT_SIG_CG_FLAG[3][2 * NUM_SIG_CG_FLAG_CTX] = 
322{
323  {  91,  171, 
324    134,  141, 
325  }, 
326  { 121,  140, 
327    61,  154, 
328  }, 
329  { 121,  140, 
330    61,  154, 
331  }, 
332};
333
334static const UChar
335INIT_SIG_FLAG[3][NUM_SIG_FLAG_CTX] = 
336{
337  { 141,  111,  125,  110,  110,   94,  124,  108,  124,  125,  139,  124,   63,  139,  168,  138,  107,  123,   92,  111,  141,  107,  125,  141,  179,  153,  125,  140,  139,  182,  123,   47,  153,  182,  137,  149,  192,  152,  224,  136,   31,  136,   74,  140,  141,  136,  139,  111, }, 
338  { 170,  154,  139,  153,  139,  123,  123,   63,  153,  168,  153,  152,   92,  152,  152,  137,  122,   92,   61,  155,  185,  166,  183,  140,  136,  153,  154,  155,  153,  123,   63,   61,  167,  153,  167,  136,  149,  107,  136,  121,  122,   91,  149,  170,  185,  151,  183,  140, }, 
339  { 170,  154,  139,  153,  139,  123,  123,   63,  124,  139,  153,  152,   92,  152,  152,  137,  137,   92,   61,  170,  185,  166,  183,  140,  136,  153,  154,  155,  153,  138,  107,   61,  167,  153,  167,  136,  121,  122,  136,  121,  122,   91,  149,  170,  170,  151,  183,  140, }, 
340};
341
342static const UChar
343INIT_ONE_FLAG[3][NUM_ONE_FLAG_CTX] = 
344{
345  { 140,   92,  137,  138,  140,  152,  138,  139,  153,   74,  149,   92,  139,  107,  122,  152,  140,  179,  166,  182,  140,  227,  122,  197, }, 
346  { 154,  196,  196,  167,  154,  152,  167,  182,  182,  134,  149,  136,  153,  121,  136,  137,  169,  194,  166,  167,  154,  167,  137,  182, }, 
347  { 154,  196,  167,  167,  154,  152,  167,  182,  182,  134,  149,  136,  153,  121,  136,  122,  169,  208,  166,  167,  154,  152,  167,  182, }, 
348};
349
350static const UChar
351INIT_ABS_FLAG[3][NUM_ABS_FLAG_CTX] = 
352{
353  { 138,  153,  136,  167,  152,  152, }, 
354  { 107,  167,   91,  122,  107,  167, }, 
355  { 107,  167,   91,  107,  107,  167, }, 
356};
357
358static const UChar
359INIT_MVP_IDX[3][NUM_MVP_IDX_CTX] = 
360{
361  { CNU,  CNU, }, 
362  { 168,  CNU, }, 
363  { 168,  CNU, }, 
364};
365
366static const UChar
367INIT_ALF_FLAG[3][NUM_ALF_FLAG_CTX] = 
368{
369  { 153, }, 
370  { 153, }, 
371  { 153, }, 
372};
373
374static const UChar
375INIT_ALF_UVLC[3][NUM_ALF_UVLC_CTX] = 
376{
377  { 140,  154, }, 
378  { 154,  154, }, 
379  { 154,  154, }, 
380};
381
382static const UChar
383INIT_ALF_SVLC[3][NUM_ALF_SVLC_CTX] = 
384{
385  { 187,  154,  159, }, 
386  { 141,  154,  189, }, 
387  { 141,  154,  159, }, 
388};
389
390static const UChar
391INIT_SAO_FLAG[3][NUM_SAO_FLAG_CTX] = 
392{
393  { 154, }, 
394  { 153, }, 
395  { 153, }, 
396};
397
398static const UChar
399INIT_SAO_UVLC[3][NUM_SAO_UVLC_CTX] = 
400{
401  { 143,  140, }, 
402  { 185,  140, }, 
403  { 200,  140, }, 
404};
405
406static const UChar
407INIT_SAO_SVLC[3][NUM_SAO_SVLC_CTX] = 
408{
409  { 247,  154,  244, }, 
410  { 215,  154,  169, }, 
411  { 215,  154,  169, }, 
412};
413
414static const UChar
415INIT_SAO_MERGE_LEFT_FLAG[3][NUM_SAO_MERGE_LEFT_FLAG_CTX] = 
416{
417  { 153,  153,  153, }, 
418  { 153,  153,  153, }, 
419  { 153,  153,  153, }, 
420};
421
422static const UChar
423INIT_SAO_MERGE_UP_FLAG[3][NUM_SAO_MERGE_UP_FLAG_CTX] = 
424{
425  { 175, }, 
426  { 153, }, 
427  { 153, }, 
428};
429
430static const UChar
431INIT_SAO_TYPE_IDX[3][NUM_SAO_TYPE_IDX_CTX] = 
432{
433  { 160,  140, }, 
434  { 185,  140, }, 
435  { 200,  140, }, 
436};
437
438static const UChar
439INIT_TRANS_SUBDIV_FLAG[3][NUM_TRANS_SUBDIV_FLAG_CTX] = 
440{
441{ CNU,  224,  167,  122,  CNU,  CNU,  CNU,  CNU,  CNU,  CNU, }, 
442{ CNU,  124,  138,   94,  CNU,  CNU,  CNU,  CNU,  CNU,  CNU, }, 
443{ CNU,  153,  138,  138,  CNU,  CNU,  CNU,  CNU,  CNU,  CNU, }, 
444};
445
446#if HHI_DMM_WEDGE_INTRA || HHI_DMM_PRED_TEX
447static const UChar
448INIT_DMM_FLAG[3][NUM_DMM_FLAG_CTX] =
449{
450  {
451    CNU
452  },
453  {
454    CNU
455  },
456  {
457    CNU
458  }
459};
460
461static const UChar
462INIT_DMM_MODE[3][NUM_DMM_MODE_CTX] =
463{
464  {
465    CNU
466  },
467  {
468    CNU
469  },
470  {
471    CNU
472  }
473};
474
475static const UChar
476INIT_DMM_DATA[3][NUM_DMM_DATA_CTX] = 
477{
478#if LGE_DMM3_SIMP_C0044
479  {
480    CNU, CNU, CNU, CNU
481  },
482  {
483    CNU, CNU, CNU, CNU
484  },
485  {
486    CNU, CNU, CNU, CNU
487  }
488#else
489  {
490    CNU, CNU, CNU
491  },
492  {
493    CNU, CNU, CNU
494  },
495  {
496    CNU, CNU, CNU
497  }
498#endif
499};
500
501#if LGE_EDGE_INTRA_A0070
502static const Short
503INIT_EDGE_INTRA[3][NUM_EDGE_INTRA_CTX] =
504{
505  {
506    CNU
507  },
508  {
509    CNU
510  },
511  {
512    CNU
513  }
514};
515
516#if LGE_EDGE_INTRA_DELTA_DC
517static const Short
518INIT_EDGE_INTRA_DELTA_DC[3][NUM_EDGE_INTRA_DELTA_DC_CTX] =
519{
520  {
521    CNU, CNU
522  },
523  {
524    CNU, CNU
525  },
526  {
527    CNU, CNU
528  }
529};
530#endif
531#endif
532
533#endif
534
535#if RWTH_SDC_DLT_B0036
536#if PKU_QC_DEPTH_INTRA_UNI_D0195
537static const UChar INIT_DEPTHMODE_FLAG[3][DEPTH_MODE_NUM_FLAG_CTX]=
538{
539  {0,  0,  64,   0, CNU,   0, CNU, 0},
540  {0, 64,   0, CNU,   0, CNU,   0, 0},
541  {64, 0, CNU,   0, CNU,   0,   0, 0}
542};
543static const UChar INIT_DMMDELTA_FLAG[3][DMM_DELTA_NUM_FLAG_CTX]=
544{
545  {0},
546  {0},
547  {64}
548};
549#else
550static const Short INIT_SDC_FLAG[3][SDC_NUM_FLAG_CTX][2] =
551{
552  {
553    {    0,   64 }, {    0,   64 }, {    0,   64 }
554  },
555  {
556    {    0,   64 }, {    0,   64 }, {    0,   64 }
557  },
558  {
559    {    0,   64 }, {    0,   64 }, {    0,   64 }
560  }
561};
562#endif
563
564#if RWTH_SDC_CTX_SIMPL_D0032
565static const UChar INIT_SDC_RESIDUAL_FLAG[3][SDC_NUM_RESIDUAL_FLAG_CTX] =
566{
567  {
568    CNU
569   
570  },
571  {
572    CNU
573  },
574  {
575    CNU
576  }
577};
578
579static const UChar INIT_SDC_RESIDUAL[3][SDC_NUM_RESIDUAL_CTX] =
580{
581  {
582    CNU, CNU, CNU, CNU, CNU, CNU, CNU, CNU
583  },
584  {
585    CNU, CNU, CNU, CNU, CNU, CNU, CNU, CNU
586  },
587  {
588    CNU, CNU, CNU, CNU, CNU, CNU, CNU, CNU
589  }
590};
591
592static const UChar INIT_SDC_PRED_MODE[3][3*SDC_NUM_PRED_MODE_CTX] =
593{
594  {
595    CNU,    CNU
596    ,CNU, CNU, CNU, CNU, CNU, CNU, CNU, CNU, CNU, CNU, CNU, CNU, CNU
597  },
598  {
599    CNU,    CNU
600    ,CNU, CNU, CNU, CNU, CNU, CNU, CNU, CNU, CNU, CNU, CNU, CNU, CNU
601  },
602  {
603    CNU,    CNU
604    ,CNU, CNU, CNU, CNU, CNU, CNU, CNU, CNU, CNU, CNU, CNU, CNU, CNU
605  }
606};
607#else
608static const Short INIT_SDC_RESIDUAL_FLAG[3][3*SDC_NUM_RESIDUAL_FLAG_CTX][2] =
609{
610  {
611    { -5, 35 },
612    { -0, 56 },
613    { -0, 56 }
614   
615  },
616  {
617    { -5, 35 },
618    { -0, 56 },
619    { -0, 56 }
620  },
621  {
622    { -5, 35 },
623    { -0, 56 },
624    { -0, 56 }
625  }
626};
627
628static const Short INIT_SDC_SIGN_FLAG[3][3*SDC_NUM_SIGN_FLAG_CTX][2] =
629{
630  {
631    { -1, 56 },
632    { -4, 55 },
633    { -4, 55 }
634  },
635  {
636    { -1, 56 },
637    { -4, 55 },
638    { -4, 55 }
639  },
640  {
641    { -1, 56 },
642    { -4, 55 },
643    { -4, 55 }
644  }
645};
646
647static const Short INIT_SDC_RESIDUAL[3][3*SDC_NUM_RESIDUAL_CTX][2] =
648{
649  {
650    { -1, 64 }, {  2, 64 }, {  6, 67 }, {  8, 61 }, {  7, 47 }, { 10, 33 }, { 12, 14 }, { 33, -13 }, { 12, 14 }, { 33, -13 },
651    {  2, 66 }, { -0, 63 }, {  1, 64 }, {  6, 65 }, {  7, 59 }, { 12, 50 }, { 14, 27 }, { -0, -17 }, { 14, 27 }, { -0, -17 },
652    {  2, 66 }, { -0, 63 }, {  1, 64 }, {  6, 65 }, {  7, 59 }, { 12, 50 }, { 14, 27 }, { -0, -17 }, { 14, 27 }, { -0, -17 }
653  },
654  {
655    { -1, 64 }, {  2, 64 }, {  6, 67 }, {  8, 61 }, {  7, 47 }, { 10, 33 }, { 12, 14 }, { 33, -13 }, { 12, 14 }, { 33, -13 },
656    {  2, 66 }, { -0, 63 }, {  1, 64 }, {  6, 65 }, {  7, 59 }, { 12, 50 }, { 14, 27 }, { -0, -17 }, { 14, 27 }, { -0, -17 },
657    {  2, 66 }, { -0, 63 }, {  1, 64 }, {  6, 65 }, {  7, 59 }, { 12, 50 }, { 14, 27 }, { -0, -17 }, { 14, 27 }, { -0, -17 }
658  },
659  {
660    { -1, 64 }, {  2, 64 }, {  6, 67 }, {  8, 61 }, {  7, 47 }, { 10, 33 }, { 12, 14 }, { 33, -13 }, { 12, 14 }, { 33, -13 },
661    {  2, 66 }, { -0, 63 }, {  1, 64 }, {  6, 65 }, {  7, 59 }, { 12, 50 }, { 14, 27 }, { -0, -17 }, { 14, 27 }, { -0, -17 },
662    {  2, 66 }, { -0, 63 }, {  1, 64 }, {  6, 65 }, {  7, 59 }, { 12, 50 }, { 14, 27 }, { -0, -17 }, { 14, 27 }, { -0, -17 }
663  }
664};
665
666static const Short INIT_SDC_PRED_MODE[3][3*SDC_NUM_PRED_MODE_CTX][2] =
667{
668  {
669    {  9, 85 }, { -4, 60 }, {  4, 70 }, {  4, 70 }, {  4, 70 },
670    {  9, 85 }, { -4, 60 }, {  4, 70 }, {  4, 70 }, {  4, 70 },
671    {  9, 85 }, { -4, 60 }, {  4, 70 }, {  4, 70 }, {  4, 70 }
672  },
673  {
674    {  9, 85 }, { -4, 60 }, {  4, 70 }, {  4, 70 }, {  4, 70 },
675    {  9, 85 }, { -4, 60 }, {  4, 70 }, {  4, 70 }, {  4, 70 },
676    {  9, 85 }, { -4, 60 }, {  4, 70 }, {  4, 70 }, {  4, 70 }
677  },
678  {
679    {  9, 85 }, { -4, 60 }, {  4, 70 }, {  4, 70 }, {  4, 70 },
680    {  9, 85 }, { -4, 60 }, {  4, 70 }, {  4, 70 }, {  4, 70 },
681    {  9, 85 }, { -4, 60 }, {  4, 70 }, {  4, 70 }, {  4, 70 }
682  }
683};
684#endif
685#endif
686
687//! \}
688
689#endif
690
Note: See TracBrowser for help on using the repository browser.