资源简介
MP4编解C源代码
代码片段和文件信息
/**************************************************************************
* *
* This code has been developed by Andrea Graziani. 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. *
* *
* Project Mayo gives users of the Codec a license to this software *
* module or modifications thereof for use in hardware or software *
* products claiming conformance to the MPEG-4 Video Standard as *
* described in the Open DivX license. *
* *
* The complete Open DivX license can be found at *
* http://www.projectmayo.com/opendivx/license.php *
* *
**************************************************************************/
/**
* Copyright (C) 2001 - Project Mayo
*
* Andrea Graziani (Ag)
*
* DivX Advanced Research Center
*
**/
#include “basic_prediction.h“
/*
half_flag[t]
t = 0 horizontal component
t = 1 vertical component
*/
// Purpose: specialized basic motion compensation routines
void CopyBlock(unsigned char * Src unsigned char * Dst int Stride)
{
int dy;
#ifdef BIG_ENDIAN
char *lpSrc = (char *) Src;
char *lpDst = (char *) Dst;
int lpStride = Stride;
for (dy = 0; dy < 8; dy++) {
lpDst[0] = lpSrc[0];
lpDst[1] = lpSrc[1];
lpDst[2] = lpSrc[2];
lpDst[3] = lpSrc[3];
lpDst[4] = lpSrc[4];
lpDst[5] = lpSrc[5];
lpDst[6] = lpSrc[6];
lpDst[7] = lpSrc[7];
lpSrc += lpStride;
lpDst += lpStride;
}
#else
long *lpSrc = (long *) Src;
long *lpDst = (long *) Dst;
int lpStride = Stride >> 2;
for (dy = 0; dy < 8; dy++) {
lpDst[0] = lpSrc[0];
lpDst[1] = lpSrc[1];
lpSrc += lpStride;
lpDst += lpStride;
}
#endif
}
/**/
void CopyBlockHor(unsigned char * Src unsigned char * Dst int Stride)
{
int dy dx;
for (dy = 0; dy < 8; dy++) {
for (dx = 0; dx < 8; dx++) {
Dst[dx] = (Src[dx] + Src[dx+1]+1) >> 1; // hor interpolation with rounding
}
Src += Stride;
Dst += Stride;
}
}
/**/
void CopyBlockVer(unsigned char * Src unsigned char * Dst int
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 13 2001-04-20 08:18 mpeg4decsrc\DECORE\BUILD\CVS\Entries
文件 23 2001-04-20 08:18 mpeg4decsrc\DECORE\BUILD\CVS\Repository
文件 51 2001-04-20 08:18 mpeg4decsrc\DECORE\BUILD\CVS\Root
..AD... 0 2002-07-27 17:09 mpeg4decsrc\DECORE\BUILD\CVS
文件 7251 2002-07-27 17:19 mpeg4decsrc\DECORE\BUILD\WIN32\console.dsp
文件 3055 2004-12-08 00:16 mpeg4decsrc\DECORE\BUILD\WIN32\console.plg
文件 145 2001-04-20 08:18 mpeg4decsrc\DECORE\BUILD\WIN32\CVS\Entries
文件 29 2001-04-20 08:18 mpeg4decsrc\DECORE\BUILD\WIN32\CVS\Repository
文件 51 2001-04-20 08:18 mpeg4decsrc\DECORE\BUILD\WIN32\CVS\Root
..AD... 0 2002-07-27 17:09 mpeg4decsrc\DECORE\BUILD\WIN32\CVS
目录 0 2004-12-08 00:15 mpeg4decsrc\DECORE\BUILD\WIN32\Debug
文件 18514 2001-04-20 08:53 mpeg4decsrc\DECORE\BUILD\WIN32\DECORE.DSP
文件 724 2002-07-27 17:11 mpeg4decsrc\DECORE\BUILD\WIN32\DECORE.DSW
文件 132096 2004-12-08 00:20 mpeg4decsrc\DECORE\BUILD\WIN32\DECORE.ncb
文件 58880 2004-12-08 00:19 mpeg4decsrc\DECORE\BUILD\WIN32\DECORE.OPT
文件 127 2001-04-20 08:18 mpeg4decsrc\DECORE\BUILD\WIN32\TEST\CVS\Entries
文件 34 2001-04-20 08:18 mpeg4decsrc\DECORE\BUILD\WIN32\TEST\CVS\Repository
文件 51 2001-04-20 08:18 mpeg4decsrc\DECORE\BUILD\WIN32\TEST\CVS\Root
..AD... 0 2002-07-27 17:09 mpeg4decsrc\DECORE\BUILD\WIN32\TEST\CVS
文件 4128 2001-03-21 19:07 mpeg4decsrc\DECORE\BUILD\WIN32\TEST\test_basic_prediction.dsp
文件 566 2001-03-21 19:07 mpeg4decsrc\DECORE\BUILD\WIN32\TEST\test_basic_prediction.dsw
..AD... 0 2002-07-27 17:09 mpeg4decsrc\DECORE\BUILD\WIN32\TEST
..AD... 0 2002-07-27 17:09 mpeg4decsrc\DECORE\BUILD\WIN32
..AD... 0 2002-07-27 17:09 mpeg4decsrc\DECORE\BUILD
文件 36 2001-04-20 08:18 mpeg4decsrc\DECORE\CVS\Entries
文件 17 2001-04-20 08:18 mpeg4decsrc\DECORE\CVS\Repository
文件 51 2001-04-20 08:18 mpeg4decsrc\DECORE\CVS\Root
..AD... 0 2002-07-27 17:09 mpeg4decsrc\DECORE\CVS
文件 15798 2001-04-19 11:12 mpeg4decsrc\DECORE\SRC\ATT_MMX\basic_prediction_mmx.c
文件 59 2001-04-20 08:18 mpeg4decsrc\DECORE\SRC\ATT_MMX\CVS\Entries
............此处省略98个文件信息
- 上一篇:porttalk操作端口 .变速齿轮
- 下一篇:神经网络仿真工具源代码
相关资源
- 校园网络信息发布系统
- 扫雷(MVC架构)
- Delphi反编译工具的源码
- php程序实现数据库的增删改查
- 基于SSM+CXF构建的RESTFul webservice
- DSP 语音识别程序 DTW MFCC
- Modbus TCP Client
- 进销存管理系统PHP源码
- opencv环境配置
- xianshujiancheyi
- winsock win10 注册表备份文件
- lmdb代码——caffe
- pcsx2-0.9.8-r4600
- 发那科fanuc机器人robot(电气调试启动
- FANUC各硬件连接规格,型号,和连接方
- inject.rar
- 探索LHC耦合中的CP振动效应
- 复合共振的行为打破了轻质风味的普
- 重建希格斯产生的共振tau对中的半不
- 中微子质量和暗物质的模型,具有大
- 外来轻质风味违反希格斯衰变
- Zee模型的全参数扫描:探索希格斯轻
- B介子的重生和暗物质
- II型逆向跷跷板机制及其在LHC和ILC的签
- 在LHC s = 13 TeV时许多射流产生弱的矢量
- 标准模型中H衰变的轻子极化不对称
- 在大型强子对撞机上通过第三代费米
- Z玻色子衰变的标准模型EFT校正
- SVNDrv.sys
- TMS320VC5509A_开发板使用手册
评论
共有 条评论