91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 9.05MB
    文件類型: .rar
    金幣: 2
    下載: 0 次
    發布日期: 2023-11-03
  • 語言: 其他
  • 標簽: vs2010??h264??x264??mpeg??

資源簡介

x264-snapshot-20091006-2245版本h264編碼,針對vs2010的修改。 修改了在vs工程下定義變量的錯誤,初始化內存的錯誤問題。 編譯通過。 對http://trace.eas.asu.edu/yuv/網站上的176x144(qcif)和352x288(cif)yuv測試正常運行。

資源截圖

代碼片段和文件信息

/*****************************************************************************
?*?matroska.c:
?*****************************************************************************
?*?Copyright?(C)?2005?Mike?Matsnev
?*
?*?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.?51?Franklin?Street?Fifth?Floor?Boston?MA??02111?USA.
?*****************************************************************************/

#include?
#include?
#include?“common/osdep.h“
#include?“matroska.h“

#define?CLSIZE?1048576
#define?CHECK(x)\
do\
{\
????if(?(x)?}\
while(?0?)

struct?mk_context
{
????struct?mk_context?*next?**prev?*parent;
????struct?mk_writer?*owner;
????unsigned?id;

????void?*data;
????unsigned?d_cur?d_max;
};

typedef?struct?mk_context?mk_context;

struct?mk_writer
{
????FILE?*fp;

????unsigned?duration_ptr;

????mk_context?*root?*cluster?*frame;
????mk_context?*freelist;
????mk_context?*actlist;

????int64_t?def_duration;
????int64_t?timescale;
????int64_t?cluster_tc_scaled;
????int64_t?frame_tc?prev_frame_tc_scaled?max_frame_tc;

????char?wrote_header?in_frame?keyframe;
};

static?mk_context?*mk_create_context(?mk_writer?*w?mk_context?*parent?unsigned?id?)
{
????mk_context??*c;

????if(?w->freelist?)
????{
????????c?=?w->freelist;
????????w->freelist?=?w->freelist->next;
????}
????else
????{
????????c?=?malloc(?sizeof(*c)?);
????????if(?!c?)
????????????return?NULL;
????????memset(?c?0?sizeof(*c)?);
????}

????c->parent?=?parent;
????c->owner?=?w;
????c->id?=?id;

????if(?c->owner->actlist?)
????????c->owner->actlist->prev?=?&c->next;
????c->next?=?c->owner->actlist;
????c->prev?=?&c->owner->actlist;
????c->owner->actlist?=?c;

????return?c;
}

static?int?mk_append_context_data(?mk_context?*c?const?void?*data?unsigned?size?)
{
????unsigned?ns?=?c->d_cur?+?size;

????if(?ns?>?c->d_max?)
????{
????????void?*dp;
????????unsigned?dn?=?c->d_max???c->d_max?<????????while(?ns?>?dn?)
????????????dn?<<=?1;

????????dp?=?realloc(?c->data?dn?);
????????if(?!dp?)
????????????return?-1;

????????c->data?=?dp;
????????c->d_max?=?dn;
????}

????memcpy(?(char*)c->data?+?c->d_cur?data?size?);

????c->d_cur?=?ns;

????return?0;
}

static?int?mk_write_id(?mk_context?*c?unsigned?id?)
{
????unsigned?char?c_id[4]?=?{?id?>>?24?id?>>?16?id?>>?8?id?};

????if(?c_id[0]?)
????????return?mk_append_context_data(?c?c_id?4?);
??

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----

?????文件????????256??2009-10-06?04:45??vs-2010-x264-snapshot-20091005-2245\.git\config

?????文件?????????58??2009-10-06?04:45??vs-2010-x264-snapshot-20091005-2245\.git\description

?????文件?????????23??2009-10-06?04:45??vs-2010-x264-snapshot-20091005-2245\.git\HEAD

?????文件????????441??2009-10-06?04:45??vs-2010-x264-snapshot-20091005-2245\.git\hooks\applypatch-msg

?????文件????????887??2009-10-06?04:45??vs-2010-x264-snapshot-20091005-2245\.git\hooks\commit-msg

?????文件????????152??2009-10-06?04:45??vs-2010-x264-snapshot-20091005-2245\.git\hooks\post-commit

?????文件????????510??2009-10-06?04:45??vs-2010-x264-snapshot-20091005-2245\.git\hooks\post-receive

?????文件????????207??2009-10-06?04:45??vs-2010-x264-snapshot-20091005-2245\.git\hooks\post-update

?????文件????????387??2009-10-06?04:45??vs-2010-x264-snapshot-20091005-2245\.git\hooks\pre-applypatch

?????文件???????1706??2009-10-06?04:45??vs-2010-x264-snapshot-20091005-2245\.git\hooks\pre-commit

?????文件???????4262??2009-10-06?04:45??vs-2010-x264-snapshot-20091005-2245\.git\hooks\pre-rebase

?????文件???????1196??2009-10-06?04:45??vs-2010-x264-snapshot-20091005-2245\.git\hooks\prepare-commit-msg

?????文件???????2910??2009-10-06?04:45??vs-2010-x264-snapshot-20091005-2245\.git\hooks\update

?????文件??????10840??2009-10-06?04:45??vs-2010-x264-snapshot-20091005-2245\.git\index

?????文件????????240??2009-10-06?04:45??vs-2010-x264-snapshot-20091005-2245\.git\info\exclude

?????文件????????182??2009-10-06?04:45??vs-2010-x264-snapshot-20091005-2245\.git\logs\HEAD

?????文件????????182??2009-10-06?04:45??vs-2010-x264-snapshot-20091005-2245\.git\logs\refs\heads\master

?????文件????????182??2009-10-06?04:45??vs-2010-x264-snapshot-20091005-2245\.git\logs\refs\remotes\origin\HEAD

?????文件????????182??2009-10-06?04:45??vs-2010-x264-snapshot-20091005-2245\.git\logs\refs\remotes\origin\master

?????文件?????213824??2009-10-06?04:45??vs-2010-x264-snapshot-20091005-2245\.git\objects\pack\pack-ea0ab62c4129f220c2831c044d642ec26c51984a.idx

?????文件????2214951??2009-10-06?04:45??vs-2010-x264-snapshot-20091005-2245\.git\objects\pack\pack-ea0ab62c4129f220c2831c044d642ec26c51984a.pack

?????文件?????????41??2009-10-06?04:45??vs-2010-x264-snapshot-20091005-2245\.git\refs\heads\master

?????文件?????????32??2009-10-06?04:45??vs-2010-x264-snapshot-20091005-2245\.git\refs\remotes\origin\HEAD

?????文件?????????41??2009-10-06?04:45??vs-2010-x264-snapshot-20091005-2245\.git\refs\remotes\origin\master

?????文件????????156??2009-10-06?04:45??vs-2010-x264-snapshot-20091005-2245\.gitignore

?????文件???????2002??2009-10-06?04:45??vs-2010-x264-snapshot-20091005-2245\AUTHORS

?????文件???????3726??2012-12-14?14:38??vs-2010-x264-snapshot-20091005-2245\build\win32\Debug\libx264.Build.CppClean.log

?????文件????????397??2012-12-14?14:38??vs-2010-x264-snapshot-20091005-2245\build\win32\Debug\libx264.log

?????文件???35651584??2012-12-14?14:38??vs-2010-x264-snapshot-20091005-2245\build\win32\ipch\x264-bbece019\obj\x264_debug\x264-edb24b7a.ipch

?????文件??????31069??2009-10-06?04:45??vs-2010-x264-snapshot-20091005-2245\build\win32\libx264.vcproj

............此處省略189個文件信息

評論

共有 條評論