Toggle navigation
Toggle navigation
此项目
正在载入...
Sign in
胡斌
/
srs
转到一个项目
Toggle navigation
项目
群组
代码片段
帮助
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
winlin
2014-11-07 22:15:56 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
955859ce8258c1f422ae3732020992b4d079dd28
955859ce
1 parent
1c237a82
refine librtmp, add pefix to srs_amf0_number and srs_amf0_bool
隐藏空白字符变更
内嵌
并排对比
正在显示
2 个修改的文件
包含
24 行增加
和
24 行删除
trunk/src/libs/srs_librtmp.cpp
trunk/src/libs/srs_librtmp.hpp
trunk/src/libs/srs_librtmp.cpp
查看文件 @
955859c
...
...
@@ -735,7 +735,7 @@ srs_amf0_t srs_amf0_parse(char* data, int size, int* nparsed)
return
amf0
;
}
srs_amf0_t
srs_amf0_create_number
(
amf0_number
value
)
srs_amf0_t
srs_amf0_create_number
(
srs_
amf0_number
value
)
{
return
SrsAmf0Any
::
number
(
value
);
}
...
...
@@ -790,43 +790,43 @@ int srs_amf0_serialize(srs_amf0_t amf0, char* data, int size)
return
ret
;
}
amf0_bool
srs_amf0_is_string
(
srs_amf0_t
amf0
)
srs_
amf0_bool
srs_amf0_is_string
(
srs_amf0_t
amf0
)
{
SrsAmf0Any
*
any
=
(
SrsAmf0Any
*
)
amf0
;
return
any
->
is_string
();
}
amf0_bool
srs_amf0_is_boolean
(
srs_amf0_t
amf0
)
srs_
amf0_bool
srs_amf0_is_boolean
(
srs_amf0_t
amf0
)
{
SrsAmf0Any
*
any
=
(
SrsAmf0Any
*
)
amf0
;
return
any
->
is_boolean
();
}
amf0_bool
srs_amf0_is_number
(
srs_amf0_t
amf0
)
srs_
amf0_bool
srs_amf0_is_number
(
srs_amf0_t
amf0
)
{
SrsAmf0Any
*
any
=
(
SrsAmf0Any
*
)
amf0
;
return
any
->
is_number
();
}
amf0_bool
srs_amf0_is_null
(
srs_amf0_t
amf0
)
srs_
amf0_bool
srs_amf0_is_null
(
srs_amf0_t
amf0
)
{
SrsAmf0Any
*
any
=
(
SrsAmf0Any
*
)
amf0
;
return
any
->
is_null
();
}
amf0_bool
srs_amf0_is_object
(
srs_amf0_t
amf0
)
srs_
amf0_bool
srs_amf0_is_object
(
srs_amf0_t
amf0
)
{
SrsAmf0Any
*
any
=
(
SrsAmf0Any
*
)
amf0
;
return
any
->
is_object
();
}
amf0_bool
srs_amf0_is_ecma_array
(
srs_amf0_t
amf0
)
srs_
amf0_bool
srs_amf0_is_ecma_array
(
srs_amf0_t
amf0
)
{
SrsAmf0Any
*
any
=
(
SrsAmf0Any
*
)
amf0
;
return
any
->
is_ecma_array
();
}
amf0_bool
srs_amf0_is_strict_array
(
srs_amf0_t
amf0
)
srs_
amf0_bool
srs_amf0_is_strict_array
(
srs_amf0_t
amf0
)
{
SrsAmf0Any
*
any
=
(
SrsAmf0Any
*
)
amf0
;
return
any
->
is_strict_array
();
...
...
@@ -838,19 +838,19 @@ const char* srs_amf0_to_string(srs_amf0_t amf0)
return
any
->
to_str_raw
();
}
amf0_bool
srs_amf0_to_boolean
(
srs_amf0_t
amf0
)
srs_
amf0_bool
srs_amf0_to_boolean
(
srs_amf0_t
amf0
)
{
SrsAmf0Any
*
any
=
(
SrsAmf0Any
*
)
amf0
;
return
any
->
to_boolean
();
}
amf0_number
srs_amf0_to_number
(
srs_amf0_t
amf0
)
srs_
amf0_number
srs_amf0_to_number
(
srs_amf0_t
amf0
)
{
SrsAmf0Any
*
any
=
(
SrsAmf0Any
*
)
amf0
;
return
any
->
to_number
();
}
void
srs_amf0_set_number
(
srs_amf0_t
amf0
,
amf0_number
value
)
void
srs_amf0_set_number
(
srs_amf0_t
amf0
,
srs_
amf0_number
value
)
{
SrsAmf0Any
*
any
=
(
SrsAmf0Any
*
)
amf0
;
any
->
set_number
(
value
);
...
...
trunk/src/libs/srs_librtmp.hpp
查看文件 @
955859c
...
...
@@ -269,10 +269,10 @@ extern flv_bool srs_flv_is_keyframe(char* data, int32_t size);
*************************************************************/
/* the output handler. */
typedef
void
*
srs_amf0_t
;
typedef
int
amf0_bool
;
typedef
double
amf0_number
;
typedef
int
srs_amf0_bool
;
typedef
double
srs_amf0_number
;
extern
srs_amf0_t
srs_amf0_parse
(
char
*
data
,
int
size
,
int
*
nparsed
);
extern
srs_amf0_t
srs_amf0_create_number
(
amf0_number
value
);
extern
srs_amf0_t
srs_amf0_create_number
(
srs_
amf0_number
value
);
extern
srs_amf0_t
srs_amf0_create_ecma_array
();
extern
srs_amf0_t
srs_amf0_create_strict_array
();
extern
srs_amf0_t
srs_amf0_create_object
();
...
...
@@ -282,19 +282,19 @@ extern void srs_amf0_free_bytes(char* data);
extern
int
srs_amf0_size
(
srs_amf0_t
amf0
);
extern
int
srs_amf0_serialize
(
srs_amf0_t
amf0
,
char
*
data
,
int
size
);
/* type detecter */
extern
amf0_bool
srs_amf0_is_string
(
srs_amf0_t
amf0
);
extern
amf0_bool
srs_amf0_is_boolean
(
srs_amf0_t
amf0
);
extern
amf0_bool
srs_amf0_is_number
(
srs_amf0_t
amf0
);
extern
amf0_bool
srs_amf0_is_null
(
srs_amf0_t
amf0
);
extern
amf0_bool
srs_amf0_is_object
(
srs_amf0_t
amf0
);
extern
amf0_bool
srs_amf0_is_ecma_array
(
srs_amf0_t
amf0
);
extern
amf0_bool
srs_amf0_is_strict_array
(
srs_amf0_t
amf0
);
extern
srs_amf0_bool
srs_amf0_is_string
(
srs_amf0_t
amf0
);
extern
srs_amf0_bool
srs_amf0_is_boolean
(
srs_amf0_t
amf0
);
extern
srs_amf0_bool
srs_amf0_is_number
(
srs_amf0_t
amf0
);
extern
srs_amf0_bool
srs_amf0_is_null
(
srs_amf0_t
amf0
);
extern
srs_amf0_bool
srs_amf0_is_object
(
srs_amf0_t
amf0
);
extern
srs_amf0_bool
srs_amf0_is_ecma_array
(
srs_amf0_t
amf0
);
extern
srs_amf0_bool
srs_amf0_is_strict_array
(
srs_amf0_t
amf0
);
/* value converter */
extern
const
char
*
srs_amf0_to_string
(
srs_amf0_t
amf0
);
extern
amf0_bool
srs_amf0_to_boolean
(
srs_amf0_t
amf0
);
extern
amf0_number
srs_amf0_to_number
(
srs_amf0_t
amf0
);
extern
srs_amf0_bool
srs_amf0_to_boolean
(
srs_amf0_t
amf0
);
extern
srs_amf0_number
srs_amf0_to_number
(
srs_amf0_t
amf0
);
/* value setter */
extern
void
srs_amf0_set_number
(
srs_amf0_t
amf0
,
amf0_number
value
);
extern
void
srs_amf0_set_number
(
srs_amf0_t
amf0
,
srs_
amf0_number
value
);
/* object value converter */
extern
int
srs_amf0_object_property_count
(
srs_amf0_t
amf0
);
extern
const
char
*
srs_amf0_object_property_name_at
(
srs_amf0_t
amf0
,
int
index
);
...
...
请
注册
或
登录
后发表评论