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

📄 umc_vc1_common_interlaced_cbpcy_tables.cpp

📁 audio-video-codecs.rar语音编解码器
💻 CPP
📖 第 1 页 / 共 3 页
字号:
//     30        84          7             62              6           4
//     31        43          6             63              0           2
//     32        41          6

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

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


//VC-1 Table 128: interlaced CBPCY table 3
//Coded Block VLC Codeword VLC Codeword Coded Block VLC Codeword VLC Codeword
// Pattern                     Size        Pattern                    Size
//   1              40          6            33           499           9
//   2              41          6            34           500           9
//   3              157         8            35           501           9
//   4              0           4            36           17            6
//   5              490         9            37           978          10
//   6              491         9            38           979          10
//   7              492         9            39           305           9
//   8              1           4            40           9             5
//   9              493         9            41           350           9
//   10             494         9            42           351           9
//   11             495         9            43           156           8
//   12             5           4            44           16            5
//   13             240         8            45           168           8
//   14             241         8            46           169           8
//   15             59          7            47           56            7
//   16             2           4            48           6             4
//   17             496         9            49           242           8
//   18             497         9            50           243           8
//   19             498         9            51           77            7
//   20             63          6            52           17            5
//   21             348         9            53           170           8
//   22             349         9            54           171           8
//   23             153         8            55           57            7
//   24             16          6            56           18            5
//   25             976        10            57           172           8
//   26             977        10            58           173           8
//   27             304         9            59           58            7
//   28             15          5            60           6             3
//   29             158         8            61           22            5
//   30             159         8            62           23            5
//   31             251         8            63           14            4
//   32             3           4

const extern Ipp32s VC1_InterlacedCBPCYTable3[] =
{
    10, /* max bits */
    1,  /* total subtables */
    10,/* subtable sizes */

    0, /* 1-bit codes */
     0, /* 2-bit codes */
    1, /* 3-bit codes */
        6, 60,
    7, /* 4-bit codes */
        0, 4,    1, 8,     5, 12,     2, 16,
        6, 48,   14, 63,   3, 32,
    7, /* 5-bit codes */
        9, 40,   16, 44,   17, 52,    18, 56,
        15, 28,  22, 61,   23, 62,
    5, /* 6-bit codes */
        40, 1,   41, 2,    17, 36,    63, 20,
        16, 24,
    5, /* 7-bit codes */
        59, 15,  56, 47,   77, 51,    57, 55,
        58, 59,
    16, /* 8-bit codes */
        157, 3,  240, 13,  241, 14,   156, 43,
        168, 45, 169, 46,  242, 49,   243, 50,
        170, 53, 171, 54,  153, 23,   158, 29,
        159, 30, 251, 31,  172, 57,   173, 58,
    18, /* 9-bit codes */
        499, 33,  500, 34,   501, 35,   490, 5,
        491, 6,   492, 7,    305, 39,   493, 9,
        350, 41,  494, 10,   351, 42,   495, 11,
        496, 17,  497, 18,   498, 19,   348, 21,
        349, 22,  304, 27,
    4, /* 10-bit codes */
        978, 37,  979, 38,   976, 25,   977, 26,
-1 /* end of table */
};


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

const extern Ipp32s VC1_InterlacedCBPCYTable4[] =
{
    8, /* max bits */
    1,  /* total subtables */
    8,/* subtable sizes */

    0, /* 1-bit codes */
    0, /* 2-bit codes */
    1, /* 3-bit codes */
        4, 63,
    1, /* 4-bit codes */
        7, 60,
    9, /* 5-bit codes */
        31, 3,    10, 4,    11, 8,    7, 12,
        12, 16,   8, 48,    21, 62,   13, 32,
        20, 61,
    19, /* 6-bit codes */
        60, 1,    61, 2,    19, 40,   45, 44,
        3, 13,    4, 14,    11, 15,   56, 47,
        8, 49,    9, 50,    12, 51,   18, 20,
        46, 52,   58, 55,   47, 56,   0,  58,
        59, 59,   44, 28,   53, 31,
    27, /* 7-bit codes */
        105, 33,  108, 34,  5, 35,    96, 36,
        97, 5,    98, 6,    2, 7,     99, 9,
        14, 41,   100, 10,  15, 42,   3, 11,
        21, 43,   109, 45,  110, 46,  101, 17,
        102, 18,  4, 19,    10, 21,   111, 53,
        11, 22,   114, 54,  20, 23,   27, 24,
        115, 57,  103, 29,  104, 30,
    6, /* 8-bit codes */
        26, 37,   27, 38,   53, 39,   24, 25,
        25, 26,   52, 27,
-1 /* end of table */
};


//VC-1 Table 130: interlaced CBPCY table 5
//Coded Block VLC Codeword VLC Codeword Coded Block VLC Codeword VLC Codeword
// Pattern                  Size        Pattern                     Size
//   1           56          6            33            154           8
//   2           57          6            34            155           8
//   3          157          8            35            156           8
//   4           10          4            36             25           6
//   5          145          8            37            974          10
//   6          146          8            38            975          10
//   7          147          8            39            215           9
//   8           11          4            40              9           5
//   9          148          8            41            488           9
//   10         149          8            42            489           9
//   11         150          8            43            144           8
//   12           3          4            44             15           5
//   13         238          8            45            232           8
//   14         239          8            46            233           8

⌨️ 快捷键说明

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