[5] | 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 |
---|
[56] | 4 | * granted under this license. |
---|
[5] | 5 | * |
---|
[872] | 6 | * Copyright (c) 2010-2014, ITU/ISO/IEC |
---|
[5] | 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. |
---|
[56] | 17 | * * Neither the name of the ITU/ISO/IEC nor the names of its contributors may |
---|
[5] | 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 | */ |
---|
[2] | 33 | |
---|
| 34 | /** \file TComRom.h |
---|
| 35 | \brief global variables & functions (header) |
---|
| 36 | */ |
---|
| 37 | |
---|
| 38 | #ifndef __TCOMROM__ |
---|
| 39 | #define __TCOMROM__ |
---|
| 40 | |
---|
| 41 | #include "CommonDef.h" |
---|
[608] | 42 | #include "TypeDef.h" |
---|
[2] | 43 | |
---|
| 44 | #include<stdio.h> |
---|
| 45 | #include<iostream> |
---|
| 46 | |
---|
[608] | 47 | #if H_3D_DIM |
---|
[2] | 48 | #include "TComWedgelet.h" |
---|
| 49 | #endif |
---|
| 50 | |
---|
[56] | 51 | //! \ingroup TLibCommon |
---|
| 52 | //! \{ |
---|
| 53 | |
---|
[2] | 54 | // ==================================================================================================================== |
---|
| 55 | // Macros |
---|
| 56 | // ==================================================================================================================== |
---|
| 57 | |
---|
[655] | 58 | #define MAX_CU_DEPTH 6 // log2(LCUSize) |
---|
[2] | 59 | #define MAX_CU_SIZE (1<<(MAX_CU_DEPTH)) // maximum allowable size of CU |
---|
| 60 | #define MIN_PU_SIZE 4 |
---|
| 61 | #define MAX_NUM_SPU_W (MAX_CU_SIZE/MIN_PU_SIZE) // maximum number of SPU in horizontal line |
---|
| 62 | |
---|
| 63 | // ==================================================================================================================== |
---|
| 64 | // Initialize / destroy functions |
---|
| 65 | // ==================================================================================================================== |
---|
| 66 | |
---|
| 67 | Void initROM(); |
---|
| 68 | Void destroyROM(); |
---|
[608] | 69 | Void initSigLastScan(UInt* pBuffD, UInt* pBuffH, UInt* pBuffV, Int iWidth, Int iHeight); |
---|
[2] | 70 | // ==================================================================================================================== |
---|
| 71 | // Data structure related table & variable |
---|
| 72 | // ==================================================================================================================== |
---|
| 73 | |
---|
| 74 | // flexible conversion from relative to absolute index |
---|
| 75 | extern UInt g_auiZscanToRaster[ MAX_NUM_SPU_W*MAX_NUM_SPU_W ]; |
---|
| 76 | extern UInt g_auiRasterToZscan[ MAX_NUM_SPU_W*MAX_NUM_SPU_W ]; |
---|
| 77 | |
---|
| 78 | Void initZscanToRaster ( Int iMaxDepth, Int iDepth, UInt uiStartVal, UInt*& rpuiCurrIdx ); |
---|
| 79 | Void initRasterToZscan ( UInt uiMaxCUWidth, UInt uiMaxCUHeight, UInt uiMaxDepth ); |
---|
| 80 | |
---|
| 81 | // conversion of partition index to picture pel position |
---|
| 82 | extern UInt g_auiRasterToPelX[ MAX_NUM_SPU_W*MAX_NUM_SPU_W ]; |
---|
| 83 | extern UInt g_auiRasterToPelY[ MAX_NUM_SPU_W*MAX_NUM_SPU_W ]; |
---|
| 84 | |
---|
| 85 | Void initRasterToPelXY ( UInt uiMaxCUWidth, UInt uiMaxCUHeight, UInt uiMaxDepth ); |
---|
| 86 | |
---|
| 87 | // global variable (LCU width/height, max. CU depth) |
---|
| 88 | extern UInt g_uiMaxCUWidth; |
---|
| 89 | extern UInt g_uiMaxCUHeight; |
---|
| 90 | extern UInt g_uiMaxCUDepth; |
---|
| 91 | extern UInt g_uiAddCUDepth; |
---|
| 92 | |
---|
[608] | 93 | #define MAX_TS_WIDTH 4 |
---|
| 94 | #define MAX_TS_HEIGHT 4 |
---|
| 95 | |
---|
[56] | 96 | extern UInt g_auiPUOffset[8]; |
---|
[2] | 97 | |
---|
| 98 | #define QUANT_IQUANT_SHIFT 20 // Q(QP%6) * IQ(QP%6) = 2^20 |
---|
| 99 | #define QUANT_SHIFT 14 // Q(4) = 2^14 |
---|
| 100 | #define SCALE_BITS 15 // Inherited from TMuC, pressumably for fractional bit estimates in RDOQ |
---|
| 101 | #define MAX_TR_DYNAMIC_RANGE 15 // Maximum transform dynamic range (excluding sign bit) |
---|
| 102 | |
---|
| 103 | #define SHIFT_INV_1ST 7 // Shift after first inverse transform stage |
---|
| 104 | #define SHIFT_INV_2ND 12 // Shift after second inverse transform stage |
---|
| 105 | |
---|
[56] | 106 | extern Int g_quantScales[6]; // Q(QP%6) |
---|
| 107 | extern Int g_invQuantScales[6]; // IQ(QP%6) |
---|
[608] | 108 | extern const Short g_aiT4[4][4]; |
---|
| 109 | extern const Short g_aiT8[8][8]; |
---|
| 110 | extern const Short g_aiT16[16][16]; |
---|
| 111 | extern const Short g_aiT32[32][32]; |
---|
[2] | 112 | |
---|
| 113 | // ==================================================================================================================== |
---|
| 114 | // Luma QP to Chroma QP mapping |
---|
| 115 | // ==================================================================================================================== |
---|
| 116 | |
---|
[608] | 117 | extern const UChar g_aucChromaScale [58]; |
---|
[2] | 118 | |
---|
| 119 | // ==================================================================================================================== |
---|
| 120 | // Scanning order & context mapping table |
---|
| 121 | // ==================================================================================================================== |
---|
| 122 | |
---|
[608] | 123 | extern UInt* g_auiSigLastScan[ 3 ][ MAX_CU_DEPTH ]; // raster index from scanning index (diag, hor, ver) |
---|
[2] | 124 | |
---|
[56] | 125 | extern const UInt g_uiGroupIdx[ 32 ]; |
---|
| 126 | extern const UInt g_uiMinInGroup[ 10 ]; |
---|
| 127 | |
---|
[608] | 128 | extern const UInt g_sigLastScan8x8[ 3 ][ 4 ]; //!< coefficient group scan order for 8x8 TUs |
---|
[56] | 129 | extern UInt g_sigLastScanCG32x32[ 64 ]; |
---|
[2] | 130 | |
---|
| 131 | // ==================================================================================================================== |
---|
| 132 | // ADI table |
---|
| 133 | // ==================================================================================================================== |
---|
| 134 | |
---|
[655] | 135 | extern const UChar g_aucIntraModeNumFast[ MAX_CU_DEPTH ]; |
---|
[2] | 136 | |
---|
| 137 | // ==================================================================================================================== |
---|
| 138 | // Bit-depth |
---|
| 139 | // ==================================================================================================================== |
---|
| 140 | |
---|
[608] | 141 | extern Int g_bitDepthY; |
---|
| 142 | extern Int g_bitDepthC; |
---|
[56] | 143 | extern UInt g_uiPCMBitDepthLuma; |
---|
| 144 | extern UInt g_uiPCMBitDepthChroma; |
---|
[2] | 145 | |
---|
| 146 | // ==================================================================================================================== |
---|
| 147 | // Texture type to integer mapping |
---|
| 148 | // ==================================================================================================================== |
---|
| 149 | |
---|
| 150 | extern const UChar g_aucConvertTxtTypeToIdx[4]; |
---|
| 151 | |
---|
[608] | 152 | #if H_3D_DIM |
---|
[56] | 153 | // ==================================================================================================================== |
---|
[608] | 154 | // Depth coding modes |
---|
[56] | 155 | // ==================================================================================================================== |
---|
[608] | 156 | __inline Void mapDepthModeToIntraDir( UInt& intraMode ) { if( isDimMode( intraMode ) ) intraMode = DC_IDX; } |
---|
| 157 | __inline Void mapDepthModeToIntraDir( Int& intraMode ) { if( isDimMode( intraMode ) ) intraMode = DC_IDX; } |
---|
| 158 | |
---|
| 159 | #if H_3D_DIM_SDC || H_3D_DIM_DLT |
---|
| 160 | __inline UInt numBitsForValue( UInt value ) { UInt bits = 0; while (value != 0) { value >>= 1; bits++; } return bits; }; |
---|
[296] | 161 | #endif |
---|
[56] | 162 | |
---|
[608] | 163 | #if H_3D_DIM_DMM |
---|
| 164 | extern const WedgeResolution g_dmmWedgeResolution [6]; |
---|
| 165 | extern const UChar g_dmm1TabIdxBits [6]; |
---|
| 166 | extern const UChar g_dmm3IntraTabIdxBits[6]; |
---|
[56] | 167 | |
---|
[1039] | 168 | extern Bool g_wedgePattern[32*32]; |
---|
| 169 | |
---|
[608] | 170 | extern std::vector< std::vector<TComWedgelet> > g_dmmWedgeLists; |
---|
| 171 | extern std::vector< std::vector<TComWedgeRef> > g_dmmWedgeRefLists; |
---|
| 172 | extern std::vector< std::vector<TComWedgeNode> > g_dmmWedgeNodeLists; |
---|
[189] | 173 | |
---|
[622] | 174 | Void initWedgeLists( Bool initNodeList = false ); |
---|
[56] | 175 | Void createWedgeList( UInt uiWidth, UInt uiHeight, std::vector<TComWedgelet> &racWedgeList, std::vector<TComWedgeRef> &racWedgeRefList, WedgeResolution eWedgeRes ); |
---|
| 176 | Void addWedgeletToList( TComWedgelet cWedgelet, std::vector<TComWedgelet> &racWedgeList, std::vector<TComWedgeRef> &racWedgeRefList ); |
---|
| 177 | #endif |
---|
[100] | 178 | #endif |
---|
| 179 | |
---|
[2] | 180 | // ========================================== |
---|
| 181 | // Mode-Dependent DST Matrices |
---|
[608] | 182 | extern const Short g_as_DST_MAT_4 [4][4]; |
---|
[2] | 183 | extern const UChar g_aucDCTDSTMode_Vert[NUM_INTRA_MODE]; |
---|
| 184 | extern const UChar g_aucDCTDSTMode_Hor[NUM_INTRA_MODE]; |
---|
| 185 | // ========================================== |
---|
| 186 | |
---|
[1066] | 187 | #if H_MV_HLS_PTL_LIMITS |
---|
| 188 | class TComGeneralTierAndLevelLimits |
---|
| 189 | { |
---|
| 190 | public: |
---|
| 191 | TComGeneralTierAndLevelLimits::TComGeneralTierAndLevelLimits |
---|
| 192 | ( Int maxLumaPs, |
---|
| 193 | Int maxCPBMainTier, |
---|
| 194 | Int maxCPBHighTier, |
---|
| 195 | Int maxSliceSegmentsPerPicture, |
---|
| 196 | Int maxTileRows, |
---|
| 197 | Int maxTileCols ) |
---|
| 198 | : m_maxLumaPs ( maxLumaPs ), |
---|
| 199 | m_maxCPBMainTier ( maxCPBMainTier ), |
---|
| 200 | m_maxCPBHighTier ( maxCPBHighTier ), |
---|
| 201 | m_maxSliceSegmentsPerPicture( maxSliceSegmentsPerPicture ), |
---|
| 202 | m_maxTileRows ( maxTileRows ), |
---|
| 203 | m_maxTileCols ( maxTileCols ); |
---|
| 204 | {}; |
---|
| 205 | |
---|
| 206 | Int getMaxLumaPs ( ) { return m_maxLumaPs ; }; |
---|
| 207 | Int getMaxCPBMainTier ( ) { return m_maxCPBMainTier ; }; |
---|
| 208 | Int getMaxCPBHighTier ( ) { return m_maxCPBHighTier ; }; |
---|
| 209 | Int getMaxSliceSegmentsPerPicture( ) { return m_maxSliceSegmentsPerPicture; }; |
---|
| 210 | Int getMaxTileRows ( ) { return m_maxTileRows ; }; |
---|
| 211 | Int getMaxTileCols ( ) { return m_maxTileCols ; }; |
---|
| 212 | |
---|
| 213 | private: |
---|
| 214 | const Int m_maxLumaPs; |
---|
| 215 | const Int m_maxCPBMainTier; |
---|
| 216 | const Int m_maxCPBHighTier; |
---|
| 217 | const Int m_maxSliceSegmentsPerPicture; |
---|
| 218 | const Int m_maxTileRows; |
---|
| 219 | const Int m_maxTileCols; |
---|
| 220 | }; |
---|
| 221 | |
---|
| 222 | extern std::map< Level::Name, TComGeneralTierAndLevelLimits > g_generalTierAndLevelLimits; |
---|
| 223 | |
---|
| 224 | #endif |
---|
[2] | 225 | // ==================================================================================================================== |
---|
| 226 | // Misc. |
---|
| 227 | // ==================================================================================================================== |
---|
| 228 | |
---|
| 229 | extern Char g_aucConvertToBit [ MAX_CU_SIZE+1 ]; // from width to log2(width)-2 |
---|
[950] | 230 | |
---|
[608] | 231 | #ifndef ENC_DEC_TRACE |
---|
[622] | 232 | #define ENC_DEC_TRACE 0 |
---|
[608] | 233 | #endif |
---|
[2] | 234 | |
---|
| 235 | #if ENC_DEC_TRACE |
---|
| 236 | extern FILE* g_hTrace; |
---|
| 237 | extern Bool g_bJustDoIt; |
---|
| 238 | extern const Bool g_bEncDecTraceEnable; |
---|
| 239 | extern const Bool g_bEncDecTraceDisable; |
---|
[608] | 240 | extern Bool g_HLSTraceEnable; |
---|
[2] | 241 | extern UInt64 g_nSymbolCounter; |
---|
| 242 | |
---|
| 243 | #define COUNTER_START 1 |
---|
| 244 | #define COUNTER_END 0 //( UInt64(1) << 63 ) |
---|
| 245 | |
---|
| 246 | #define DTRACE_CABAC_F(x) if ( ( g_nSymbolCounter >= COUNTER_START && g_nSymbolCounter <= COUNTER_END )|| g_bJustDoIt ) fprintf( g_hTrace, "%f", x ); |
---|
| 247 | #define DTRACE_CABAC_V(x) if ( ( g_nSymbolCounter >= COUNTER_START && g_nSymbolCounter <= COUNTER_END )|| g_bJustDoIt ) fprintf( g_hTrace, "%d", x ); |
---|
[56] | 248 | #define DTRACE_CABAC_VL(x) if ( ( g_nSymbolCounter >= COUNTER_START && g_nSymbolCounter <= COUNTER_END )|| g_bJustDoIt ) fprintf( g_hTrace, "%lld", x ); |
---|
[2] | 249 | #define DTRACE_CABAC_T(x) if ( ( g_nSymbolCounter >= COUNTER_START && g_nSymbolCounter <= COUNTER_END )|| g_bJustDoIt ) fprintf( g_hTrace, "%s", x ); |
---|
| 250 | #define DTRACE_CABAC_X(x) if ( ( g_nSymbolCounter >= COUNTER_START && g_nSymbolCounter <= COUNTER_END )|| g_bJustDoIt ) fprintf( g_hTrace, "%x", x ); |
---|
| 251 | #define DTRACE_CABAC_R( x,y ) if ( ( g_nSymbolCounter >= COUNTER_START && g_nSymbolCounter <= COUNTER_END )|| g_bJustDoIt ) fprintf( g_hTrace, x, y ); |
---|
| 252 | #define DTRACE_CABAC_N if ( ( g_nSymbolCounter >= COUNTER_START && g_nSymbolCounter <= COUNTER_END )|| g_bJustDoIt ) fprintf( g_hTrace, "\n" ); |
---|
| 253 | |
---|
[608] | 254 | #if H_MV_ENC_DEC_TRAC |
---|
| 255 | extern Bool g_traceCU; |
---|
| 256 | extern Bool g_tracePU; |
---|
| 257 | extern Bool g_traceTU; |
---|
[622] | 258 | extern Bool g_disableHLSTrace; // USE g_HLSTraceEnable to toggle HLS trace. Not this one! |
---|
| 259 | extern UInt64 g_stopAtCounter; // Counter to set breakpoint. |
---|
| 260 | extern Bool g_traceCopyBack; // Output samples on copy back |
---|
[964] | 261 | extern Bool g_decTraceDispDer; // Trace derived disparity vectors (decoder only) |
---|
[622] | 262 | extern Bool g_decTraceMvFromMerge; // Trace motion vectors obtained from merge (decoder only) |
---|
[964] | 263 | extern Bool g_decTracePicOutput; // Trace output of pictures |
---|
[872] | 264 | extern Bool g_stopAtPos; // Stop at position |
---|
| 265 | extern Bool g_outputPos; // Output position |
---|
[608] | 266 | |
---|
| 267 | #define DTRACE_CU(x,y) writeToTraceFile( x,y, g_traceCU ); |
---|
| 268 | #define DTRACE_PU(x,y) writeToTraceFile( x,y, g_tracePU ); |
---|
| 269 | #define DTRACE_TU(x,y) writeToTraceFile( x,y, g_traceTU ); |
---|
| 270 | #define DTRACE_CU_S(x) writeToTraceFile( x, g_traceCU ); |
---|
| 271 | #define DTRACE_PU_S(x) writeToTraceFile( x, g_tracePU ); |
---|
| 272 | #define DTRACE_TU_S(x) writeToTraceFile( x, g_traceTU ); |
---|
| 273 | |
---|
[738] | 274 | Void writeToTraceFile( const Char* symbolName, Int val, Bool doIt ); |
---|
| 275 | Void writeToTraceFile( const Char* symbolName, Bool doIt ); |
---|
[872] | 276 | Void stopAtPos ( Int poc, Int layerId, Int cuPelX, Int cuPelY, Int cuWidth, Int cuHeight ); |
---|
[608] | 277 | #endif |
---|
[2] | 278 | #else |
---|
| 279 | |
---|
| 280 | #define DTRACE_CABAC_F(x) |
---|
| 281 | #define DTRACE_CABAC_V(x) |
---|
[56] | 282 | #define DTRACE_CABAC_VL(x) |
---|
[2] | 283 | #define DTRACE_CABAC_T(x) |
---|
| 284 | #define DTRACE_CABAC_X(x) |
---|
| 285 | #define DTRACE_CABAC_R( x,y ) |
---|
| 286 | #define DTRACE_CABAC_N |
---|
| 287 | |
---|
[608] | 288 | #if H_MV_ENC_DEC_TRAC |
---|
| 289 | #define DTRACE_CU(x,y) |
---|
| 290 | #define DTRACE_PU(x,y) |
---|
| 291 | #define DTRACE_TU(x,y) |
---|
| 292 | |
---|
| 293 | #define DTRACE_CU_S(x) |
---|
| 294 | #define DTRACE_PU_S(x) |
---|
| 295 | #define DTRACE_TU_S(x) |
---|
| 296 | |
---|
[2] | 297 | #endif |
---|
[608] | 298 | #endif |
---|
[2] | 299 | |
---|
| 300 | |
---|
[56] | 301 | #define SCALING_LIST_NUM 6 ///< list number for quantization matrix |
---|
| 302 | #define SCALING_LIST_NUM_32x32 2 ///< list number for quantization matrix 32x32 |
---|
| 303 | #define SCALING_LIST_REM_NUM 6 ///< remainder of QP/6 |
---|
| 304 | #define SCALING_LIST_START_VALUE 8 ///< start value for dpcm mode |
---|
| 305 | #define MAX_MATRIX_COEF_NUM 64 ///< max coefficient number for quantization matrix |
---|
| 306 | #define MAX_MATRIX_SIZE_NUM 8 ///< max size number for quantization matrix |
---|
| 307 | #define SCALING_LIST_DC 16 ///< default DC value |
---|
| 308 | enum ScalingListSize |
---|
| 309 | { |
---|
| 310 | SCALING_LIST_4x4 = 0, |
---|
| 311 | SCALING_LIST_8x8, |
---|
| 312 | SCALING_LIST_16x16, |
---|
| 313 | SCALING_LIST_32x32, |
---|
| 314 | SCALING_LIST_SIZE_NUM |
---|
| 315 | }; |
---|
[608] | 316 | static const Char MatrixType[4][6][20] = |
---|
[56] | 317 | { |
---|
[2] | 318 | { |
---|
[56] | 319 | "INTRA4X4_LUMA", |
---|
| 320 | "INTRA4X4_CHROMAU", |
---|
| 321 | "INTRA4X4_CHROMAV", |
---|
| 322 | "INTER4X4_LUMA", |
---|
| 323 | "INTER4X4_CHROMAU", |
---|
| 324 | "INTER4X4_CHROMAV" |
---|
| 325 | }, |
---|
[2] | 326 | { |
---|
[56] | 327 | "INTRA8X8_LUMA", |
---|
| 328 | "INTRA8X8_CHROMAU", |
---|
| 329 | "INTRA8X8_CHROMAV", |
---|
| 330 | "INTER8X8_LUMA", |
---|
| 331 | "INTER8X8_CHROMAU", |
---|
| 332 | "INTER8X8_CHROMAV" |
---|
| 333 | }, |
---|
[2] | 334 | { |
---|
[56] | 335 | "INTRA16X16_LUMA", |
---|
| 336 | "INTRA16X16_CHROMAU", |
---|
| 337 | "INTRA16X16_CHROMAV", |
---|
| 338 | "INTER16X16_LUMA", |
---|
| 339 | "INTER16X16_CHROMAU", |
---|
| 340 | "INTER16X16_CHROMAV" |
---|
| 341 | }, |
---|
| 342 | { |
---|
| 343 | "INTRA32X32_LUMA", |
---|
| 344 | "INTER32X32_LUMA", |
---|
| 345 | }, |
---|
| 346 | }; |
---|
[608] | 347 | static const Char MatrixType_DC[4][12][22] = |
---|
[56] | 348 | { |
---|
| 349 | { |
---|
| 350 | }, |
---|
| 351 | { |
---|
| 352 | }, |
---|
| 353 | { |
---|
| 354 | "INTRA16X16_LUMA_DC", |
---|
| 355 | "INTRA16X16_CHROMAU_DC", |
---|
| 356 | "INTRA16X16_CHROMAV_DC", |
---|
| 357 | "INTER16X16_LUMA_DC", |
---|
| 358 | "INTER16X16_CHROMAU_DC", |
---|
| 359 | "INTER16X16_CHROMAV_DC" |
---|
| 360 | }, |
---|
| 361 | { |
---|
| 362 | "INTRA32X32_LUMA_DC", |
---|
| 363 | "INTER32X32_LUMA_DC", |
---|
| 364 | }, |
---|
| 365 | }; |
---|
| 366 | extern Int g_quantIntraDefault8x8[64]; |
---|
| 367 | extern Int g_quantIntraDefault16x16[256]; |
---|
| 368 | extern Int g_quantIntraDefault32x32[1024]; |
---|
| 369 | extern Int g_quantInterDefault8x8[64]; |
---|
| 370 | extern Int g_quantInterDefault16x16[256]; |
---|
| 371 | extern Int g_quantInterDefault32x32[1024]; |
---|
[608] | 372 | extern Int g_quantTSDefault4x4[16]; |
---|
[56] | 373 | extern UInt g_scalingListSize [SCALING_LIST_SIZE_NUM]; |
---|
| 374 | extern UInt g_scalingListSizeX[SCALING_LIST_SIZE_NUM]; |
---|
| 375 | extern UInt g_scalingListNum [SCALING_LIST_SIZE_NUM]; |
---|
| 376 | extern Int g_eTTable[4]; |
---|
| 377 | //! \} |
---|
[2] | 378 | |
---|
| 379 | #endif //__TCOMROM__ |
---|
| 380 | |
---|