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

📄 consts.h

📁 传输流分析
💻 H
📖 第 1 页 / 共 2 页
字号:
/* Table B-13, variable length codes for dct_dc_size_chrominance * * indexed by [dct_dc_size_chrominance] */EXTERN sVLCtable DCchromtab[12]={  {0x0000,2}, {0x0001,2}, {0x0002,2}, {0x0006,3}, {0x000e,4}, {0x001e,5},  {0x003e,6}, {0x007e,7}, {0x00fe,8}, {0x01fe,9}, {0x03fe,10},{0x03ff,10}};/* Table B-14, DCT coefficients table zero * * indexed by [run][level-1] * split into two tables (dct_code_tab1, dct_code_tab2) to reduce size * 'first DCT coefficient' condition and 'End of Block' are treated elsewhere * codes do not include s (sign bit) */EXTERN VLCtable dct_code_tab1[2][40]={ /* run = 0, level = 1...40 */ {  {0x03, 2}, {0x04, 4}, {0x05, 5}, {0x06, 7},  {0x26, 8}, {0x21, 8}, {0x0a,10}, {0x1d,12},  {0x18,12}, {0x13,12}, {0x10,12}, {0x1a,13},  {0x19,13}, {0x18,13}, {0x17,13}, {0x1f,14},  {0x1e,14}, {0x1d,14}, {0x1c,14}, {0x1b,14},  {0x1a,14}, {0x19,14}, {0x18,14}, {0x17,14},  {0x16,14}, {0x15,14}, {0x14,14}, {0x13,14},  {0x12,14}, {0x11,14}, {0x10,14}, {0x18,15},  {0x17,15}, {0x16,15}, {0x15,15}, {0x14,15},  {0x13,15}, {0x12,15}, {0x11,15}, {0x10,15} }, /* run = 1, level = 1...18 */ {  {0x03, 3}, {0x06, 6}, {0x25, 8}, {0x0c,10},  {0x1b,12}, {0x16,13}, {0x15,13}, {0x1f,15},  {0x1e,15}, {0x1d,15}, {0x1c,15}, {0x1b,15},  {0x1a,15}, {0x19,15}, {0x13,16}, {0x12,16},  {0x11,16}, {0x10,16}, {0x00, 0}, {0x00, 0},  {0x00, 0}, {0x00, 0}, {0x00, 0}, {0x00, 0},  {0x00, 0}, {0x00, 0}, {0x00, 0}, {0x00, 0},  {0x00, 0}, {0x00, 0}, {0x00, 0}, {0x00, 0},  {0x00, 0}, {0x00, 0}, {0x00, 0}, {0x00, 0},  {0x00, 0}, {0x00, 0}, {0x00, 0}, {0x00, 0} }};EXTERN VLCtable dct_code_tab2[30][5]={  /* run = 2...31, level = 1...5 */  {{0x05, 4}, {0x04, 7}, {0x0b,10}, {0x14,12}, {0x14,13}},  {{0x07, 5}, {0x24, 8}, {0x1c,12}, {0x13,13}, {0x00, 0}},  {{0x06, 5}, {0x0f,10}, {0x12,12}, {0x00, 0}, {0x00, 0}},  {{0x07, 6}, {0x09,10}, {0x12,13}, {0x00, 0}, {0x00, 0}},  {{0x05, 6}, {0x1e,12}, {0x14,16}, {0x00, 0}, {0x00, 0}},  {{0x04, 6}, {0x15,12}, {0x00, 0}, {0x00, 0}, {0x00, 0}},  {{0x07, 7}, {0x11,12}, {0x00, 0}, {0x00, 0}, {0x00, 0}},  {{0x05, 7}, {0x11,13}, {0x00, 0}, {0x00, 0}, {0x00, 0}},  {{0x27, 8}, {0x10,13}, {0x00, 0}, {0x00, 0}, {0x00, 0}},  {{0x23, 8}, {0x1a,16}, {0x00, 0}, {0x00, 0}, {0x00, 0}},  {{0x22, 8}, {0x19,16}, {0x00, 0}, {0x00, 0}, {0x00, 0}},  {{0x20, 8}, {0x18,16}, {0x00, 0}, {0x00, 0}, {0x00, 0}},  {{0x0e,10}, {0x17,16}, {0x00, 0}, {0x00, 0}, {0x00, 0}},  {{0x0d,10}, {0x16,16}, {0x00, 0}, {0x00, 0}, {0x00, 0}},  {{0x08,10}, {0x15,16}, {0x00, 0}, {0x00, 0}, {0x00, 0}},  {{0x1f,12}, {0x00, 0}, {0x00, 0}, {0x00, 0}, {0x00, 0}},  {{0x1a,12}, {0x00, 0}, {0x00, 0}, {0x00, 0}, {0x00, 0}},  {{0x19,12}, {0x00, 0}, {0x00, 0}, {0x00, 0}, {0x00, 0}},  {{0x17,12}, {0x00, 0}, {0x00, 0}, {0x00, 0}, {0x00, 0}},  {{0x16,12}, {0x00, 0}, {0x00, 0}, {0x00, 0}, {0x00, 0}},  {{0x1f,13}, {0x00, 0}, {0x00, 0}, {0x00, 0}, {0x00, 0}},  {{0x1e,13}, {0x00, 0}, {0x00, 0}, {0x00, 0}, {0x00, 0}},  {{0x1d,13}, {0x00, 0}, {0x00, 0}, {0x00, 0}, {0x00, 0}},  {{0x1c,13}, {0x00, 0}, {0x00, 0}, {0x00, 0}, {0x00, 0}},  {{0x1b,13}, {0x00, 0}, {0x00, 0}, {0x00, 0}, {0x00, 0}},  {{0x1f,16}, {0x00, 0}, {0x00, 0}, {0x00, 0}, {0x00, 0}},  {{0x1e,16}, {0x00, 0}, {0x00, 0}, {0x00, 0}, {0x00, 0}},  {{0x1d,16}, {0x00, 0}, {0x00, 0}, {0x00, 0}, {0x00, 0}},  {{0x1c,16}, {0x00, 0}, {0x00, 0}, {0x00, 0}, {0x00, 0}},  {{0x1b,16}, {0x00, 0}, {0x00, 0}, {0x00, 0}, {0x00, 0}}};/* Table B-15, DCT coefficients table one * * indexed by [run][level-1] * split into two tables (dct_code_tab1a, dct_code_tab2a) to reduce size * 'End of Block' is treated elsewhere * codes do not include s (sign bit) */EXTERN VLCtable dct_code_tab1a[2][40]={ /* run = 0, level = 1...40 */ {  {0x02, 2}, {0x06, 3}, {0x07, 4}, {0x1c, 5},  {0x1d, 5}, {0x05, 6}, {0x04, 6}, {0x7b, 7},  {0x7c, 7}, {0x23, 8}, {0x22, 8}, {0xfa, 8},  {0xfb, 8}, {0xfe, 8}, {0xff, 8}, {0x1f,14},  {0x1e,14}, {0x1d,14}, {0x1c,14}, {0x1b,14},  {0x1a,14}, {0x19,14}, {0x18,14}, {0x17,14},  {0x16,14}, {0x15,14}, {0x14,14}, {0x13,14},  {0x12,14}, {0x11,14}, {0x10,14}, {0x18,15},  {0x17,15}, {0x16,15}, {0x15,15}, {0x14,15},  {0x13,15}, {0x12,15}, {0x11,15}, {0x10,15} }, /* run = 1, level = 1...18 */ {  {0x02, 3}, {0x06, 5}, {0x79, 7}, {0x27, 8},  {0x20, 8}, {0x16,13}, {0x15,13}, {0x1f,15},  {0x1e,15}, {0x1d,15}, {0x1c,15}, {0x1b,15},  {0x1a,15}, {0x19,15}, {0x13,16}, {0x12,16},  {0x11,16}, {0x10,16}, {0x00, 0}, {0x00, 0},  {0x00, 0}, {0x00, 0}, {0x00, 0}, {0x00, 0},  {0x00, 0}, {0x00, 0}, {0x00, 0}, {0x00, 0},  {0x00, 0}, {0x00, 0}, {0x00, 0}, {0x00, 0},  {0x00, 0}, {0x00, 0}, {0x00, 0}, {0x00, 0},  {0x00, 0}, {0x00, 0}, {0x00, 0}, {0x00, 0} }};EXTERN VLCtable dct_code_tab2a[30][5]={  /* run = 2...31, level = 1...5 */  {{0x05, 5}, {0x07, 7}, {0xfc, 8}, {0x0c,10}, {0x14,13}},  {{0x07, 5}, {0x26, 8}, {0x1c,12}, {0x13,13}, {0x00, 0}},  {{0x06, 6}, {0xfd, 8}, {0x12,12}, {0x00, 0}, {0x00, 0}},  {{0x07, 6}, {0x04, 9}, {0x12,13}, {0x00, 0}, {0x00, 0}},  {{0x06, 7}, {0x1e,12}, {0x14,16}, {0x00, 0}, {0x00, 0}},  {{0x04, 7}, {0x15,12}, {0x00, 0}, {0x00, 0}, {0x00, 0}},  {{0x05, 7}, {0x11,12}, {0x00, 0}, {0x00, 0}, {0x00, 0}},  {{0x78, 7}, {0x11,13}, {0x00, 0}, {0x00, 0}, {0x00, 0}},  {{0x7a, 7}, {0x10,13}, {0x00, 0}, {0x00, 0}, {0x00, 0}},  {{0x21, 8}, {0x1a,16}, {0x00, 0}, {0x00, 0}, {0x00, 0}},  {{0x25, 8}, {0x19,16}, {0x00, 0}, {0x00, 0}, {0x00, 0}},  {{0x24, 8}, {0x18,16}, {0x00, 0}, {0x00, 0}, {0x00, 0}},  {{0x05, 9}, {0x17,16}, {0x00, 0}, {0x00, 0}, {0x00, 0}},  {{0x07, 9}, {0x16,16}, {0x00, 0}, {0x00, 0}, {0x00, 0}},  {{0x0d,10}, {0x15,16}, {0x00, 0}, {0x00, 0}, {0x00, 0}},  {{0x1f,12}, {0x00, 0}, {0x00, 0}, {0x00, 0}, {0x00, 0}},  {{0x1a,12}, {0x00, 0}, {0x00, 0}, {0x00, 0}, {0x00, 0}},  {{0x19,12}, {0x00, 0}, {0x00, 0}, {0x00, 0}, {0x00, 0}},  {{0x17,12}, {0x00, 0}, {0x00, 0}, {0x00, 0}, {0x00, 0}},  {{0x16,12}, {0x00, 0}, {0x00, 0}, {0x00, 0}, {0x00, 0}},  {{0x1f,13}, {0x00, 0}, {0x00, 0}, {0x00, 0}, {0x00, 0}},  {{0x1e,13}, {0x00, 0}, {0x00, 0}, {0x00, 0}, {0x00, 0}},  {{0x1d,13}, {0x00, 0}, {0x00, 0}, {0x00, 0}, {0x00, 0}},  {{0x1c,13}, {0x00, 0}, {0x00, 0}, {0x00, 0}, {0x00, 0}},  {{0x1b,13}, {0x00, 0}, {0x00, 0}, {0x00, 0}, {0x00, 0}},  {{0x1f,16}, {0x00, 0}, {0x00, 0}, {0x00, 0}, {0x00, 0}},  {{0x1e,16}, {0x00, 0}, {0x00, 0}, {0x00, 0}, {0x00, 0}},  {{0x1d,16}, {0x00, 0}, {0x00, 0}, {0x00, 0}, {0x00, 0}},  {{0x1c,16}, {0x00, 0}, {0x00, 0}, {0x00, 0}, {0x00, 0}},  {{0x1b,16}, {0x00, 0}, {0x00, 0}, {0x00, 0}, {0x00, 0}}};/*************************************************************************    Statische Arrays
*************************************************************************/

EXTERN double picture_rates [9] = { 0., 24000./1001., 24., 25.,
	30000./1001., 30., 50., 60000./1001., 60. };

EXTERN double ratio [16] = { 0., 1., 0.6735, 0.7031, 0.7615, 0.8055,
	0.8437, 0.8935, 0.9157, 0.9815, 1.0255, 1.0695, 1.0950, 1.1575,
	1.2015, 0.};

EXTERN unsigned int bitrate_index [3][16] =
    {{0,32,64,96,128,160,192,224,256,288,320,352,384,416,448,0},
     {0,32,48,56,64,80,96,112,128,160,192,224,256,320,384,0},
     {0,32,40,48,56,64,80,96,112,128,160,192,224,256,320,0}};

EXTERN unsigned int ac3_bitrate_index[32] =
    {32,40,48,56,64,80,96,112,128,160,192,224,256,320,384,448,512,576,640,
     0,0,0,0,0,0,0,0,0,0,0,0,0};

EXTERN unsigned int ac3_frame_size[3][32] =
    {{64,80,96,112,128,160,192,224,256,320,384,448,512,640,768,896,1024,
      1152,1280,0,0,0,0,0,0,0,0,0,0,0,0,0},
     {69,87,104,121,139,174,208,243,278,348,417,487,557,696,835,975,1114,
      1253,1393,0,0,0,0,0,0,0,0,0,0,0,0,0},
     {96,120,144,168,192,240,288,336,384,480,576,672,768,960,1152,1344,
      1536,1728,1920,0,0,0,0,0,0,0,0,0,0,0,0,0}}; 

EXTERN double frequency [4] = {44.1, 48, 32, 0};
EXTERN double ac3_frequency[4] = {48, 44.1, 32, 0};
EXTERN unsigned int slots [4] = {12, 144, 0, 0};
EXTERN unsigned int samples [4] = {384, 1152, 0, 0};

EXTERN char modetxt [4][15] =
    { "stereo", "joint stereo", "dual channel", "single channel" };

EXTERN char copyrighttxt [2][20] =
    { "no copyright","copyright protected" };

EXTERN char originaltxt [2][10] =
    { "copy","original" };

EXTERN char emphasistxt [4][20] =
    { "none", "50/15 microseconds", "reserved", "CCITT J.17" };

⌨️ 快捷键说明

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