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

📄 umc_vc1_common_interlaced_cbpcy_tables.cpp

📁 audio-video-codecs.rar语音编解码器
💻 CPP
📖 第 1 页 / 共 3 页
字号:
/* /////////////////////////////////////////////////////////////////////////////
//
//                  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, Interlace CBPCY VLC 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_interlaced_cbpcy_tables.h"

//VC-1 Table 125: interlaced CBPCY table 0
//Coded Block VLC Codeword VLC Codeword Coded Block  VLC Codeword VLC Codeword
// Pattern                 Size         Pattern                     Size
//    1          12058      15          33              686         11
//    2          12059      15          34              687         11
//    3           6028      14          35              1506        12
//    4            144       9          36              310         10
//    5            680      11          37              622         11
//    6            681      11          38              623         11
//    7           3015      13          39              765         11
//    8            145       9          40              158          9
//    9            682      11          41              318         10
//    10           683      11          42              319         10
//    11          1504      12          43              383         10
//    12            74       8          44              80           8
//    13           150       9          45              66           8
//    14           151       9          46              67           8
//    15           189       9          47              44           7
//    16           146       9          48              81           8
//    17           684      11          49              164          9
//    18           685      11          50              165          9
//    19          1505      12          51              190          9
//    20           152       9          52              83           8
//    21           306      10          53              68           8
//    22           307      10          54              69           8
//    23           377      10          55              45           7
//    24           308      10          56              84           8
//    25           618      11          57              70           8
//    26           619      11          58              71           8
//    27           764      11          59              46           7
//    28            78       8          60              3            3
//    29            64       8          61              0            3
//    30            65       8          62              1            3
//    31            43       7          63              1            1
//    32           147       9

//VC-1 Table 125: interlaced CBPCY table 0
const extern Ipp32s VC1_InterlacedCBPCYTable0[] =
{
    15, /* max bits */
    2,  /* total subtables */
    8, 7,/* subtable sizes */

    1, /* 1-bit codes */
        1, 63,
    0, /* 2-bit codes */
    3, /* 3-bit codes */
        3, 60,     0, 61,     1, 62,
    0, /* 4-bit codes */
    0, /* 5-bit codes */
    0, /* 6-bit codes */
    4, /* 7-bit codes */
        43, 31,    44, 47,    45, 55,     46, 59,
    14, /* 8-bit codes */
        74, 12,    78, 28,    64, 29,     65, 30,
        80, 44,    66, 45,    67, 46,     81, 48,
        83, 52,    68, 53,    69, 54,     84, 56,
        70, 57,    71, 58,
    12, /* 9-bit codes */
        144, 4,    145, 8,    150, 13,    151, 14,
        189, 15,   146, 16,   152, 20,    147, 32,
        158, 40,   164, 49,   165, 50,    190, 51,
    8, /* 10-bit codes */
        306, 21,   307, 22,   377, 23,    308, 24,
        310, 36,   318, 41,   319, 42,    383, 43,
    14, /* 11-bit codes */
        680, 5,    681, 6,    682, 9,     683, 10,
        684, 17,   685, 18,   618, 25,    619, 26,
        764, 27,   686, 33,   687, 34,    622, 37,
        623, 38,   765, 39,
    3, /* 12-bit codes */
        1504, 11,  1505, 19,  1506, 35,
    1, /* 13-bit codes */
        3015, 7,
    1, /* 14-bit codes */
        6028, 3,
    2, /* 15-bit codes */
        12058, 1,   12059, 2,
-1 /* end of table */
};


//VC-1 Table 126: interlaced CBPCY table 1
//Coded Block VLC Codeword VLC Codeword Coded Block VLC Codeword VLC Codeword
// Pattern                  Size        Pattern                     Size
//      1       65           7            33            20           7
//      2       66           7            34            21           7
//      3       256          9            35            44           8
//      4       67           7            36            92           8
//      5       136          8            37            93           9
//      6       137          8            38            94           9
//      7       257          9            39            95           9
//      8       69           7            40            38           7
//      9       140          8            41            93           8
//      10      141          8            42            94           8
//      11      258          9            43            95           8
//      12      16           6            44            13           6
//      13      34           7            45            52           7
//      14      35           7            46            53           7
//      15      36           7            47            27           6
//      16      71           7            48            20           6
//      17      16           7            49            39           7
//      18      17           7            50            42           7
//      19      259          9            51            43           7
//      20      37           7            52            14           6
//      21      88           8            53            56           7
//      22      89           8            54            57           7
//      23      90           8            55            29           6
//      24      91           8            56            15           6
//      25      90           9            57            60           7
//      26      91           9            58            61           7
//      27      92           9            59            31           6
//      28      12           6            60            5            3
//      29      48           7            61            9            4
//      30      49           7            62            0            3
//      31      25           6            63            3            2
//      32      9            6

//VC-1 Table 126: interlaced CBPCY table 1
const extern Ipp32s VC1_InterlacedCBPCYTable1[] =
{
        9, /* max bits */
        1,  /* total subtables */
        9,/* subtable sizes */

        0, /* 1-bit codes */
        1, /* 2-bit codes */
            3, 63,
        2, /* 3-bit codes */
            5, 60,     0, 62,
        1, /* 4-bit codes */
            9, 61,
        0, /* 5-bit codes */
        11, /* 6-bit codes */
            16, 12,   12, 28,   25, 31,    9,  32,
            13, 44,   27, 47,   20, 48,    14, 52,
            29, 55,   15, 56,   31, 59,
        25, /* 7-bit codes */
            65, 1,    66, 2,    67, 4,     69, 8,
            34, 13,   35, 14,   36, 15,    71, 16,
            16, 17,   17, 18,   37, 20,    48, 29,
            49, 30,   20, 33,   21, 34,    38, 40,
            52, 45,   53, 46,   39, 49,    42, 50,
            43, 51,   56, 53,   57, 54,    60, 57,
            61, 58,
        13, /* 8-bit codes */
            136, 5,   137, 6,   140, 9,    141, 10,
            88,  21,  89,  22,  90,  23,   91,  24,
            44,  35,  92,  36,  93,  41,   94,  42,
            95,  43,
        10, /* 9-bit codes */
            256, 3,   257, 7,   258, 11,   259, 19,
            90,  25,  91,  26,  92,  27,   93,  37,
            94,  38,  95,  39,
-1 /* end of table */
};

//VC-1 Table 127: interlaced CBPCY table 2
//Coded Block VLC Codeword VLC Codeword Coded Block  VLC Codeword VLC Codeword
// Pattern                  Size        Pattern                      Size
//     1         50          6             33              234         8
//     2         51          6             34              235         8
//     3         26          5             35              489         9
//     4         38          6             36              74          7
//     5         228         8             37              442         9
//     6         229         8             38              443         9
//     7         486         9             39              475         9
//     8         39          6             40              32          6
//     9         230         8             41              222         8
//     10        231         8             42              223         8
//     11        487         9             43              242         8
//     12        14          5             44              34          6
//     13        99          7             45              85          7
//     14        108         7             46              88          7
//     15        119         7             47              45          6
//     16        40          6             48              15          5
//     17        232         8             49              112         7
//     18        233         8             50              113         7
//     19        488         9             51              120         7
//     20        123         7             52              35          6
//     21        218         8             53              89          7
//     22        219         8             54              92          7
//     23        236         8             55              47          6
//     24        245         8             56              36          6
//     25        440         9             57              93          7
//     26        441         9             58              98          7
//     27        474         9             59              48          6
//     28        33          6             60              2           3
//     29        75          7             61              31          5

⌨️ 快捷键说明

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