source: 3DVCSoftware/branches/HTM-9.2-dev0/source/Lib/TLibCommon/TypeDef.h @ 764

Last change on this file since 764 was 764, checked in by tech, 10 years ago

Cleanup part 1

  • Property svn:eol-style set to native
File size: 44.7 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-2013, 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     TypeDef.h
35    \brief    Define basic types, new types and enumerations
36*/
37
38#ifndef _TYPEDEF__
39#define _TYPEDEF__
40
41//! \ingroup TLibCommon
42//! \{
43/////////////////////////////////////////////////////////////////////////////////////////
44///////////////////////////////// EXTENSION SELECTION /////////////////////////////////// 
45/////////////////////////////////////////////////////////////////////////////////////////
46
47/* HEVC_EXT might be defined by compiler/makefile options.
48   
49   Linux makefiles support the following settings:   
50   make             -> HEVC_EXT not defined   
51   make HEVC_EXT=0  -> H_MV=0 H_3D=0   --> plain HM
52   make HEVC_EXT=1  -> H_MV=1 H_3D=0   --> MV only
53   make HEVC_EXT=2  -> H_MV=1 H_3D=1   --> full 3D
54*/
55
56#ifndef HEVC_EXT
57#define HEVC_EXT                    2
58#endif
59
60#if ( HEVC_EXT < 0 )||( HEVC_EXT > 2 )
61#error HEVC_EXT must be in the range of 0 to 2, inclusive.
62#endif
63
64#define H_MV          ( HEVC_EXT != 0)
65#define H_3D          ( HEVC_EXT == 2)
66
67
68/////////////////////////////////////////////////////////////////////////////////////////
69///////////////////////////////////   MAJOR DEFINES   /////////////////////////////////// 
70/////////////////////////////////////////////////////////////////////////////////////////
71
72#if H_MV
73#define H_MV_ENC_DEC_TRAC                 1  //< CU/PU level tracking
74#endif
75
76#if H_3D
77#define H_3D_QTLPC                        1   // OL_QTLIMIT_PREDCODING_B0068 //JCT3V-B0068
78                                              // HHI_QTLPC_RAU_OFF_C0160     // JCT3V-C0160 change 2: quadtree limitation and predictive coding switched off in random access units
79
80#define H_3D_VSO                          1   // VSO, View synthesis optimization, includes:
81                                              // HHI_VSO
82                                              // HHI_VSO_LS_TABLE_M23714 enable table base Lagrange multiplier optimization
83                                              // SAIT_VSO_EST_A0033, JCT3V-A0033 modification 3
84                                              // LGE_WVSO_A0119
85#define H_3D_NBDV                         1   // Neighboring block disparity derivation
86                                              // QC_JCT3V-A0097
87                                              // LGE_DVMCP_A0126
88                                              // LGE_DVMCP_MEM_REDUCTION_B0135     
89                                              // QC_SIMPLE_NBDV_B0047
90                                              // FIX_LGE_DVMCP_B0133
91                                              // QC_NBDV_LDB_FIX_C0055
92                                              // MTK_SAIT_TEMPORAL_FIRST_ORDER_C0141_C0097
93                                              // MTK_SIMPLIFY_DVTC_C0135           
94                                              // QC_CU_NBDV_D0181
95                                              // SEC_DEFAULT_DV_D0112
96                                              // MTK_DVMCP_FIX_E0172       fix the mismatch between software and WD for DV derivation from DVMCP blocks, issue 2 in JCT3V-E0172
97                                              // SEC_SIMPLIFIED_NBDV_E0142 Simplified NBDV, JCT3V-E0142 and JCT3V-E0190
98                                              // MTK_NBDV_TN_FIX_E0172     fix the issue of DV derivation from the temporal neighboring blocks, issue 7 in JCT3V-E0172
99                                              // MTK_TEXTURE_MRGCAND_BUGFIX_E0182  Bug fix for TEXTURE MERGING CANDIDATE     , JCT3V-E0182
100#define H_3D_ARP                          1   // Advanced residual prediction (ARP), JCT3V-D0177
101#define H_3D_IC                           1   // Illumination Compensation, JCT3V-B0045, JCT3V-C0046, JCT3V-D0060
102                                              // Unifying rounding offset, for IC part, JCT3V-D0135
103                                              // Full Pel Interpolation for Depth, HHI_FULL_PEL_DEPTH_MAP_MV_ACC
104                                              // SHARP_ILLUCOMP_REFINE_E0046
105                                              // MTK_CLIPPING_ALIGN_IC_E0168       // To support simplify bi-prediction PU with identical motion checking, JCT3V-E0168
106                                              // LGE_IC_CTX_F0160 //JCT3V-F0160
107                                              // SEC_ONLY_TEXTURE_IC_F0151
108
109#if H_3D_NBDV
110#define H_3D_NBDV_REF                     1   // Depth oriented neighboring block disparity derivation
111                                              // MTK_D0156
112                                              // MERL_D0166: Reference view selection in NBDV & Bi-VSP
113                                              // MERL_C0152: Basic VSP
114                                              // NBDV_DEFAULT_VIEWIDX_BUGFIX Bug fix for invalid default view index for NBDV
115                                              // NTT_DoNBDV_VECTOR_CLIP_E0141 disparity vector clipping in DoNBDV, JCT3V-E0141 and JCT3V-E0209
116
117#endif
118
119#define H_3D_VSP                          1   // View synthesis prediction
120                                              // MERL_C0152: Basic VSP
121                                              // MERL_D0166: Reference view selection in NBDV & Bi-VSP
122                                              // MTK_D0105, LG_D0139: No VSP for depth
123                                              // QC_D0191: Clean up
124                                              // LG_D0092: Multiple VSP candidate allowed
125                                              // MTK_VSP_FIX_ALIGN_WD_E0172
126                                              // NTT_VSP_ADAPTIVE_SPLIT_E0207 adaptive sub-PU partitioning in VSP, JCT3V-E0207
127                                              // NTT_VSP_DC_BUGFIX_E0208 bugfix for sub-PU based DC in VSP, JCT3V-E0208
128                                              // NTT_VSP_COMMON_E0207_E0208 common part of JCT3V-E0207 and JCT3V-E0208
129#define H_3D_IV_MERGE                     1   // Inter-view motion merge candidate
130                                              // HHI_INTER_VIEW_MOTION_PRED
131                                              // SAIT_IMPROV_MOTION_PRED_M24829, improved inter-view motion vector prediction
132                                              // QC_MRG_CANS_B0048             , JCT3V-B0048, B0086, B0069
133                                              // OL_DISMV_POS_B0069            , different pos for disparity MV candidate, B0069
134                                              // MTK_INTERVIEW_MERGE_A0049     , second part
135                                              // QC_AMVP_MRG_UNIFY_IVCAN_C0051     
136                                              // TEXTURE MERGING CANDIDATE     , JCT3V-C0137
137                                              // QC_INRIA_MTK_MRG_E0126
138                                              // ETRIKHU_MERGE_REUSE_F0093
139
140
141#define H_3D_TMVP                         1   // QC_TMVP_C0047
142                                              // Sony_M23639
143
144#define H_3D_DIM                          1   // DIM, Depth intra modes, includes:
145                                              // HHI_DMM_WEDGE_INTRA
146                                              // HHI_DMM_PRED_TEX
147                                              // FIX_WEDGE_NOFLOAT_D0036
148                                              // LGE_EDGE_INTRA_A0070
149                                              // LGE_DMM3_SIMP_C0044
150                                              // QC_DC_PREDICTOR_D0183
151                                              // HHI_DELTADC_DLT_D0035
152                                              // PKU_QC_DEPTH_INTRA_UNI_D0195
153                                              // RWTH_SDC_DLT_B0036
154                                              // INTEL_SDC64_D0193
155                                              // RWTH_SDC_CTX_SIMPL_D0032
156                                              // LGE_CONCATENATE_D0141
157                                              // FIX_SDC_ENC_RD_WVSO_D0163
158                                              // MTK_SAMPLE_BASED_SDC_D0110
159                                              // SEC_DMM2_E0146_HHIFIX Removal of DMM2 from DMMs
160                                              // ZJU_DEPTH_INTRA_MODE_E0204 Simplified Binarization for depth_intra_mode
161                                              // KWU_SDC_SIMPLE_DC_E0117 Simplified DC calculation for SDC
162                                              // SCU_HS_DMM4_REMOVE_DIV_E0242 DMM4 Division Removal
163                                              // LGE_SDC_REMOVE_DC_E0158 Removal of DC mode from SDC
164                                              // LGE_PKU_DMM3_OVERLAP_E0159_HHIFIX 1   Removal of overlap between DMM3 and DMM1
165                                              // LGE_PRED_RES_CODING_DLT_DOMAIN_F0159 JCT3V-F0159
166                                              // HHI_DIM_PREDSAMP_FIX_F0171
167                                              // SEC_DMM3_RBC_F0147 Removal of DMM3 and RBC from DMMs
168                                              // QC_DIM_DELTADC_UNIFY_F0132 Unify delta DC coding in depth intra modes
169
170#define H_3D_INTER_SDC                    1   // INTER SDC, Inter simplified depth coding
171                                              // LGE_INTER_SDC_E0156  Enable inter SDC for depth coding
172#define H_3D_FCO                          0   // Flexible coding order for 3D
173
174
175// OTHERS
176                                              // MTK_SONY_PROGRESSIVE_MV_COMPRESSION_E0170 // Progressive MV Compression, JCT3V-E0170
177#define H_3D_REN_MAX_DEV_OUT              0   // Output maximal possible shift deviation
178#define H_3D_FAST_TEXTURE_ENCODING        1   // Fast merge mode decision and early CU determination for texture component of dependent view, JCT3V-E0173
179                                              // MTK_FAST_TEXTURE_ENCODING_E0173
180#if H_3D_DIM
181#define H_3D_FAST_DEPTH_INTRA             1   // Fast DMM and RBC Mode Selection
182                                              // SCU_HS_FAST_DEPTH_INTRA_E0238_HHIFIX
183#endif
184
185#define CAM_HLS_F0136_F0045_F0082         1   // JCT3V-F0136/F0045: view order index based camera parameter signaling
186                                              // JCT3V-F0082: the cp_in_slice_segment_layer_flag to be view specific and used as a condition of the presence of slice header level camera parameters
187#define CAM_HLS_F0044                     1   // JCT3V-F0044: move camera parameter from slice header extension to slice header
188
189
190// Rate Control
191#define KWU_FIX_URQ                       1
192#define KWU_RC_VIEWRC_E0227               0  ///< JCT3V-E0227, view-wise target bitrate allocation
193#define KWU_RC_MADPRED_E0227              0  ///< JCT3V-E0227, inter-view MAD prediction
194
195#endif // H_3D
196
197
198
199/////////////////////////////////////////////////////////////////////////////////////////
200///////////////////////////////////   DERIVED DEFINES /////////////////////////////////// 
201/////////////////////////////////////////////////////////////////////////////////////////
202
203///// ***** VIEW SYNTHESIS OPTIMIZAION *********
204#if H_3D_VSO                                 
205#define H_3D_VSO_DIST_INT                 1   // Allow negative synthesized view distortion change
206#define H_3D_VSO_COLOR_PLANES             1   // Compute VSO distortion on color planes
207#define H_3D_VSO_EARLY_SKIP               1   // LGE_VSO_EARLY_SKIP_A0093, A0093 modification 4
208#define H_3D_VSO_RM_ASSERTIONS            0   // Output VSO assertions
209#define H_3D_VSO_SYNTH_DIST_OUT           0   // Output of synthesized view distortion instead of depth distortion in encoder output
210#define H_3D_VSO_FIX                      0   // This fix should be enabled after verification
211#endif
212
213////   ****** neighbouring block-based disparity vector  *********
214#if H_3D_NBDV
215#define DVFROM_LEFT                       0
216#define DVFROM_ABOVE                      1
217#define IDV_CANDS                         2
218#endif
219
220///// ***** ADVANCED INTERVIEW RESIDUAL PREDICTION *********
221#if H_3D_ARP
222#define H_3D_ARP_WFNR                     3
223#endif
224
225///// ***** DEPTH INTRA MODES *********
226#if H_3D_DIM
227#define H_3D_DIM_DMM                      1   // Depth Modeling Modes
228#define H_3D_DIM_SDC                      1   // Simplified Depth Coding method
229#define H_3D_DIM_DLT                      1   // Depth Lookup Table
230
231#if H_3D_DIM_DLT
232#define DLT_DIFF_CODING_IN_PPS            1   // moving DLT syntax elements from VPS to PPS and differential coding of DLT values
233                                              // JCT3V-F0131, JCT3V-F0139
234#if DLT_DIFF_CODING_IN_PPS
235#define Log2( n ) ( log((double)n) / log(2.0) )
236#endif
237#define H_3D_DELTA_DLT                    1
238#endif
239
240#define H_3D_DIM_ENC                      1   // Depth Intra encoder optimizations, includes:
241                                              // HHI_DEPTH_INTRA_SEARCH_RAU_C0160
242                                              // LG_ZEROINTRADEPTHRESI_A0087
243#endif
244///// ***** VIEW SYNTHESIS PREDICTION *********
245#if H_3D_VSP
246#define H_3D_VSP_BLOCKSIZE                4   // Supported values: 1, 2, and 4
247#if H_3D_VSP_BLOCKSIZE == 1
248#define H_3D_VSP_CONSTRAINED              1   // Constrained VSP @ 1x1
249#else
250#define H_3D_VSP_CONSTRAINED              0
251#endif
252#endif
253
254///// ***** ILLUMATION COMPENSATION *********
255#if H_3D_IC
256#define IC_REG_COST_SHIFT                 7
257#define IC_CONST_SHIFT                    5
258#define IC_SHIFT_DIFF                     12
259#endif
260
261///// ***** FCO *********
262#if H_3D_FCO
263#define H_3D_FCO_VSP_DONBDV_E0163               1   // Adaptive depth reference for flexible coding order
264#else
265#define H_3D_FCO_VSP_DONBDV_E0163               0   // Adaptive depth reference for flexible coding order
266#endif
267
268/////////////////////////////////////////////////////////////////////////////////////////
269///////////////////////////////////   HTM-9.2 Integrations //////////////////////////////
270/////////////////////////////////////////////////////////////////////////////////////////
271
272// !!! PLEASE PUT MACROS RELATED TO HTM-9.2 INTEGRATIONS HERE !!!
273// !!! PLEASE PUT MACROS RELATED TO HTM-9.2 INTEGRATIONS HERE !!!
274// !!! PLEASE PUT MACROS RELATED TO HTM-9.2 INTEGRATIONS HERE !!!
275// !!! PLEASE PUT MACROS RELATED TO HTM-9.2 INTEGRATIONS HERE !!!
276// !!! PLEASE PUT MACROS RELATED TO HTM-9.2 INTEGRATIONS HERE !!!
277
278/////////////////////////////////////////////////////////////////////////////////////////
279///////////////////////////////////   HTM-9.1 Integrations //////////////////////////////
280/////////////////////////////////////////////////////////////////////////////////////////
281
282#define H_MV_FIX_TRACE_FILE                     1  // Fix linux compilation error related const char conversion
283
284#define H_MV_LAYER_WISE_STARTUP                 1  // Basic version of layer wise startup.
285#define H_MV_FIX_SKIP_PICTURES                  1  // Fix related to skipping pictures.
286#define H_MV_6_HRD_O0164_15                     1  // (HRD/O0164/Multilayer HRD) #15 Decision: Adopt, modified as follows: It was suggested to constrain the stalling based on the relative cpb removal times, which must be in decoding order. The "du_based_bpb_sync_flag" is not needed, in view of this. SEI in the highest layer of the layer set or (inclusive "or") VPS VUI is used to carry the parameters (at encoder discretion). SEI in higher layer and SEI in VUI do not need to repeat information available in some lower layer. Shall be after APS SEI and buffering period SEI and before all other SEI of all layers except other HRD related SEI.
287#define H_MV_6_HRD_O0217_13                     1  // (HRD/O0217/Sub-DPB based DPB operations) #13 Decision: Adopt ?Specify a separate DPB capacity for each layer ?no sharing of capacity across layers ?each layer has its own parameters (max pictures, max latency, max reordering). This proposal would specify distinct parameters for each "output layer set" and to change the definition of an operation point to be specific to an output layer set instead of a 'layer set". Decision: Adopted this aspect as well.
288#define H_MV_6_SHVC_O0098_36                    1  // (SHVC/O0098/Scaled ref layer offset) #36 Modify signalling of scaled reference layer offsets to allow signalling of any lower layer, rather than just a direct reference layer, in order to enable alignment of auxiliary pictures. In further JCT-VC and JCT-3V discussion, it was also agreed to use the same offset signalling for MV-HEVC as well as SHVC
289#define H_MV_6_GEN_0153_28                      1  //(Gen/O0153/output highest layer) #28 Add a flag in the VPS to indicate if startup process should output the highest available layer if the target output layer is not available.
290#define H_MV_6_PS_0109_25                       1  //XXX(PS/O0109/default_one_target_output_layer_idc) #25 To change default_one_target_output_layer_flag to a two-bit default_one_target_output_layer_idc, and reserve the values 2 and 3
291#define H_MV_6_O0226_37                         1  //(VUI/O0226/Mod tile WPP) #37 Modifications to the VUI indicators of tile and WPP alignment related syntax elements, from the r1.
292#define H_MV_6_RALS_O0149_11                    1  //XXX (RALS/O0149/Prop2): #11 Proposal: A new slice_reserved_flag is taken into use to indicate if a base-layer IDR picture initiates the layer-wise start-up process. Decision: Adopt (the bit should not be required to be present; if present should be the bit after the discardable_flag, and discardable_flag should be the first one of the three, and the poc reset flag is not required to be present).
293#define H_MV_6_PSEM_O0142_3                     1  // (PSEM/O0142/Conditional extension syntax) #3 Adopt JCTVC-O0142 (as a structure to be used to switch whatever extensions we define in SPS, not necessarily committing to having these extensions be separate for each extension, but the current plan unless decided otherwise is to use one flag for range extensions syntax presence and one flag for SHVC+MV-HEVC extension syntax presence)
294#define H_MV_6_FIX_GET_VIEW_ID                  1  // Fix get view id
295#define H_MV_6_LAYER_ID_32                      1  // (Gen/O0137,O0200,O0223,Layer id) #32 Add (editorial equivalent of) "The value of nuh_layer_id shall be in the range of 0 to 62. The value of 63 for nuh_layer_id is reserved for future use by ITU-T | ISO/IEC. Decoders shall ignore all data that follow the value 63 for nuh_layer_id in a NAL unit." and specify that vps_max_layers_minus1 shall not be equal to 63, but decoders shall allow that value to appear in the bitstream. Specify that the value 63 is interpreted the same as the value 62 (e.g., MaxLayersMinus1 = Min( 62, vps_max_layers_minus1) and subsequently refer to MaxLayersMinus1 instead of vps_max_layers_minus1)
296#define H_MV_6_PS_O0118_33                      1  // (PS/O0118/visual signal info in vui per layer) #33 Add visual signal information (video_format, video_full_range_flag, colour_primaries, transfer_characteristics, matrix_coeffs) per layer to the VPS VUI, from v2 version of JCTVC-O0118.
297#define H_MV_6_POC_31_35_38                     1  //XXX  Various related to POC
298                                                   // (Misc/O0062/POC LSB present) (SH changes)
299                                                   // (POC/O0117/Modify PicOrderCntVal of prevTid0Pic) #35 Modification of the PicOrderCntVal of prevTid0Pic and modification to the decoding process for reference picture set, to address problems found for cross-layer POC alignment.
300                                                   // (POC/O0211/Fix ambiguity) #38 Modify POC derivation to correct an ambiguity in the spec.
301#define H_MV_6_MISC_O0062_31                    1  // (Misc/O0062/POC LSB present) (without SH changes ) #31 The proposal's "option 3" is to add a flag in the VPS for each EL to control whether these LSBs are present or not (for IDR pictures), and when not present, the LSBs are inferred to be equal to 0. Decision: Adopted (as described herein).
302#define H_MV_6_ILDDS_ILREFPICS_27_34            1  // Various inter layer reference picture derivation
303                                                   // (ILDSD/O0225/max_tid_il_ref_pics RPL const.) #27 Change derivation of NumActiveRefLayerPics to consider max_tid_il_ref_pics.
304                                                   // (ILDSD/O0120/sub_layers_vps_max_minus1 RPL const) #34 Modify inter-layer reference picture list default construction to incorporate max temporal sub-layers per layer syntax elements in VPS extension, from r2 version of JCTVC-O0120
305#define H_MV_6_ILDDS_O0225_30                   1  // (ILDSD/O0225/signal max_tid_il_ref_pics per layer ) #30 2nd proposal of JCTVC-O0225 regarding signalling of max_tid_il_ref_pics per layer, based upon relation to SCE2 on single loop decoding. Decision: Adopted.
306#define H_MV_6_ILDSD_O0120_26                   1  // (ILDSD/O0120/sub_layers_vps_max_minus1) #26 Add syntax elements to signal max temporal sub-layers for each layer in the VPS, with a gating flag, from JCTVC- option 2.
307#define H_MV_6_PS_O0223_29                      1  // (PS/O0223/Cross layer alignment type) #29 Add a flag in VPS VUI to indicate cross layer pic type alignment.  Move cross_layer_irap_aligned_flag to VPS VUI and make presence condition on added flag
308#define H_MV_6_PS_0092_17                       1  // (PS/O0092/Sharing SPS PPS) #17 Restrict sharing of SPS and PPS across layers to avoid creating problems during sub-bitstream extraction, based on modification of proposals in JCTVC-O0059 and JCTVC-O0092, reflected in the v2 version of O0092.
309#define H_MV_6_PS_REP_FORM_18_19_20             1  //  Various Rep format
310                                                   // (PS/O0096/rep format syntax element length ) #20 Modification of length to 8 bit as decided later in trac.
311                                                   // (PS/O0179/Rep. Format) #18 Add flag in rep_format( ) syntax structure to control sending of chroma and bit depth related parameters, as proposed in the v2 version of JCTVC-O0179.
312                                                   // (PS/O0096/rep format) #20 Modify the SPS syntax for layers with nuh_layer_id > 0 to signal a reference to a rep_format index in the VPS, rather than signalling explicit representation format data in the SPS, from the v2 version of JCTVC-O0096.
313                                                   // (PS/FIX/N0092/Rep. Format) #19 Inferences.
314#define H_MV_6_PS_O0096_21                      1  // (PS/O0096/direct_dependency_type gating flag) #21 Add a gating flag in VPS extension to condition the presence of direct dependency type, with a default type signalled, from JCTVC-O0096
315#define H_MV_6_PS_O0109_22                      1  // (PS/O0109/view_id_len) #22 Modify the VPS extension syntax and semantics to replace view_id_len_minus1 with view_id_len, always signal that syntax element, add a constraint that (1<<view_id_len) >= NumViews, and modify view_id_val semantics to infer value of 0 when not present, from discussion of JCTVC-O0109
316#define H_MV_6_PS_O0109_23                      1  // (PS/O0109/profile_ref_minus1 constraint) #23 Modify the semantics of profile_ref_minus1[ i ] to replace “shall be less than i?with “shall be less than or equal to i? from discussion of JCTVC-O0109
317#define H_MV_6_PS_O0109_24                      1  // (PS/O0109/vps_vui_present_flag move) #24 Move the vps_vui_present_flag to precede vps_vui_offset, and make vps_vui_offset conditional on that flag, from JCTVC-O0109
318/////////////////////////////////////////////////////////////////////////////////////////
319///////////////////////////////////   HTM-9.0 Integrations //////////////////////////////
320/////////////////////////////////////////////////////////////////////////////////////////
321
322#if H_3D
323#define PPS_FIX_DEPTH                           1
324
325#define FIX_MISSING_MACRO_R690                  1 // Missing macro in integration to revision 690
326#define SEC_MPI_ENABLING_MERGE_F0150            1 // MPI flag in VPS and enabling in Merge mode
327
328#if H_3D_ARP
329#define QC_MTK_INTERVIEW_ARP_F0123_F0108        1 //JCT3V-F0123; JCT3V-F0108
330#define SHARP_ARP_REF_CHECK_F0105               1 // ARP reference picture selection and DPB check
331#define LGE_ARP_CTX_F0161                       1 //JCT3V-F0161
332#endif
333
334#if H_3D_IV_MERGE
335#define QC_DEPTH_IV_MRG_F0125                   1 // JCT3V-F0125: Depth oriented Inter-view MV candidate
336#define MTK_SPIVMP_F0110                        1 // JCT3V-F0110: Sub-PU level inter-view motion prediction
337#define MTK_F0110_FIX                           1 // Disable Sub-PU IVMP in Depth, fix some delete problems
338#define BUGFIX_F0093                            1 // bug fix for F0093 for depth IvMC pruning
339#define BUGFIX_2_F0093                          1 // bug fix for VSP inheritance
340#endif
341
342#if H_3D_VSP
343#define MTK_F0109_LG_F0120_VSP_BLOCK            1 // MTK_LG_SIMPLIFY_VSP_BLOCK_PARTITION_F0109_F0120 
344#define SHARP_VSP_BLOCK_IN_AMP_F0102            1 // VSP partitioning for AMP
345#define MTK_VSP_SIMPLIFICATION_F0111            1 // 1. Inherited VSP also use NBDV of current CU, 2. VSP cannot be inherited from above LCU rowss
346#define LGE_SHARP_VSP_INHERIT_F0104             1
347#endif
348#endif
349
350
351/////////////////////////////////////////////////////////////////////////////////////////
352///////////////////////////////////   HM RELATED DEFINES ////////////////////////////////
353/////////////////////////////////////////////////////////////////////////////////////////
354
355#define FIX1071 1 ///< fix for issue #1071
356
357#define MAX_NUM_PICS_IN_SOP           1024
358
359#define MAX_NESTING_NUM_OPS         1024
360#define MAX_NESTING_NUM_LAYER       64
361
362#define MAX_VPS_NUM_HRD_PARAMETERS                1
363#define MAX_VPS_OP_SETS_PLUS1                     1024
364#if H_MV
365#if H_MV_6_LAYER_ID_32
366#define MAX_VPS_NUH_LAYER_ID_PLUS1  63
367#else
368#define MAX_VPS_NUH_LAYER_ID_PLUS1  64
369#endif
370#define MAX_NUM_SCALABILITY_TYPES   16
371#define ENC_CFG_CONSOUT_SPACE       29           
372#else
373#define MAX_VPS_NUH_RESERVED_ZERO_LAYER_ID_PLUS1  1
374#endif
375
376#define RATE_CONTROL_LAMBDA_DOMAIN                  1  ///< JCTVC-K0103, rate control by R-lambda model
377#define M0036_RC_IMPROVEMENT                        1  ///< JCTVC-M0036, improvement for R-lambda model based rate control
378#define TICKET_1090_FIX                             1
379
380#if KWU_FIX_URQ
381#if RATE_CONTROL_LAMBDA_DOMAIN
382#define RC_FIX                                      1  /// suggested fix for M0036
383#define RATE_CONTROL_INTRA                          1  ///< JCTVC-M0257, rate control for intra
384#endif
385#else
386#define RC_FIX                                      1  /// suggested fix for M0036
387#define RATE_CONTROL_INTRA                          1  ///< JCTVC-M0257, rate control for intra
388#endif
389
390
391#define MAX_CPB_CNT                     32  ///< Upper bound of (cpb_cnt_minus1 + 1)
392#if H_MV
393#if H_MV_6_LAYER_ID_32
394#define MAX_NUM_LAYER_IDS               63
395#define MAX_NUM_LAYERS                  63
396#else
397#define MAX_NUM_LAYER_IDS               64
398#define MAX_NUM_LAYERS                  64
399#endif
400#define MAX_VPS_PROFILE_TIER_LEVEL      64
401#define MAX_VPS_ADD_OUTPUT_LAYER_SETS   1024
402#define MAX_VPS_OUTPUTLAYER_SETS        ( MAX_VPS_ADD_OUTPUT_LAYER_SETS + MAX_VPS_OP_SETS_PLUS1 )
403#if H_MV_6_PS_O0118_33
404#define  MAX_NUM_VIDEO_SIGNAL_INFO      16
405#endif
406#if H_MV_6_SHVC_O0098_36
407#define MAX_NUM_SCALED_REF_LAYERS       MAX_NUM_LAYERS-1
408#endif
409#if H_MV_6_HRD_O0164_15
410#define MAX_NUM_BSP_HRD_PARAMETERS      100 ///< Maximum value is actually not specified
411#define MAX_NUM_BITSTREAM_PARTITIONS    100 ///< Maximum value is actually not specified
412#define MAX_NUM_BSP_SCHED_COMBINATION   100 ///< Maximum value is actually not specified
413#endif
414#endif
415
416#define COEF_REMAIN_BIN_REDUCTION        3 ///< indicates the level at which the VLC
417                                           ///< transitions from Golomb-Rice to TU+EG(k)
418
419#define CU_DQP_TU_CMAX 5                   ///< max number bins for truncated unary
420#define CU_DQP_EG_k 0                      ///< expgolomb order
421
422#define SBH_THRESHOLD                    4  ///< I0156: value of the fixed SBH controlling threshold
423 
424#define SEQUENCE_LEVEL_LOSSLESS           0  ///< H0530: used only for sequence or frame-level lossless coding
425
426#define DISABLING_CLIP_FOR_BIPREDME         1  ///< Ticket #175
427 
428#define C1FLAG_NUMBER               8 // maximum number of largerThan1 flag coded in one chunk :  16 in HM5
429#define C2FLAG_NUMBER               1 // maximum number of largerThan2 flag coded in one chunk:  16 in HM5
430
431#define REMOVE_SAO_LCU_ENC_CONSTRAINTS_3 1  ///< disable the encoder constraint that conditionally disable SAO for chroma for entire slice in interleaved mode
432
433#define SAO_ENCODING_CHOICE              1  ///< I0184: picture early termination
434#if SAO_ENCODING_CHOICE
435#define SAO_ENCODING_RATE                0.75
436#define SAO_ENCODING_CHOICE_CHROMA       1 ///< J0044: picture early termination Luma and Chroma are handled separately
437#if SAO_ENCODING_CHOICE_CHROMA
438#define SAO_ENCODING_RATE_CHROMA         0.5
439#endif
440#endif
441
442#define MAX_NUM_VPS                16
443#define MAX_NUM_SPS                16
444#define MAX_NUM_PPS                64
445
446
447
448#define WEIGHTED_CHROMA_DISTORTION  1   ///< F386: weighting of chroma for RDO
449#define RDOQ_CHROMA_LAMBDA          1   ///< F386: weighting of chroma for RDOQ
450#define SAO_CHROMA_LAMBDA           1   ///< F386: weighting of chroma for SAO
451
452#define MIN_SCAN_POS_CROSS          4
453
454#define FAST_BIT_EST                1   ///< G763: Table-based bit estimation for CABAC
455
456#define MLS_GRP_NUM                         64     ///< G644 : Max number of coefficient groups, max(16, 64)
457#define MLS_CG_SIZE                         4      ///< G644 : Coefficient group size of 4x4
458
459#define ADAPTIVE_QP_SELECTION               1      ///< G382: Adaptive reconstruction levels, non-normative part for adaptive QP selection
460#if ADAPTIVE_QP_SELECTION
461#define ARL_C_PRECISION                     7      ///< G382: 7-bit arithmetic precision
462#define LEVEL_RANGE                         30     ///< G382: max coefficient level in statistics collection
463#endif
464
465#define NS_HAD                               0
466
467#define HHI_RQT_INTRA_SPEEDUP             1           ///< tests one best mode with full rqt
468#define HHI_RQT_INTRA_SPEEDUP_MOD         0           ///< tests two best modes with full rqt
469
470#if HHI_RQT_INTRA_SPEEDUP_MOD && !HHI_RQT_INTRA_SPEEDUP
471#error
472#endif
473
474#define VERBOSE_RATE 0 ///< Print additional rate information in encoder
475
476#define AMVP_DECIMATION_FACTOR            4
477
478#define SCAN_SET_SIZE                     16
479#define LOG2_SCAN_SET_SIZE                4
480
481#define FAST_UDI_MAX_RDMODE_NUM               35          ///< maximum number of RD comparison in fast-UDI estimation loop
482
483#define ZERO_MVD_EST                          0           ///< Zero Mvd Estimation in normal mode
484
485#define NUM_INTRA_MODE 36
486#if !REMOVE_LM_CHROMA
487#define LM_CHROMA_IDX  35
488#endif
489
490#define WRITE_BACK                      1           ///< Enable/disable the encoder to replace the deltaPOC and Used by current from the config file with the values derived by the refIdc parameter.
491#define AUTO_INTER_RPS                  1           ///< Enable/disable the automatic generation of refIdc from the deltaPOC and Used by current from the config file.
492#define PRINT_RPS_INFO                  0           ///< Enable/disable the printing of bits used to send the RPS.
493                                                    // using one nearest frame as reference frame, and the other frames are high quality (POC%4==0) frames (1+X)
494                                                    // this should be done with encoder only decision
495                                                    // but because of the absence of reference frame management, the related code was hard coded currently
496
497#define RVM_VCEGAM10_M 4
498
499#define PLANAR_IDX             0
500#define VER_IDX                26                    // index for intra VERTICAL   mode
501#define HOR_IDX                10                    // index for intra HORIZONTAL mode
502#define DC_IDX                 1                     // index for intra DC mode
503#define NUM_CHROMA_MODE        5                     // total number of chroma modes
504#define DM_CHROMA_IDX          36                    // chroma mode index for derived from luma intra mode
505
506
507#define FAST_UDI_USE_MPM 1
508
509#define RDO_WITHOUT_DQP_BITS              0           ///< Disable counting dQP bits in RDO-based mode decision
510
511#define FULL_NBIT 0 ///< When enabled, compute costs using full sample bitdepth.  When disabled, compute costs as if it is 8-bit source video.
512#if FULL_NBIT
513# define DISTORTION_PRECISION_ADJUSTMENT(x) 0
514#else
515# define DISTORTION_PRECISION_ADJUSTMENT(x) (x)
516#endif
517
518#define LOG2_MAX_NUM_COLUMNS_MINUS1        7
519#define LOG2_MAX_NUM_ROWS_MINUS1           7
520#define LOG2_MAX_COLUMN_WIDTH              13
521#define LOG2_MAX_ROW_HEIGHT                13
522
523#define MATRIX_MULT                             0   // Brute force matrix multiplication instead of partial butterfly
524
525#define REG_DCT 65535
526
527#define AMP_SAD                               1           ///< dedicated SAD functions for AMP
528#define AMP_ENC_SPEEDUP                       1           ///< encoder only speed-up by AMP mode skipping
529#if AMP_ENC_SPEEDUP
530#define AMP_MRG                               1           ///< encoder only force merge for AMP partition (no motion search for AMP)
531#endif
532
533#define SCALING_LIST_OUTPUT_RESULT    0 //JCTVC-G880/JCTVC-G1016 quantization matrices
534
535#define CABAC_INIT_PRESENT_FLAG     1
536
537// ====================================================================================================================
538// Basic type redefinition
539// ====================================================================================================================
540
541typedef       void                Void;
542typedef       bool                Bool;
543
544typedef       char                Char;
545typedef       unsigned char       UChar;
546typedef       short               Short;
547typedef       unsigned short      UShort;
548typedef       int                 Int;
549typedef       unsigned int        UInt;
550typedef       double              Double;
551typedef       float               Float;
552
553// ====================================================================================================================
554// 64-bit integer type
555// ====================================================================================================================
556
557#ifdef _MSC_VER
558typedef       __int64             Int64;
559
560#if _MSC_VER <= 1200 // MS VC6
561typedef       __int64             UInt64;   // MS VC6 does not support unsigned __int64 to double conversion
562#else
563typedef       unsigned __int64    UInt64;
564#endif
565
566#else
567
568typedef       long long           Int64;
569typedef       unsigned long long  UInt64;
570
571#endif
572
573// ====================================================================================================================
574// Type definition
575// ====================================================================================================================
576
577typedef       UChar           Pxl;        ///< 8-bit pixel type
578typedef       Short           Pel;        ///< 16-bit pixel type
579typedef       Int             TCoeff;     ///< transform coefficient
580
581#if H_3D_VSO
582// ====================================================================================================================
583// Define Distortion Types
584// ====================================================================================================================
585typedef       Int64           RMDist;     ///< renderer model distortion
586
587#if H_3D_VSO_DIST_INT
588typedef       Int64            Dist;       ///< RDO distortion
589typedef       Int64            Dist64; 
590#define       RDO_DIST_MIN     MIN_INT
591#define       RDO_DIST_MAX     MAX_INT
592#else
593typedef       UInt             Dist;       ///< RDO distortion
594typedef       UInt64           Dist; 
595#define       RDO_DIST_MIN     0
596#define       RDO_DIST_MAX     MAX_UINT
597#endif
598#endif
599/// parameters for adaptive loop filter
600class TComPicSym;
601
602// Slice / Slice segment encoding modes
603enum SliceConstraint
604{
605  NO_SLICES              = 0,          ///< don't use slices / slice segments
606  FIXED_NUMBER_OF_LCU    = 1,          ///< Limit maximum number of largest coding tree blocks in a slice / slice segments
607  FIXED_NUMBER_OF_BYTES  = 2,          ///< Limit maximum number of bytes in a slice / slice segment
608  FIXED_NUMBER_OF_TILES  = 3,          ///< slices / slice segments span an integer number of tiles
609};
610
611#define NUM_DOWN_PART 4
612
613enum SAOTypeLen
614{
615  SAO_EO_LEN    = 4, 
616  SAO_BO_LEN    = 4,
617  SAO_MAX_BO_CLASSES = 32
618};
619
620enum SAOType
621{
622  SAO_EO_0 = 0, 
623  SAO_EO_1,
624  SAO_EO_2, 
625  SAO_EO_3,
626  SAO_BO,
627  MAX_NUM_SAO_TYPE
628};
629
630typedef struct _SaoQTPart
631{
632  Int         iBestType;
633  Int         iLength;
634  Int         subTypeIdx ;                 ///< indicates EO class or BO band position
635  Int         iOffset[4];
636  Int         StartCUX;
637  Int         StartCUY;
638  Int         EndCUX;
639  Int         EndCUY;
640
641  Int         PartIdx;
642  Int         PartLevel;
643  Int         PartCol;
644  Int         PartRow;
645
646  Int         DownPartsIdx[NUM_DOWN_PART];
647  Int         UpPartIdx;
648
649  Bool        bSplit;
650
651  //---- encoder only start -----//
652  Bool        bProcessed;
653  Double      dMinCost;
654  Int64       iMinDist;
655  Int         iMinRate;
656  //---- encoder only end -----//
657} SAOQTPart;
658
659typedef struct _SaoLcuParam
660{
661  Bool       mergeUpFlag;
662  Bool       mergeLeftFlag;
663  Int        typeIdx;
664  Int        subTypeIdx;                  ///< indicates EO class or BO band position
665  Int        offset[4];
666  Int        partIdx;
667  Int        partIdxTmp;
668  Int        length;
669} SaoLcuParam;
670
671struct SAOParam
672{
673  Bool       bSaoFlag[2];
674  SAOQTPart* psSaoPart[3];
675  Int        iMaxSplitLevel;
676  Bool         oneUnitFlag[3];
677  SaoLcuParam* saoLcuParam[3];
678  Int          numCuInHeight;
679  Int          numCuInWidth;
680  ~SAOParam();
681};
682
683/// parameters for deblocking filter
684typedef struct _LFCUParam
685{
686  Bool bInternalEdge;                     ///< indicates internal edge
687  Bool bLeftEdge;                         ///< indicates left edge
688  Bool bTopEdge;                          ///< indicates top edge
689} LFCUParam;
690
691// ====================================================================================================================
692// Enumeration
693// ====================================================================================================================
694
695/// supported slice type
696enum SliceType
697{
698  B_SLICE,
699  P_SLICE,
700  I_SLICE
701};
702
703/// chroma formats (according to semantics of chroma_format_idc)
704enum ChromaFormat
705{
706  CHROMA_400  = 0,
707  CHROMA_420  = 1,
708  CHROMA_422  = 2,
709  CHROMA_444  = 3
710};
711
712/// supported partition shape
713enum PartSize
714{
715  SIZE_2Nx2N,           ///< symmetric motion partition,  2Nx2N
716  SIZE_2NxN,            ///< symmetric motion partition,  2Nx N
717  SIZE_Nx2N,            ///< symmetric motion partition,   Nx2N
718  SIZE_NxN,             ///< symmetric motion partition,   Nx N
719  SIZE_2NxnU,           ///< asymmetric motion partition, 2Nx( N/2) + 2Nx(3N/2)
720  SIZE_2NxnD,           ///< asymmetric motion partition, 2Nx(3N/2) + 2Nx( N/2)
721  SIZE_nLx2N,           ///< asymmetric motion partition, ( N/2)x2N + (3N/2)x2N
722  SIZE_nRx2N,           ///< asymmetric motion partition, (3N/2)x2N + ( N/2)x2N
723  SIZE_NONE = 15
724};
725
726/// supported prediction type
727enum PredMode
728{
729  MODE_INTER,           ///< inter-prediction mode
730  MODE_INTRA,           ///< intra-prediction mode
731  MODE_NONE = 15
732};
733
734/// texture component type
735enum TextType
736{
737  TEXT_LUMA,            ///< luma
738  TEXT_CHROMA,          ///< chroma (U+V)
739  TEXT_CHROMA_U,        ///< chroma U
740  TEXT_CHROMA_V,        ///< chroma V
741  TEXT_ALL,             ///< Y+U+V
742  TEXT_NONE = 15
743};
744
745/// reference list index
746enum RefPicList
747{
748  REF_PIC_LIST_0 = 0,   ///< reference list 0
749  REF_PIC_LIST_1 = 1,   ///< reference list 1
750  REF_PIC_LIST_X = 100  ///< special mark
751};
752
753/// distortion function index
754enum DFunc
755{
756  DF_DEFAULT  = 0,
757  DF_SSE      = 1,      ///< general size SSE
758  DF_SSE4     = 2,      ///<   4xM SSE
759  DF_SSE8     = 3,      ///<   8xM SSE
760  DF_SSE16    = 4,      ///<  16xM SSE
761  DF_SSE32    = 5,      ///<  32xM SSE
762  DF_SSE64    = 6,      ///<  64xM SSE
763  DF_SSE16N   = 7,      ///< 16NxM SSE
764 
765  DF_SAD      = 8,      ///< general size SAD
766  DF_SAD4     = 9,      ///<   4xM SAD
767  DF_SAD8     = 10,     ///<   8xM SAD
768  DF_SAD16    = 11,     ///<  16xM SAD
769  DF_SAD32    = 12,     ///<  32xM SAD
770  DF_SAD64    = 13,     ///<  64xM SAD
771  DF_SAD16N   = 14,     ///< 16NxM SAD
772 
773  DF_SADS     = 15,     ///< general size SAD with step
774  DF_SADS4    = 16,     ///<   4xM SAD with step
775  DF_SADS8    = 17,     ///<   8xM SAD with step
776  DF_SADS16   = 18,     ///<  16xM SAD with step
777  DF_SADS32   = 19,     ///<  32xM SAD with step
778  DF_SADS64   = 20,     ///<  64xM SAD with step
779  DF_SADS16N  = 21,     ///< 16NxM SAD with step
780 
781  DF_HADS     = 22,     ///< general size Hadamard with step
782  DF_HADS4    = 23,     ///<   4xM HAD with step
783  DF_HADS8    = 24,     ///<   8xM HAD with step
784  DF_HADS16   = 25,     ///<  16xM HAD with step
785  DF_HADS32   = 26,     ///<  32xM HAD with step
786  DF_HADS64   = 27,     ///<  64xM HAD with step
787  DF_HADS16N  = 28,     ///< 16NxM HAD with step
788#if H_3D_VSO
789  DF_VSD      = 29,      ///< general size VSD
790  DF_VSD4     = 30,      ///<   4xM VSD
791  DF_VSD8     = 31,      ///<   8xM VSD
792  DF_VSD16    = 32,      ///<  16xM VSD
793  DF_VSD32    = 33,      ///<  32xM VSD
794  DF_VSD64    = 34,      ///<  64xM VSD
795  DF_VSD16N   = 35,      ///< 16NxM VSD
796#endif
797
798#if AMP_SAD
799  DF_SAD12    = 43,
800  DF_SAD24    = 44,
801  DF_SAD48    = 45,
802
803  DF_SADS12   = 46,
804  DF_SADS24   = 47,
805  DF_SADS48   = 48,
806
807  DF_SSE_FRAME = 50     ///< Frame-based SSE
808#else
809  DF_SSE_FRAME = 33     ///< Frame-based SSE
810#endif
811};
812
813/// index for SBAC based RD optimization
814enum CI_IDX
815{
816  CI_CURR_BEST = 0,     ///< best mode index
817  CI_NEXT_BEST,         ///< next best index
818  CI_TEMP_BEST,         ///< temporal index
819  CI_CHROMA_INTRA,      ///< chroma intra index
820  CI_QT_TRAFO_TEST,
821  CI_QT_TRAFO_ROOT,
822  CI_NUM,               ///< total number
823};
824
825/// motion vector predictor direction used in AMVP
826enum MVP_DIR
827{
828  MD_LEFT = 0,          ///< MVP of left block
829  MD_ABOVE,             ///< MVP of above block
830  MD_ABOVE_RIGHT,       ///< MVP of above right block
831  MD_BELOW_LEFT,        ///< MVP of below left block
832  MD_ABOVE_LEFT         ///< MVP of above left block
833};
834
835/// coefficient scanning type used in ACS
836enum COEFF_SCAN_TYPE
837{
838  SCAN_DIAG = 0,         ///< up-right diagonal scan
839  SCAN_HOR,              ///< horizontal first scan
840  SCAN_VER               ///< vertical first scan
841};
842
843namespace Profile
844{
845  enum Name
846  {
847    NONE = 0,
848    MAIN = 1,
849    MAIN10 = 2,
850    MAINSTILLPICTURE = 3,
851#if H_MV
852    MAINSTEREO = 4,
853    MAINMULTIVIEW = 5,
854#if H_3D
855    MAIN3D = 6, 
856#endif
857#endif
858  };
859}
860
861namespace Level
862{
863  enum Tier
864  {
865    MAIN = 0,
866    HIGH = 1,
867  };
868
869  enum Name
870  {
871    NONE     = 0,
872    LEVEL1   = 30,
873    LEVEL2   = 60,
874    LEVEL2_1 = 63,
875    LEVEL3   = 90,
876    LEVEL3_1 = 93,
877    LEVEL4   = 120,
878    LEVEL4_1 = 123,
879    LEVEL5   = 150,
880    LEVEL5_1 = 153,
881    LEVEL5_2 = 156,
882    LEVEL6   = 180,
883    LEVEL6_1 = 183,
884    LEVEL6_2 = 186,
885  };
886}
887//! \}
888
889#if H_MV
890
891#if H_MV_6_PSEM_O0142_3
892  enum PsExtensionTypes
893  {
894    PS_EX_T_MV   = 1,
895#if H_3D
896    PS_EX_T_3D   = 3,
897#endif
898    PS_EX_T_ESC  = 7,
899    PS_EX_T_MAX_NUM = 8
900  };
901#endif
902
903/// scalability types
904  enum ScalabilityType
905  {
906#if H_3D
907    DEPTH_ID = 0,   
908#endif   
909    VIEW_ORDER_INDEX  = 1,
910  };
911#endif
912#if H_3D
913  // Renderer
914  enum BlenMod
915  {
916    BLEND_NONE  = -1,
917    BLEND_AVRG  = 0,
918    BLEND_LEFT  = 1,
919    BLEND_RIGHT = 2,
920    BLEND_GEN   =  3
921  };
922
923 
924  enum
925  {
926    VIEWPOS_INVALID = -1,
927    VIEWPOS_LEFT    = 0,
928    VIEWPOS_RIGHT   = 1,
929    VIEWPOS_MERGED  = 2
930  };
931
932
933#endif
934#endif
Note: See TracBrowser for help on using the repository browser.