資源簡介
這個資料很不錯的,用C++實現MPEG4的編解碼,很有用的,希望大家喜歡啊

代碼片段和文件信息
/**************************************************************************
?*????????????????????????????????????????????????????????????????????????*
?*?This?code?is?developed?by?Adam?Li.??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?.??????????????????????*
?*????????????????????????????????????????????????????????????????????????*
?**************************************************************************/
/**************************************************************************
?*
?*??mom_bitstream.c
?*
?*??Copyright?(C)?2001??Project?Mayo
?*
?*??Adam?Li
?*
?*??DivX?Advance?Research?Center?
?*
?**************************************************************************/
#include?“bitstream.h“
/*?to?mask?the?n?least?significant?bits?of?an?integer?*/
static?unsigned?int?mask[33]?=
{
??0x00000000?0x00000001?0x00000003?0x00000007
??0x0000000f?0x0000001f?0x0000003f?0x0000007f
??0x000000ff?0x000001ff?0x000003ff?0x000007ff
??0x00000fff?0x00001fff?0x00003fff?0x00007fff
??0x0000ffff?0x0001ffff?0x0003ffff?0x0007ffff
??0x000fffff?0x001fffff?0x003fffff?0x007fffff
??0x00ffffff?0x01ffffff?0x03ffffff?0x07ffffff
??0x0fffffff?0x1fffffff?0x3fffffff?0x7fffffff
??0xffffffff
};
/*?static?data?for?pointers?and?counters?*/
/*?byte?pointer?to?the?output?bitstream?*/
static?unsigned?char?*byteptr;
/*?counter?of?how?many?bytes?got?written?to?the?bitstream?*/
static?int?bytecnt;?
/*?a?one?byte?temporary?buffer?*/
static?unsigned?char?outbfr;
/*?counter?of?how?many?unused?bits?left?in?the?byte?buffer?*/
static?int?outcnt;
void?Bitstream_Init(void?*buffer)
{
byteptr?=?(unsigned?char?*)buffer;
bytecnt?=?0;
outbfr?=?0;
outcnt?=?8;
}
void?Bitstream_PutBits(int?n?unsigned?
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件?????????13??2001-04-20?08:18??MPEG-4\build\CVS\Entries
?????文件?????????51??2001-04-20?08:18??MPEG-4\build\CVS\Root
?????文件?????????23??2001-04-20?08:18??MPEG-4\build\CVS\Repository
?????文件????????534??2001-01-19?06:34??MPEG-4\build\win32\encore.dsw
?????文件???????5960??2002-07-27?17:27??MPEG-4\build\win32\encore.dsp
?????文件?????????95??2001-04-20?08:18??MPEG-4\build\win32\CVS\Entries
?????文件?????????51??2001-04-20?08:18??MPEG-4\build\win32\CVS\Root
?????文件?????????29??2001-04-20?08:18??MPEG-4\build\win32\CVS\Repository
?????文件?????????81??2001-04-20?08:18??MPEG-4\CVS\Entries
?????文件?????????51??2001-04-20?08:18??MPEG-4\CVS\Root
?????文件?????????17??2001-04-20?08:18??MPEG-4\CVS\Repository
?????文件???????3370??2001-01-27?10:24??MPEG-4\src\mom_structs.h
?????文件??????12950??2001-04-12?07:12??MPEG-4\src\encore.c
?????文件????????383??2001-01-19?06:34??MPEG-4\src\non_unix.h
?????文件????????739??2001-01-27?23:15??MPEG-4\src\text_code.h
?????文件??????10458??2001-01-27?10:24??MPEG-4\src\mom_access.c
?????文件???????1251??2001-01-19?06:34??MPEG-4\src\zigzag.h
?????文件????????934??2001-01-19?06:34??MPEG-4\src\vm_enc_defs.h
?????文件???????2071??2001-04-12?03:29??MPEG-4\src\encore.h
?????文件??????11471??2001-04-12?03:29??MPEG-4\src\vop_code.c
?????文件???????3596??2001-01-27?10:24??MPEG-4\src\mom_access.h
?????文件??????15145??2001-02-21?02:03??MPEG-4\src\mom_util.c
?????文件???????5574??2001-04-10?03:04??MPEG-4\src\rate_ctl.c
?????文件??????24408??2001-01-27?23:15??MPEG-4\src\putvlc.c
?????文件????????634??2001-01-27?23:15??MPEG-4\src\vop_code.h
?????文件??????13779??2001-04-06?08:45??MPEG-4\src\mot_util.c
?????文件???????5305??2001-01-29?05:50??MPEG-4\src\vm_common_defs.h
?????文件??????21595??2001-04-06?08:45??MPEG-4\src\mot_est_comp.c
?????文件????????382??2001-04-10?03:04??MPEG-4\src\rate_ctl.h
?????文件???????1255??2001-01-27?23:15??MPEG-4\src\mom_util.h
............此處省略41個文件信息
評論
共有 條評論