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

📄 umc_vc1_common_cbpcy_tbl.cpp

📁 audio-video-codecs.rar语音编解码器
💻 CPP
📖 第 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) 2004-2007 Intel Corporation. All Rights Reserved.
//
//
//          VC-1 (VC1) decoder, Code block pattern tables
//
*/
#include "umc_defs.h"

#if defined (UMC_ENABLE_VC1_VIDEO_DECODER) || defined (UMC_ENABLE_VC1_SPLITTER) || defined (UMC_ENABLE_VC1_VIDEO_ENCODER)

#include "umc_vc1_common_defs.h"
#include "umc_vc1_common_cbpcy_tbl.h"

//VC-1 Table 169: I-Picture CBPCY VLC Table
////////////////////////////////////////////////////////////////////
//CBPCY  VLC Codeword VLC Size    CBPCY    VLC Codeword    VLC Size
//0         1            1        32            6            4
//1         23           6        33            3            9
//2         9            5        34            30           7
//3         5            5        35            28           6
//4         6            5        36            18           7
//5         71           9        37            904          12
//6         32           7        38            68           9
//7         16           7        39            112          9
//8         2            5        40            31           6
//9         124          9        41            574          11
//10        58           7        42            57           8
//11        29           7        43            142          9
//12        2            6        44            1            7
//13        236          9        45            454          11
//14        119          8        46            182          9
//15        0            8        47            69           9
//16        3            5        48            20           6
//17        183          9        49            575          11
//18        44           7        50            125          9
//19        19           7        51            24           9
//20        1            6        52            7            7
//21        360         10        53            455          11
//22        70           8        54            134          9
//23        63           8        55            25           9
//24        30           6        56            21           6
//25        1810        13        57            475          10
//26        181          9        58            2            9
//27        66           8        59            70           9
//28        34           7        60            13           8
//29        453         11        61            1811         13
//30        286         10        62            474          10
//31        135          9        63            361          10
///////////////////////////////////////////////////////////////

const extern Ipp32s VC1_CBPCY_Ipic[] =
{
 13, /* max bits */
 2,  /* total subtables */
 8, 5 ,/* subtable sizes */

 1, /* 1-bit codes */
     0x01, 0,
 0, /* 2-bit codes */
 0, /* 3-bit codes */
 1, /* 4-bit codes */
     0x06, 32,
 5, /* 5-bit codes */
    0x02, 8, 0x03, 16, 0x05, 3, 0x06, 4, 0x09, 2,

 8, /* 6-bit codes */
    0x01, 20,  0x02, 12,  0x14, 48,  0x15, 56,
    0x17, 1,   0x1c, 35,  0x1e, 24,  0x1f, 40,


 11,/* 7-bit codes */
    0x01, 44,  0x07, 52,  0x10, 7,   0x12, 36,
    0x13, 19,  0x1d, 11,  0x1e, 34,  0x20, 6,
    0x22, 28,  0x2c, 18,  0x3a, 10,

 7, /* 8-bit codes */
    0x00, 15,  0x0d, 60,  0x39, 42,  0x3f, 23,
    0x42, 27,  0x46, 22,  0x77, 14,

 18,/* 9-bit codes */
    0x02, 58,  0x03, 33,  0x18, 51,  0x19, 55,
    0x44, 38,  0x45, 47,  0x46, 59,  0x47, 5,
    0x70, 39,  0x7c, 9,   0x7d, 50,  0x86, 54,
    0x87, 31,  0x8e, 43,  0xb5, 26,  0xb6, 46,
    0xb7, 17,  0xec, 13,

 5, /* 10-bit codes */
    0x11e, 30, 0x168, 21, 0x169, 63, 0x1da, 62, 0x1db, 57,

 5, /* 11-bit codes */
    0x1c5, 29, 0x1c6, 45, 0x1c7, 53, 0x23e, 41, 0x23f, 49,

 1, /* 12-bit codes */
    0x388, 37,

 2, /* 13-bit codes */
    0x712, 25, 0x713, 61,

-1 /* end of table */
};


//VC-1 Table 170: P and B-Picture CBPCY VLC Table 0
//CBPCY     VLC Codeword    VLC Size    CBPCY    VLC Codeword    VLC Size
///////////////////////////////////////////////////////////////
//0         0           13          1           6           13
//32        1           6           33          7           13
//16        1           5           17          54          7
//48        4           6           49          103         8
//8         5           6           9           8           13
//40        1           7           41          9           13
//24        12          7           25          10          13
//56        4           5           57          110         8
//4         13          7           5           11          13
//36        14          7           37          12          13
//20        10          6           21          111         8
//52        11          6           53          56          7
//12        12          6           13          114         8
//44        7           5           45          58          7
//28        13          6           29          115         8
//60        2           3           61          5           3
//2         15          7           3           13          13
//34        1           8           35          7           12
//18        96          8           19          8           12
//50        1           13          51          9           12
//10        49          7           11          10          12
//42        97          8           43          11          12
//26        2           13          27          12          12
//58        100         8           59          30          6
//6           3         13          7           13          12
//38          4         13          39          14          12
//22          5         13          23          15          12
//54        101         8           55          118          8
//14        102         8           15          119          8
//46         52         7           47          62           7
//30         53         7           31          63           7
//62         4          3           63           3           2
///////////////////////////////////////////////////////////////

const extern Ipp32s VC1_CBPCY_PBpic_tbl0[] =
{
 13, /* max bits */
 2,  /* total subtables */
 8, 5 ,/* subtable sizes */

 0, /* 1-bit codes */
 1, /* 2-bit codes */
    3,63,
 3, /* 3-bit codes */
    2, 60,    4, 62,    5, 61,
 0, /* 4-bit codes */
 3, /* 5-bit codes */
     1, 16,     4, 56,     7, 44,

 8, /* 6-bit codes */
      1, 32,    4, 48,     5, 8 ,      10,  20,
      11, 52,   12, 12,    13, 28,     30,  59,

 13,/* 7-bit codes */
      1, 40,      12, 24,      13, 4 ,      14, 36,
      15, 2,      49, 10,      52, 46,      53, 30,
      54, 17,     56, 53,      58, 45,      62, 47,
      63, 31,

 13, /* 8-bit codes */
     1, 34,     96, 18,     97, 42,     100, 58,
     101, 54,   102, 14,    103, 49,    110, 57,
     111, 21,   114, 13,    115, 29,    118, 55,
     119, 15,

 0,/* 9-bit codes */

 0, /* 10-bit codes */

 0, /* 11-bit codes */

 9, /* 12-bit codes */
        7, 35,   8, 19,     9, 51,     10, 11,
        11, 43,  12, 27,    13, 7,     14, 39,
        15, 23,

 14, /* 13-bit codes */
       1, 50,    2, 26,     3, 6,     4, 38,
       5, 22,    0, 0,      6, 1,     7, 33,
       8, 9,     9, 41,    10, 25,    11, 5,
       12, 37,   13, 3,

-1 /* end of table */
};

//VC-1 Table 171: P and B-Picture CBPCY VLC Table 1
//CBPCY VLC Codeword  VLC Size    CBPCY   VLC Codeword  VLC Size
///////////////////////////////////////////////////////////////
//0         0           14          1           9           13
//32        1           3           33          240          8
//16        2           3           17          10          13
//48        1           5           49          11          13
//8         3           3           9           121          7
//40        1           4           41          122          7
//24        16          5           25          12          13
//56        17          5           57          13          13
//4         5           3           5           14          13
//36        18          5           37          15          13
//20        12          4           21          241          8
//52        19          5           53          246          8
//12        13          4           13          16          13
//44        1           6           45          17          13
//28        28          5           29          124          7
//60        58          6           61          63          6
//2         1           8           3           18          13
//34        1           14          35          19          13
//18        1           13          19          20          13
//50        2           8           51          21          13
//10        3           8           11          22          13
//42        2           13          43          23          13
//26        3           13          27          24          13
//58        236         8           59          25          13
//6         237         8           7           26          13
//38        4           13          39          27          13
//22        5           13          23          28          13
//54        238         8           55          29          13

⌨️ 快捷键说明

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