Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
F
freeswitch
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
张华
freeswitch
Commits
d1b45ae6
提交
d1b45ae6
authored
8月 09, 2012
作者:
Steve Underwood
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
A couple of typos in spandsp
Improvements to image flattening in spandsp's image translate code
上级
a4115a09
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
9 行增加
和
11 行删除
+9
-11
image_translate.c
libs/spandsp/src/image_translate.c
+7
-9
ima_adpcm.h
libs/spandsp/src/spandsp/ima_adpcm.h
+1
-1
ima_adpcm.h
libs/spandsp/src/spandsp/private/ima_adpcm.h
+1
-1
没有找到文件。
libs/spandsp/src/image_translate.c
浏览文件 @
d1b45ae6
...
...
@@ -163,10 +163,9 @@ static int image_gray16_to_colour16_row(uint16_t colour16[], uint16_t gray16[],
for
(
i
=
pixels
-
1
;
i
>=
0
;
i
--
)
{
/* TODO: need to balance the colours */
colour16
[
3
*
i
]
=
gray16
[
i
];
colour16
[
3
*
i
+
1
]
=
gray16
[
i
];
colour16
[
3
*
i
+
2
]
=
gray16
[
i
];
colour16
[
3
*
i
]
=
saturateu16
((
gray16
[
i
]
*
36532
)
>>
15
);
colour16
[
3
*
i
+
1
]
=
saturateu16
((
gray16
[
i
]
*
37216
)
>>
16
);
colour16
[
3
*
i
+
2
]
=
saturateu16
((
gray16
[
i
]
*
47900
)
>>
14
);
}
return
pixels
;
}
...
...
@@ -178,10 +177,9 @@ static int image_gray16_to_colour8_row(uint8_t colour8[], uint16_t gray16[], int
for
(
i
=
pixels
-
1
;
i
>=
0
;
i
--
)
{
/* TODO: need to balance the colours */
colour8
[
3
*
i
]
=
gray16
[
i
]
>>
8
;
colour8
[
3
*
i
+
1
]
=
gray16
[
i
]
>>
8
;
colour8
[
3
*
i
+
2
]
=
gray16
[
i
]
>>
8
;
colour8
[
3
*
i
]
=
saturateu8
((
gray16
[
i
]
*
36532
)
>>
23
);
colour8
[
3
*
i
+
1
]
=
saturateu8
((
gray16
[
i
]
*
37216
)
>>
24
);
colour8
[
3
*
i
+
2
]
=
saturateu8
((
gray16
[
i
]
*
47900
)
>>
22
);
}
return
pixels
;
}
...
...
@@ -530,7 +528,7 @@ SPAN_DECLARE(int) image_translate_row(image_translate_state_t *s, uint8_t buf[],
else
{
i
=
s
->
output_width
*
s
->
output_bytes_per_pixel
;
memcpy
(
buf
,
s
->
pixel_row
[
1
],
i
);
memcpy
(
buf
,
s
->
pixel_row
[
0
],
i
);
}
return
i
;
}
...
...
libs/spandsp/src/spandsp/ima_adpcm.h
浏览文件 @
d1b45ae6
/*
* SpanDSP - a series of DSP components for telephony
*
* ima_adpcm.
c
- Conversion routines between linear 16 bit PCM data and
* ima_adpcm.
h
- Conversion routines between linear 16 bit PCM data and
* IMA/DVI/Intel ADPCM format.
*
* Written by Steve Underwood <steveu@coppice.org>
...
...
libs/spandsp/src/spandsp/private/ima_adpcm.h
浏览文件 @
d1b45ae6
/*
* SpanDSP - a series of DSP components for telephony
*
* private/ima_adpcm.
c
- Conversion routines between linear 16 bit PCM data
* private/ima_adpcm.
h
- Conversion routines between linear 16 bit PCM data
* and IMA/DVI/Intel ADPCM format.
*
* Written by Steve Underwood <steveu@coppice.org>
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论