⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 umc_h264_dec_coeff_token_map.h

📁 这是在PCA下的基于IPP库示例代码例子,在网上下了IPP的库之后,设置相关参数就可以编译该代码.
💻 H
📖 第 1 页 / 共 2 页
字号:
/*////              INTEL CORPORATION PROPRIETARY INFORMATION//  This software is supplied under the terms of a license  agreement or//  nondisclosure agreement with Intel Corporation and may not be copied//  or disclosed except in  accordance  with the terms of that agreement.//        Copyright (c) 2003-2005 Intel Corporation. All Rights Reserved.////*/#ifndef __UMC_H264_DEC_COEFF_TOKEN_MAP_H__#define __UMC_H264_DEC_COEFF_TOKEN_MAP_H__namespace UMC{//#undef OFF////#undef SZCF////#undef SHIFT1////#undef SHIFT2////#undef TABLE_TYPE////#if defined (ARM) || defined (_ARM_)////#define OFF 60//120////#define SHIFT1 11//16////#define SHIFT2 5//8////#define SZCF 2//4////#define TABLE_TYPE unsigned short //int //////#else   //  defined (ARM) || defined (_ARM_)////#define OFF 120//60////#define SHIFT1 16//11////#define SHIFT2 8//5////#define SZCF 4//2////#define TABLE_TYPE int //unsigned short////#endif   //  defined (ARM) || defined (_ARM_)////#if !defined (ARM) && !defined (_ARM_)//Table 9 5 - coeff_token mapping to TotalCoeff( coeff_token )// and TrailingOnes( coeff_token ), 0  <=  nC  <  2, sorted by code len/*0    0    11    1    012    2    0013    3    0001 13    4    0000 111    2    0001 000    1    0001 013    5    0000 1002    3    0000 1013    6    0000 01002    4    0000 01011    3    0000 01100    2    0000 01113    7    0000 0010 02    5    0000 0010 11    4    0000 0011 00    3    0000 0011 13    8    0000 0001 002    6    0000 0001 011    5    0000 0001 100    4    0000 0001 113    9    0000 0000 1002    7    0000 0000 1011    6    0000 0000 1100    5    0000 0000 1110    8    0000 0000 0100 02    9    0000 0000 0100 11    8    0000 0000 0101 00    7    0000 0000 0101 13    10    0000 0000 0110 02    8    0000 0000 0110 11    7    0000 0000 0111 00    6    0000 0000 0111 13    12    0000 0000 0010 002    11    0000 0000 0010 011    10    0000 0000 0010 100    10    0000 0000 0010 113    11    0000 0000 0011 002    10    0000 0000 0011 011    9    0000 0000 0011 100    9    0000 0000 0011 111    13    0000 0000 0000 0013    14    0000 0000 0001 0002    13    0000 0000 0001 0011    12    0000 0000 0001 0100    12    0000 0000 0001 0113    13    0000 0000 0001 1002    12    0000 0000 0001 1011    11    0000 0000 0001 1100    11    0000 0000 0001 1110    16    0000 0000 0000 01002    16    0000 0000 0000 01011    16    0000 0000 0000 01100    15    0000 0000 0000 01113    16    0000 0000 0000 10002    15    0000 0000 0000 10011    15    0000 0000 0000 10100    14    0000 0000 0000 10113    15    0000 0000 0000 11002    14    0000 0000 0000 11011    14    0000 0000 0000 11100    13    0000 0000 0000 1111*/Ipp32s coeff_token_map_02[] ={16, /* max bits */4,  /* total subtables */3,3,3,7,/* subtable sizes */1, /* 1-bit codes */0x0001, 0, 0,1, /* 2-bit codes */0x0001, 1, 1,1, /* 3-bit codes */0x0001, 2, 2,0, /* 4-bit codes */1, /* 5-bit codes */0x0003, 3, 3,3, /* 6-bit codes */0x0003, 3, 4, 0x0004, 1, 2, 0x0005, 0, 1,2, /* 7-bit codes */0x0004, 3, 5, 0x0005, 2, 3,4, /* 8-bit codes */0x0004, 3, 6, 0x0005, 2, 4, 0x0006, 1, 3, 0x0007, 0, 2,4, /* 9-bit codes */0x0004, 3, 7, 0x0005, 2, 5, 0x0006, 1, 4, 0x0007, 0, 3,4, /* 10-bit codes */0x0004, 3, 8, 0x0005, 2, 6, 0x0006, 1, 5, 0x0007, 0, 4,4, /* 11-bit codes */0x0004, 3, 9, 0x0005, 2, 7, 0x0006, 1, 6, 0x0007, 0, 5,0, /* 12-bit codes */8, /* 13-bit codes */0x0008, 0, 8, 0x0009, 2, 9, 0x000a, 1, 8, 0x000b, 0, 7,0x000c, 3, 10,0x000d, 2, 8, 0x000e, 1, 7, 0x000f, 0, 6,8, /* 14-bit codes */0x0008, 3, 12, 0x0009, 2, 11, 0x000a, 1, 10, 0x000b, 0, 10,0x000c, 3, 11, 0x000d, 2, 10, 0x000e, 1, 9, 0x000f, 0, 9,9, /* 15-bit codes */0x0001, 1, 13, 0x0008, 3, 14, 0x0009, 2, 13, 0x000a, 1, 12,0x000b, 0, 12, 0x000c, 3, 13, 0x000d, 2, 12, 0x000e, 1, 11,0x000f, 0, 11,12, /* 16-bit codes */0x0004, 0, 16, 0x0005, 2, 16, 0x0006, 1, 16, 0x0007, 0, 15,0x0008, 3, 16, 0x0009, 2, 15, 0x000a, 1, 15, 0x000b, 0, 14,0x000c, 3, 15, 0x000d, 2, 14, 0x000e, 1, 14, 0x000f, 0, 13,-1};/*#undef OFF#define OFF 120//60//#undef SZCF#define SZCF 4//2//#undef SHIFT1#define SHIFT1 16//11//#undef SHIFT2#define SHIFT2 8//5//#undef TABLE_TYPE#define TABLE_TYPE int //unsigned short*///Table 9 5 - coeff_token mapping to TotalCoeff( coeff_token )// and TrailingOnes( coeff_token ), 2  <=  nC  <  4, sorted by code len/*1    1    100    0    112    2    0113    4    01003    3    01013    5    0011 01    2    0011 13    7    0001 002    4    0001 011    4    0001 100    2    0001 113    6    0010 002    3    0010 011    3    0010 100    1    0010 113    8    0000 1002    5    0000 1011    5    0000 1100    3    0000 1110    5    0000 01002    6    0000 01011    6    0000 01100    4    0000 01113    9    0000 0010 02    7    0000 0010 11    7    0000 0011 00    6    0000 0011 13    11    0000 0001 0002    9    0000 0001 0011    9    0000 0001 0100    8    0000 0001 0113    10    0000 0001 1002    8    0000 0001 1011    8    0000 0001 1100    7    0000 0001 1110    11    0000 0000 10002    11    0000 0000 10011    11    0000 0000 10100    10    0000 0000 10113    12    0000 0000 11002    10    0000 0000 11011    10    0000 0000 11100    9    0000 0000 11113    15    0000 0000 0000 12    14    0000 0000 0011 00    14    0000 0000 0011 13    14    0000 0000 0100 02    13    0000 0000 0100 11    13    0000 0000 0101 00    13    0000 0000 0101 13    13    0000 0000 0110 02    12    0000 0000 0110 11    12    0000 0000 0111 00    12    0000 0000 0111 13    16    0000 0000 0001 002    16    0000 0000 0001 011    16    0000 0000 0001 100    16    0000 0000 0001 111    15    0000 0000 0010 000    15    0000 0000 0010 012    15    0000 0000 0010 101    14    0000 0000 0010 11*/Ipp32s coeff_token_map_24[] ={14, /* max bits */3,  /* total subtables */3,4,7,/* subtable sizes */0, /* 1-bit codes */2, /* 2-bit codes */0x0002, 1, 1, 0x0003, 0, 0,1, /* 3-bit codes */0x0003, 2, 2,2, /* 4-bit codes */0x0004, 3, 4, 0x0005, 3, 3,2, /* 5-bit codes */0x0006, 3, 5, 0x0007, 1, 2,8, /* 6-bit codes */0x0004, 3, 7, 0x0005, 2, 4, 0x0006, 1, 4, 0x0007, 0, 2,0x0008, 3, 6, 0x0009, 2, 3, 0x000a, 1, 3, 0x000b, 0, 1,4, /* 7-bit codes */0x0004, 3, 8, 0x0005, 2, 5, 0x0006, 1, 5, 0x0007, 0, 3,4, /* 8-bit codes */0x0004, 0, 5, 0x0005, 2, 6, 0x0006, 1, 6, 0x0007, 0, 4,4, /* 9-bit codes */0x0004, 3, 9, 0x0005, 2, 7, 0x0006, 1, 7, 0x0007, 0, 6,0, /* 10-bit codes */8, /* 11-bit codes */0x0008, 3, 11, 0x0009, 2, 9, 0x000a, 1, 9,  0x000b, 0, 8,0x000c, 3, 10, 0x000d, 2, 8, 0x000e, 1, 8,  0x000f, 0, 7,8, /* 12-bit codes */0x0008, 0, 11, 0x0009, 2, 11, 0x000a, 1, 11, 0x000b, 0, 10,0x000c, 3, 12, 0x000d, 2, 10, 0x000e, 1, 10, 0x000f, 0, 9,11, /* 13-bit codes */0x0001, 3, 15, 0x0006, 2, 14, 0x0007, 0, 14, 0x0008, 3, 14,0x0009, 2, 13, 0x000a, 1, 13, 0x000b, 0, 13, 0x000c, 3, 13,0x000d, 2, 12, 0x000e, 1, 12, 0x000f, 0, 12,8, /* 14-bit codes */0x0004, 3, 16, 0x0005, 2, 16, 0x0006, 1, 16, 0x0007, 0, 16,0x0008, 1, 15, 0x0009, 0, 15, 0x000a, 2, 15, 0x000b, 1, 14,-1};//Table 9 5 - coeff_token mapping to TotalCoeff( coeff_token )// and TrailingOnes( coeff_token ), 4  <=  nC  <  8, sorted by code len/*3    7    10003    6    10013    5    10103    4    10113    3    11002    2    11011    1    11100    0    11111    5    0100 02    5    0100 11    4    0101 02    4    0101 11    3    0110 03    8    0110 12    3    0111 01    2    0111 10    3    0010 002    7    0010 011    7    0010 100    2    0010 113    9    0011 002    6    0011 011    6    0011 100    1    0011 110    7    0001 0000    6    0001 0012    9    0001 0100    5    0001 0113    10    0001 1002    8    0001 1011    8    0001 1100    4    0001 1113    12    0000 10002    11    0000 10011    10    0000 10100    9    0000 10113    11    0000 1100

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -