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

📄 mp4_vld.h

📁 一个播放器 使用了evc 大家可以参考下 哦
💻 H
字号:
/**************************************************************************
 *                                                                        *
 * This code has been developed by John Funnell. This software is an      *
 * implementation of a part of one or more MPEG-4 Video tools as          *
 * specified in ISO/IEC 14496-2 standard.  Those intending to use this    *
 * software module in hardware or software products are advised that its  *
 * use may infringe existing patents or copyrights, and any such use      *
 * would be at such party's own risk.  The original developer of this     *
 * software module and his/her company, and subsequent editors and their  *
 * companies (including Project Mayo), will have no liability for use of  *
 * this software or modifications or derivatives thereof.                 *
 /***************************************************************************************
 *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.													*
 *																						*
 * The GPL can be found at: http://www.gnu.org/copyleft/gpl.html						*
 *																						*
 *																						*	
 ****************************************************************************************/
/**************************************************************************
 *                                                                        *
 * Copyright (C) 2001 - Project Mayo                                      * 
 *                                                                        *
 * John Funnell                                                           *
 * Andrea Graziani                                                        * 
 *                                                                        *  
 * DivX Advanced Research Center <darc@projectmayo.com>                   * 
 *                                                                        *     
 **************************************************************************/

// mp4_vld.h //

#ifndef _MP4_VLD_H_
#define _MP4_VLD_H_

#define ESCAPE 7167

/**/

const short tableB16_1[112] 

=  {
	4353,   4289,   385,   4417  , 449,   130,   67,   9,   4098,   4098,   
	321,   321,   4225,   4225,   4161,   4161,   257,   257,   193,   193,   
	8,   8,   7,   7,   66,   66,    6,   6,  129,   129,   
	129,   129,   5,   5,   5,   5,      4,      4, 4, 4,  
	4097,   4097,   4097,   4097,   4097,   4097,   4097,   4097,   1,   1,   
	1,   1,   1,   1,   1,   1,   1,   1,   1,   1,   
	1,   1,   1,   1,   1,   1,   1,   1,   1,   1,   
	1,   1,   1,   1,   1,   1,   1,   1,   1,   1,   
	2,   2,   2,   2,   2,   2,   2 ,2 ,2 ,2 ,2,2,2,      
	2,   2,   2,  65,  65,  65,   65,   
	65,   65,   65,   65,   3,   3,   3,   3,   3,   3,   
	3,   3}
;

const short tableB16_2[96] 
=  {18, 17,  4993,  4993,  4929,  4929,4865, 4865, 4801, 4801,
   4737,  4737 ,4162,  4162,  4100,  4100,  769,  769, 705, 705
   ,450, 450, 386, 386, 322, 322, 195, 195,  131,  131,  70,  70,
   69, 69, 16, 16, 258, 258, 15, 15,  14, 14, 13, 13, 4609, 4609,
   4609, 4609, 4545, 4545, 4545, 4545, 4481, 4481, 4481, 4481, 4099,
   4099, 4099, 4099, 641, 641, 641, 641, 577, 577, 577, 577, 513,
   513, 513, 513, 4673, 4673, 4673, 4673, 194, 194, 194, 194, 68, 
   68, 68, 68, 12, 12, 12, 12, 11, 11, 11, 11, 10, 10, 10, 10} 
;
const short tableB16_3[120] 
=  {4103, 4103, 4102, 4102, 22, 22, 21, 21, 4226, 4226, 4226, 4226, 4163, 4163, 4163, 4163, 4101, 4101, 4101, 4101, 833, 833, 833, 833, 323, 323, 323, 323, 514, 514, 514, 514, 259, 259, 259, 259, 196, 196, 196, 196, 132, 132, 132, 132, 71, 71, 71, 71, 20, 20, 20, 20, 19, 19, 19, 19, 23, 23, 24, 24, 72, 72, 578, 578, 4290, 4290, 4354, 4354, 5057, 5057, 5121, 5121, 25, 26, 27, 73, 387, 74, 133, 451, 897, 4104, 4418, 4482, 5185, 5249, 5313, 5377, 7167, 7167, 7167, 7167, 7167, 7167, 7167, 7167, 7167, 7167, 7167, 7167, 7167, 7167, 7167, 7167, 7167, 7167, 7167, 7167, 7167, 7167, 7167, 7167, 7167, 7167, 7167, 7167, 7167, 7167, 7167, 7167}
;

// tables to decode Table B17 VLC 

const short tableB17_1[112] 
=  {4225, 4209, 4193, 4177, 193, 177, 161, 4, 4161, 4161, 4145, 4145, 4129, 4129, 4113, 4113, 145, 145, 129, 129, 113, 113, 97, 97, 18, 18, 3, 3, 81, 81, 81, 81, 65, 65, 65, 65, 49, 49, 49, 49, 4097, 4097, 4097, 4097, 4097, 4097, 4097, 4097, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 33, 33, 33, 33, 33, 33, 33, 33, 2, 2,2,2, 2, 2,2,2}
;
const short tableB17_2[96] 
=  {9, 8, 4481, 4481, 4465, 4465, 4449, 4449, 4433, 4433, 4417, 4417, 4401, 4401, 4385, 4385, 4369, 4369, 4098, 4098, 353, 353, 337, 337, 321, 321, 305, 305, 289, 289, 273, 273, 257, 257, 241, 241, 66, 66, 50, 50, 7, 7, 6, 6, 4353, 4353, 4353, 4353, 4337, 4337, 4337, 4337, 4321, 4321, 4321, 4321, 4305, 4305, 4305, 4305, 4289, 4289, 4289, 4289, 4273, 4273, 4273, 4273, 4257, 4257, 4257, 4257, 4241, 4241, 4241, 4241, 225, 225, 225, 225, 209, 209, 209, 209, 34, 34, 34, 34, 19, 19, 19, 19, 5, 5, 5, 5}
;
const short tableB17_3[120] 
=  {4114, 4114, 4099, 4099, 11, 11, 10, 10, 4545, 4545, 4545, 4545, 4529, 4529, 4529, 4529, 4513, 4513, 4513, 4513, 4497, 4497, 4497, 4497, 146, 146, 146, 146, 130, 130, 130, 130, 114, 114, 114, 114, 98, 98, 98, 98, 82, 82, 82, 82, 51, 51, 51, 51, 35, 35, 35, 35, 20, 20, 20, 20, 12, 12, 21, 21, 369, 369, 385, 385, 4561, 4561, 4577, 4577, 4593, 4593, 4609, 4609, 22, 36, 67, 83, 99, 162, 401, 417, 4625, 4641, 4657, 4673, 4689, 4705, 4721, 4737, 7167, 7167, 7167, 7167, 7167, 7167, 7167, 7167, 7167, 7167, 7167, 7167, 7167, 7167, 7167, 7167, 7167, 7167, 7167, 7167, 7167, 7167, 7167, 7167, 7167, 7167, 7167, 7167, 7167, 7167, 7167, 7167}
;

#endif // _MP4_VLD_H_

extern int vld_intra_dct();
extern int vld_inter_dct();

/***/

⌨️ 快捷键说明

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