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

  • 大小: 8.44MB
    文件類型: .rar
    金幣: 2
    下載: 0 次
    發(fā)布日期: 2023-11-29
  • 語言: 其他
  • 標(biāo)簽: librtmp??封裝??

資源簡介

librtmp 封裝,實(shí)時獲取h264 aac 音視頻流發(fā)往流媒體服務(wù)器

資源截圖

代碼片段和文件信息

/*
?*??????Copyright?(C)?2005-2008?Team?XBMC
?*??????http://www.xbmc.org
?*??????Copyright?(C)?2008-2009?Andrej?Stepanchuk
?*??????Copyright?(C)?2009-2010?Howard?Chu
?*
?*??This?file?is?part?of?librtmp.
?*
?*??librtmp?is?free?software;?you?can?redistribute?it?and/or?modify
?*??it?under?the?terms?of?the?GNU?Lesser?General?Public?License?as
?*??published?by?the?Free?Software?Foundation;?either?version?2.1
?*??or?(at?your?option)?any?later?version.
?*
?*??librtmp?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?Lesser?General?Public?License
?*??along?with?librtmp?see?the?file?COPYING.??If?not?write?to
?*??the?Free?Software?Foundation?Inc.?51?Franklin?Street?Fifth?Floor
?*??Boston?MA??02110-1301?USA.
?*??http://www.gnu.org/copyleft/lgpl.html
?*/

#include?
#include?
#include?

#include?“rtmp_sys.h“
#include?“amf.h“
#include?“l(fā)og.h“
#include?“bytes.h“

static?const?AMFobjectProperty?AMFProp_Invalid?=?{?{0?0}?AMF_INVALID?};
static?const?AVal?AV_empty?=?{?0?0?};

/*?Data?is?Big-Endian?*/
unsigned?short
AMF_DecodeInt16(const?char?*data)
{
??unsigned?char?*c?=?(unsigned?char?*)?data;
??unsigned?short?val;
??val?=?(c[0]?<??return?val;
}

unsigned?int
AMF_DecodeInt24(const?char?*data)
{
??unsigned?char?*c?=?(unsigned?char?*)?data;
??unsigned?int?val;
??val?=?(c[0]?<??return?val;
}

unsigned?int
AMF_DecodeInt32(const?char?*data)
{
??unsigned?char?*c?=?(unsigned?char?*)data;
??unsigned?int?val;
??val?=?(c[0]?<??return?val;
}

void
AMF_DecodeString(const?char?*data?AVal?*bv)
{
??bv->av_len?=?AMF_DecodeInt16(data);
??bv->av_val?=?(bv->av_len?>?0)???(char?*)data?+?2?:?NULL;
}

void
AMF_DecodeLongString(const?char?*data?AVal?*bv)
{
??bv->av_len?=?AMF_DecodeInt32(data);
??bv->av_val?=?(bv->av_len?>?0)???(char?*)data?+?4?:?NULL;
}

double
AMF_DecodeNumber(const?char?*data)
{
??double?dVal;
#if?__FLOAT_WORD_ORDER?==?__BYTE_ORDER
#if?__BYTE_ORDER?==?__BIG_ENDIAN
??memcpy(&dVal?data?8);
#elif?__BYTE_ORDER?==?__LITTLE_ENDIAN
??unsigned?char?*ci?*co;
??ci?=?(unsigned?char?*)data;
??co?=?(unsigned?char?*)&dVal;
??co[0]?=?ci[7];
??co[1]?=?ci[6];
??co[2]?=?ci[5];
??co[3]?=?ci[4];
??co[4]?=?ci[3];
??co[5]?=?ci[2];
??co[6]?=?ci[1];
??co[7]?=?ci[0];
#endif
#else
#if?__BYTE_ORDER?==?__LITTLE_ENDIAN /*?__FLOAT_WORD_ORER?==?__BIG_ENDIAN?*/
??unsigned?char?*ci?*co;
??ci?=?(unsigned?char?*)data;
??co?=?(unsigned?char?*)&dVal;
??co[0]?=?ci[3];
??co[1]?=?ci[2];
??co[2]?=?ci[1];
??co[3]?=?ci[0];
??co[4]?=?ci[7];
??co[5]?=?ci[6];
??co[6]?=?ci[5];
??co[7]?=?ci[4];
#else?/*?__BYTE_ORDER?==?__BIG_ENDIAN?&&?__FLOAT_WORD_ORER?==?__LITTLE_ENDIAN?*/
??unsigned?char?*ci?*co;
??ci?=?(unsigned?char?*)data;
??co?=?(unsigned?char?*)&dVal;

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

?????文件???????5475??2010-07-01?03:58??librtmp\include\amf.h

?????文件???????2539??2010-07-01?03:58??librtmp\include\bytes.h

?????文件???????8264??2010-07-01?03:58??librtmp\include\dh.h

?????文件???????9575??2010-07-01?03:58??librtmp\include\dhgroups.h

?????文件??????31323??2010-07-01?03:58??librtmp\include\handshake.h

?????文件???????1637??2010-07-01?03:58??librtmp\include\http.h

?????文件???????1905??2010-07-01?03:58??librtmp\include\log.h

?????文件???????5318??2014-05-19?11:34??librtmp\include\openssl\aes.h

?????文件??????52116??2014-05-19?11:34??librtmp\include\openssl\asn1.h

?????文件??????30092??2014-05-19?11:34??librtmp\include\openssl\asn1t.h

?????文件??????19143??2014-05-19?11:34??librtmp\include\openssl\asn1_mac.h

?????文件??????30922??2014-05-19?11:34??librtmp\include\openssl\bio.h

?????文件???????5043??2014-05-19?11:34??librtmp\include\openssl\blowfish.h

?????文件??????34997??2014-05-19?11:34??librtmp\include\openssl\bn.h

?????文件???????4646??2014-05-19?11:34??librtmp\include\openssl\buffer.h

?????文件???????4833??2014-05-19?11:34??librtmp\include\openssl\camellia.h

?????文件???????4388??2014-05-19?11:34??librtmp\include\openssl\cast.h

?????文件??????19070??2014-05-19?11:34??librtmp\include\openssl\cms.h

?????文件???????1978??2014-05-19?11:34??librtmp\include\openssl\comp.h

?????文件???????9848??2014-05-19?11:34??librtmp\include\openssl\conf.h

?????文件???????4080??2014-05-19?11:34??librtmp\include\openssl\conf_api.h

?????文件??????23162??2014-05-19?11:34??librtmp\include\openssl\crypto.h

?????文件??????10736??2014-05-19?11:34??librtmp\include\openssl\des.h

?????文件??????18238??2014-05-19?11:34??librtmp\include\openssl\des_old.h

?????文件???????9275??2014-05-19?11:34??librtmp\include\openssl\dh.h

?????文件??????11340??2014-05-19?11:34??librtmp\include\openssl\dsa.h

?????文件??????18095??2014-05-19?11:34??librtmp\include\openssl\dso.h

?????文件???????7601??2014-05-19?11:34??librtmp\include\openssl\dtls1.h

?????文件????????540??2014-05-19?11:34??librtmp\include\openssl\ebcdic.h

?????文件??????43844??2014-05-19?11:34??librtmp\include\openssl\ec.h

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

評論

共有 條評論