资源简介
MPEG4编解码的C语言源代码-已移植到ARM和DSP上
代码片段和文件信息
/**************************************************************************
* *
* 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 23:18 DECORE\BUILD\CVS\Entries
文件 23 2001-04-20 23:18 DECORE\BUILD\CVS\Repository
文件 51 2001-04-20 23:18 DECORE\BUILD\CVS\Root
文件 7251 2002-07-28 08:19 DECORE\BUILD\WIN32\console.dsp
文件 3055 2004-12-08 15:16 DECORE\BUILD\WIN32\console.plg
文件 145 2001-04-20 23:18 DECORE\BUILD\WIN32\CVS\Entries
文件 29 2001-04-20 23:18 DECORE\BUILD\WIN32\CVS\Repository
文件 51 2001-04-20 23:18 DECORE\BUILD\WIN32\CVS\Root
文件 18514 2001-04-20 23:53 DECORE\BUILD\WIN32\DECORE.DSP
文件 724 2002-07-28 08:11 DECORE\BUILD\WIN32\DECORE.DSW
文件 132096 2004-12-08 15:20 DECORE\BUILD\WIN32\DECORE.ncb
文件 58880 2004-12-08 15:19 DECORE\BUILD\WIN32\DECORE.OPT
文件 127 2001-04-20 23:18 DECORE\BUILD\WIN32\TEST\CVS\Entries
文件 34 2001-04-20 23:18 DECORE\BUILD\WIN32\TEST\CVS\Repository
文件 51 2001-04-20 23:18 DECORE\BUILD\WIN32\TEST\CVS\Root
文件 4128 2001-03-22 10:07 DECORE\BUILD\WIN32\TEST\test_basic_prediction.dsp
文件 566 2001-03-22 10:07 DECORE\BUILD\WIN32\TEST\test_basic_prediction.dsw
文件 36 2001-04-20 23:18 DECORE\CVS\Entries
文件 17 2001-04-20 23:18 DECORE\CVS\Repository
文件 51 2001-04-20 23:18 DECORE\CVS\Root
文件 15798 2001-04-20 02:12 DECORE\SRC\ATT_MMX\basic_prediction_mmx.c
文件 59 2001-04-20 23:18 DECORE\SRC\ATT_MMX\CVS\Entries
文件 29 2001-04-20 23:18 DECORE\SRC\ATT_MMX\CVS\Repository
文件 51 2001-04-20 23:18 DECORE\SRC\ATT_MMX\CVS\Root
文件 7339 2001-04-07 11:09 DECORE\SRC\basic_prediction.c
文件 2939 2001-04-07 11:09 DECORE\SRC\basic_prediction.h
文件 2140 2001-04-03 15:10 DECORE\SRC\clearblock.c
文件 1903 2001-04-03 15:10 DECORE\SRC\clearblock.h
文件 2104 2001-04-20 23:18 DECORE\SRC\CVS\Entries
文件 21 2001-04-20 23:18 DECORE\SRC\CVS\Repository
............此处省略97个文件信息
评论
共有 条评论