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

📄 vlc.h

📁 在dsp上实现h.264编解码
💻 H
📖 第 1 页 / 共 3 页
字号:
/***************************************************************************** * vlc.h : vlc table ***************************************************************************** * Copyright (C) 2003 Laurent Aimar * $Id: vlc.h,v 1.1 2004/06/03 19:27:07 fenrir Exp $ * * Authors: Laurent Aimar <fenrir@via.ecp.fr> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111, USA. *****************************************************************************/typedef struct{    int i_bits;    int i_size;} vlc_t;/* XXX: don't forget to change it if you change vlc_t */#define MKVLC( a, b ) { a, b }static const vlc_t SHU264_coeff_token[5][17*4] ={    /* table 0 */    {        MKVLC( 0x1, 1 ), /* str=1 */        MKVLC( 0x0, 0 ), /* str= */        MKVLC( 0x0, 0 ), /* str= */        MKVLC( 0x0, 0 ), /* str= */        MKVLC( 0x5, 6 ), /* str=000101 */        MKVLC( 0x1, 2 ), /* str=01 */        MKVLC( 0x0, 0 ), /* str= */        MKVLC( 0x0, 0 ), /* str= */        MKVLC( 0x7, 8 ), /* str=00000111 */        MKVLC( 0x4, 6 ), /* str=000100 */        MKVLC( 0x1, 3 ), /* str=001 */        MKVLC( 0x0, 0 ), /* str= */        MKVLC( 0x7, 9 ), /* str=000000111 */        MKVLC( 0x6, 8 ), /* str=00000110 */        MKVLC( 0x5, 7 ), /* str=0000101 */        MKVLC( 0x3, 5 ), /* str=00011 */        MKVLC( 0x7, 10 ), /* str=0000000111 */        MKVLC( 0x6, 9 ), /* str=000000110 */        MKVLC( 0x5, 8 ), /* str=00000101 */        MKVLC( 0x3, 6 ), /* str=000011 */        MKVLC( 0x7, 11 ), /* str=00000000111 */        MKVLC( 0x6, 10 ), /* str=0000000110 */        MKVLC( 0x5, 9 ), /* str=000000101 */        MKVLC( 0x4, 7 ), /* str=0000100 */        MKVLC( 0xf, 13 ), /* str=0000000001111 */        MKVLC( 0x6, 11 ), /* str=00000000110 */        MKVLC( 0x5, 10 ), /* str=0000000101 */        MKVLC( 0x4, 8 ), /* str=00000100 */        MKVLC( 0xb, 13 ), /* str=0000000001011 */        MKVLC( 0xe, 13 ), /* str=0000000001110 */        MKVLC( 0x5, 11 ), /* str=00000000101 */        MKVLC( 0x4, 9 ), /* str=000000100 */        MKVLC( 0x8, 13 ), /* str=0000000001000 */        MKVLC( 0xa, 13 ), /* str=0000000001010 */        MKVLC( 0xd, 13 ), /* str=0000000001101 */        MKVLC( 0x4, 10 ), /* str=0000000100 */        MKVLC( 0xf, 14 ), /* str=00000000001111 */        MKVLC( 0xe, 14 ), /* str=00000000001110 */        MKVLC( 0x9, 13 ), /* str=0000000001001 */        MKVLC( 0x4, 11 ), /* str=00000000100 */        MKVLC( 0xb, 14 ), /* str=00000000001011 */        MKVLC( 0xa, 14 ), /* str=00000000001010 */        MKVLC( 0xd, 14 ), /* str=00000000001101 */        MKVLC( 0xc, 13 ), /* str=0000000001100 */        MKVLC( 0xf, 15 ), /* str=000000000001111 */        MKVLC( 0xe, 15 ), /* str=000000000001110 */        MKVLC( 0x9, 14 ), /* str=00000000001001 */        MKVLC( 0xc, 14 ), /* str=00000000001100 */        MKVLC( 0xb, 15 ), /* str=000000000001011 */        MKVLC( 0xa, 15 ), /* str=000000000001010 */        MKVLC( 0xd, 15 ), /* str=000000000001101 */        MKVLC( 0x8, 14 ), /* str=00000000001000 */        MKVLC( 0xf, 16 ), /* str=0000000000001111 */        MKVLC( 0x1, 15 ), /* str=000000000000001 */        MKVLC( 0x9, 15 ), /* str=000000000001001 */        MKVLC( 0xc, 15 ), /* str=000000000001100 */        MKVLC( 0xb, 16 ), /* str=0000000000001011 */        MKVLC( 0xe, 16 ), /* str=0000000000001110 */        MKVLC( 0xd, 16 ), /* str=0000000000001101 */        MKVLC( 0x8, 15 ), /* str=000000000001000 */        MKVLC( 0x7, 16 ), /* str=0000000000000111 */        MKVLC( 0xa, 16 ), /* str=0000000000001010 */        MKVLC( 0x9, 16 ), /* str=0000000000001001 */        MKVLC( 0xc, 16 ), /* str=0000000000001100 */        MKVLC( 0x4, 16 ), /* str=0000000000000100 */        MKVLC( 0x6, 16 ), /* str=0000000000000110 */        MKVLC( 0x5, 16 ), /* str=0000000000000101 */        MKVLC( 0x8, 16 ), /* str=0000000000001000 */    },    /* table 1 */    {        MKVLC( 0x3, 2 ), /* str=11 */        MKVLC( 0x0, 0 ), /* str= */        MKVLC( 0x0, 0 ), /* str= */        MKVLC( 0x0, 0 ), /* str= */        MKVLC( 0xb, 6 ), /* str=001011 */        MKVLC( 0x2, 2 ), /* str=10 */        MKVLC( 0x0, 0 ), /* str= */        MKVLC( 0x0, 0 ), /* str= */        MKVLC( 0x7, 6 ), /* str=000111 */        MKVLC( 0x7, 5 ), /* str=00111 */        MKVLC( 0x3, 3 ), /* str=011 */        MKVLC( 0x0, 0 ), /* str= */        MKVLC( 0x7, 7 ), /* str=0000111 */        MKVLC( 0xa, 6 ), /* str=001010 */        MKVLC( 0x9, 6 ), /* str=001001 */        MKVLC( 0x5, 4 ), /* str=0101 */        MKVLC( 0x7, 8 ), /* str=00000111 */        MKVLC( 0x6, 6 ), /* str=000110 */        MKVLC( 0x5, 6 ), /* str=000101 */        MKVLC( 0x4, 4 ), /* str=0100 */        MKVLC( 0x4, 8 ), /* str=00000100 */        MKVLC( 0x6, 7 ), /* str=0000110 */        MKVLC( 0x5, 7 ), /* str=0000101 */        MKVLC( 0x6, 5 ), /* str=00110 */        MKVLC( 0x7, 9 ), /* str=000000111 */        MKVLC( 0x6, 8 ), /* str=00000110 */        MKVLC( 0x5, 8 ), /* str=00000101 */        MKVLC( 0x8, 6 ), /* str=001000 */        MKVLC( 0xf, 11 ), /* str=00000001111 */        MKVLC( 0x6, 9 ), /* str=000000110 */        MKVLC( 0x5, 9 ), /* str=000000101 */        MKVLC( 0x4, 6 ), /* str=000100 */        MKVLC( 0xb, 11 ), /* str=00000001011 */        MKVLC( 0xe, 11 ), /* str=00000001110 */        MKVLC( 0xd, 11 ), /* str=00000001101 */        MKVLC( 0x4, 7 ), /* str=0000100 */        MKVLC( 0xf, 12 ), /* str=000000001111 */        MKVLC( 0xa, 11 ), /* str=00000001010 */        MKVLC( 0x9, 11 ), /* str=00000001001 */        MKVLC( 0x4, 9 ), /* str=000000100 */        MKVLC( 0xb, 12 ), /* str=000000001011 */        MKVLC( 0xe, 12 ), /* str=000000001110 */        MKVLC( 0xd, 12 ), /* str=000000001101 */        MKVLC( 0xc, 11 ), /* str=00000001100 */        MKVLC( 0x8, 12 ), /* str=000000001000 */        MKVLC( 0xa, 12 ), /* str=000000001010 */        MKVLC( 0x9, 12 ), /* str=000000001001 */        MKVLC( 0x8, 11 ), /* str=00000001000 */        MKVLC( 0xf, 13 ), /* str=0000000001111 */        MKVLC( 0xe, 13 ), /* str=0000000001110 */        MKVLC( 0xd, 13 ), /* str=0000000001101 */        MKVLC( 0xc, 12 ), /* str=000000001100 */        MKVLC( 0xb, 13 ), /* str=0000000001011 */        MKVLC( 0xa, 13 ), /* str=0000000001010 */        MKVLC( 0x9, 13 ), /* str=0000000001001 */        MKVLC( 0xc, 13 ), /* str=0000000001100 */        MKVLC( 0x7, 13 ), /* str=0000000000111 */        MKVLC( 0xb, 14 ), /* str=00000000001011 */        MKVLC( 0x6, 13 ), /* str=0000000000110 */        MKVLC( 0x8, 13 ), /* str=0000000001000 */        MKVLC( 0x9, 14 ), /* str=00000000001001 */        MKVLC( 0x8, 14 ), /* str=00000000001000 */        MKVLC( 0xa, 14 ), /* str=00000000001010 */        MKVLC( 0x1, 13 ), /* str=0000000000001 */        MKVLC( 0x7, 14 ), /* str=00000000000111 */        MKVLC( 0x6, 14 ), /* str=00000000000110 */        MKVLC( 0x5, 14 ), /* str=00000000000101 */        MKVLC( 0x4, 14 ), /* str=00000000000100 */    },    /* table 2 */    {        MKVLC( 0xf, 4 ), /* str=1111 */        MKVLC( 0x0, 0 ), /* str= */        MKVLC( 0x0, 0 ), /* str= */        MKVLC( 0x0, 0 ), /* str= */        MKVLC( 0xf, 6 ), /* str=001111 */        MKVLC( 0xe, 4 ), /* str=1110 */        MKVLC( 0x0, 0 ), /* str= */        MKVLC( 0x0, 0 ), /* str= */        MKVLC( 0xb, 6 ), /* str=001011 */        MKVLC( 0xf, 5 ), /* str=01111 */        MKVLC( 0xd, 4 ), /* str=1101 */        MKVLC( 0x0, 0 ), /* str= */        MKVLC( 0x8, 6 ), /* str=001000 */        MKVLC( 0xc, 5 ), /* str=01100 */        MKVLC( 0xe, 5 ), /* str=01110 */        MKVLC( 0xc, 4 ), /* str=1100 */        MKVLC( 0xf, 7 ), /* str=0001111 */        MKVLC( 0xa, 5 ), /* str=01010 */        MKVLC( 0xb, 5 ), /* str=01011 */        MKVLC( 0xb, 4 ), /* str=1011 */        MKVLC( 0xb, 7 ), /* str=0001011 */        MKVLC( 0x8, 5 ), /* str=01000 */        MKVLC( 0x9, 5 ), /* str=01001 */        MKVLC( 0xa, 4 ), /* str=1010 */        MKVLC( 0x9, 7 ), /* str=0001001 */        MKVLC( 0xe, 6 ), /* str=001110 */        MKVLC( 0xd, 6 ), /* str=001101 */        MKVLC( 0x9, 4 ), /* str=1001 */        MKVLC( 0x8, 7 ), /* str=0001000 */        MKVLC( 0xa, 6 ), /* str=001010 */        MKVLC( 0x9, 6 ), /* str=001001 */        MKVLC( 0x8, 4 ), /* str=1000 */        MKVLC( 0xf, 8 ), /* str=00001111 */        MKVLC( 0xe, 7 ), /* str=0001110 */        MKVLC( 0xd, 7 ), /* str=0001101 */        MKVLC( 0xd, 5 ), /* str=01101 */        MKVLC( 0xb, 8 ), /* str=00001011 */        MKVLC( 0xe, 8 ), /* str=00001110 */        MKVLC( 0xa, 7 ), /* str=0001010 */        MKVLC( 0xc, 6 ), /* str=001100 */        MKVLC( 0xf, 9 ), /* str=000001111 */        MKVLC( 0xa, 8 ), /* str=00001010 */        MKVLC( 0xd, 8 ), /* str=00001101 */        MKVLC( 0xc, 7 ), /* str=0001100 */        MKVLC( 0xb, 9 ), /* str=000001011 */        MKVLC( 0xe, 9 ), /* str=000001110 */        MKVLC( 0x9, 8 ), /* str=00001001 */        MKVLC( 0xc, 8 ), /* str=00001100 */        MKVLC( 0x8, 9 ), /* str=000001000 */        MKVLC( 0xa, 9 ), /* str=000001010 */        MKVLC( 0xd, 9 ), /* str=000001101 */        MKVLC( 0x8, 8 ), /* str=00001000 */        MKVLC( 0xd, 10 ), /* str=0000001101 */        MKVLC( 0x7, 9 ), /* str=000000111 */        MKVLC( 0x9, 9 ), /* str=000001001 */        MKVLC( 0xc, 9 ), /* str=000001100 */        MKVLC( 0x9, 10 ), /* str=0000001001 */        MKVLC( 0xc, 10 ), /* str=0000001100 */        MKVLC( 0xb, 10 ), /* str=0000001011 */        MKVLC( 0xa, 10 ), /* str=0000001010 */        MKVLC( 0x5, 10 ), /* str=0000000101 */        MKVLC( 0x8, 10 ), /* str=0000001000 */        MKVLC( 0x7, 10 ), /* str=0000000111 */        MKVLC( 0x6, 10 ), /* str=0000000110 */        MKVLC( 0x1, 10 ), /* str=0000000001 */        MKVLC( 0x4, 10 ), /* str=0000000100 */        MKVLC( 0x3, 10 ), /* str=0000000011 */        MKVLC( 0x2, 10 ), /* str=0000000010 */    },    /* table 3 */    {        MKVLC( 0x3, 6 ), /* str=000011 */        MKVLC( 0x0, 0 ), /* str= */        MKVLC( 0x0, 0 ), /* str= */        MKVLC( 0x0, 0 ), /* str= */        MKVLC( 0x0, 6 ), /* str=000000 */        MKVLC( 0x1, 6 ), /* str=000001 */

⌨️ 快捷键说明

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