Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
F
freeswitch
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
张华
freeswitch
Commits
94571e3c
提交
94571e3c
authored
9月 03, 2006
作者:
Anthony Minessale
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
dox
git-svn-id:
http://svn.freeswitch.org/svn/freeswitch/trunk@2484
d0543943-73ff-0310-b7d9-9358b9ac24b2
上级
8543778b
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
5 行增加
和
1 行删除
+5
-1
switch_bitpack.h
src/include/switch_bitpack.h
+5
-1
没有找到文件。
src/include/switch_bitpack.h
浏览文件 @
94571e3c
...
@@ -26,7 +26,7 @@
...
@@ -26,7 +26,7 @@
* Anthony Minessale II <anthmct@yahoo.com>
* Anthony Minessale II <anthmct@yahoo.com>
*
*
*
*
* switch_
utils.h -- Compatability and Helper Code
* switch_
bitpack.h -- BITPACKING code for RFC3551 and AAL2 packing
*
*
*/
*/
/*! \file switch_bitpack.h
/*! \file switch_bitpack.h
...
@@ -74,6 +74,7 @@ static const int8_t SWITCH_REVERSE_BITPACKED_MASKS[] = {255, 254, 252, 248, 240,
...
@@ -74,6 +74,7 @@ static const int8_t SWITCH_REVERSE_BITPACKED_MASKS[] = {255, 254, 252, 248, 240,
\param buflen the length of the storage buffer
\param buflen the length of the storage buffer
\param mode RFC3551 or AAL2 mode (curse you backwards folks)
\param mode RFC3551 or AAL2 mode (curse you backwards folks)
*/
*/
DoxyDefine
(
void
switch_bitpack_init
(
switch_bitpack_t
*
pack
,
int32_t
bitlen
,
switch_byte_t
*
buf
,
uint32_t
buflen
,
switch_bitpack_mode_t
mode
))
static
inline
void
switch_bitpack_init
(
switch_bitpack_t
*
pack
,
int32_t
bitlen
,
switch_byte_t
*
buf
,
uint32_t
buflen
,
switch_bitpack_mode_t
mode
)
static
inline
void
switch_bitpack_init
(
switch_bitpack_t
*
pack
,
int32_t
bitlen
,
switch_byte_t
*
buf
,
uint32_t
buflen
,
switch_bitpack_mode_t
mode
)
{
{
memset
(
pack
,
0
,
sizeof
(
*
pack
));
memset
(
pack
,
0
,
sizeof
(
*
pack
));
...
@@ -117,6 +118,7 @@ static inline void pack_check_over(switch_bitpack_t *pack)
...
@@ -117,6 +118,7 @@ static inline void pack_check_over(switch_bitpack_t *pack)
\brief finalize a bitpack object
\brief finalize a bitpack object
\param pack the pack/unpack object
\param pack the pack/unpack object
*/
*/
DoxyDefine
(
int8_t
switch_bitpack_done
(
switch_bitpack_t
*
pack
))
static
inline
int8_t
switch_bitpack_done
(
switch_bitpack_t
*
pack
)
static
inline
int8_t
switch_bitpack_done
(
switch_bitpack_t
*
pack
)
{
{
...
@@ -140,6 +142,7 @@ static inline int8_t switch_bitpack_done(switch_bitpack_t *pack)
...
@@ -140,6 +142,7 @@ static inline int8_t switch_bitpack_done(switch_bitpack_t *pack)
\param in a 1 byte int packed with bits
\param in a 1 byte int packed with bits
\return -1 if the buffer is full otherwise 0
\return -1 if the buffer is full otherwise 0
*/
*/
DoxyDefine
(
int8_t
switch_bitpack_out
(
switch_bitpack_t
*
unpack
,
switch_byte_t
in
))
static
inline
int8_t
switch_bitpack_out
(
switch_bitpack_t
*
unpack
,
switch_byte_t
in
)
static
inline
int8_t
switch_bitpack_out
(
switch_bitpack_t
*
unpack
,
switch_byte_t
in
)
{
{
switch_byte_t
this
;
switch_byte_t
this
;
...
@@ -210,6 +213,7 @@ static inline int8_t switch_bitpack_out(switch_bitpack_t *unpack, switch_byte_t
...
@@ -210,6 +213,7 @@ static inline int8_t switch_bitpack_out(switch_bitpack_t *unpack, switch_byte_t
\param in a 1 byte int with 1 packet worth of bits
\param in a 1 byte int with 1 packet worth of bits
\return -1 if the buffer is full otherwise 0
\return -1 if the buffer is full otherwise 0
*/
*/
DoxyDefine
(
int8_t
switch_bitpack_in
(
switch_bitpack_t
*
pack
,
switch_byte_t
in
))
static
inline
int8_t
switch_bitpack_in
(
switch_bitpack_t
*
pack
,
switch_byte_t
in
)
static
inline
int8_t
switch_bitpack_in
(
switch_bitpack_t
*
pack
,
switch_byte_t
in
)
{
{
int
next
=
pack
->
bits_cur
+
pack
->
frame_bits
;
int
next
=
pack
->
bits_cur
+
pack
->
frame_bits
;
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论