Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
F
freeswitch
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
张华
freeswitch
Commits
a5ce5de5
提交
a5ce5de5
authored
4月 04, 2013
作者:
Steve Underwood
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
More preparation for colour FAX
上级
0b4340c3
隐藏空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
58 行增加
和
38 行删除
+58
-38
t30.h
libs/spandsp/src/spandsp/private/t30.h
+1
-1
t30_api.h
libs/spandsp/src/spandsp/t30_api.h
+10
-3
t30_api.c
libs/spandsp/src/t30_api.c
+9
-1
fax_tests.c
libs/spandsp/tests/fax_tests.c
+16
-15
tsb85_tests.c
libs/spandsp/tests/tsb85_tests.c
+16
-15
mod_spandsp_fax.c
src/mod/applications/mod_spandsp/mod_spandsp_fax.c
+6
-3
没有找到文件。
libs/spandsp/src/spandsp/private/t30.h
浏览文件 @
a5ce5de5
...
...
@@ -54,7 +54,7 @@ struct t30_state_s
int
supported_compressions
;
/*! \brief A bit mask of the currently supported bi-level image resolutions. */
int
supported_bilevel_resolutions
;
/*! \brief A bit mask of the currently supported colour image resolutions. */
/*! \brief A bit mask of the currently supported
gray-scale and
colour image resolutions. */
int
supported_colour_resolutions
;
/*! \brief A bit mask of the currently supported image sizes. */
int
supported_image_sizes
;
...
...
libs/spandsp/src/spandsp/t30_api.h
浏览文件 @
a5ce5de5
...
...
@@ -467,12 +467,19 @@ SPAN_DECLARE(int) t30_set_supported_modems(t30_state_t *s, int supported_modems)
\return 0 if OK, else -1. */
SPAN_DECLARE
(
int
)
t30_set_supported_compressions
(
t30_state_t
*
s
,
int
supported_compressions
);
/*! Specify which resolutions are supported by a T.30 context.
\brief Specify supported resolutions.
/*! Specify which
bi-level
resolutions are supported by a T.30 context.
\brief Specify supported
bi-level
resolutions.
\param s The T.30 context.
\param supported_resolutions Bit field list of the supported resolutions.
\return 0 if OK, else -1. */
SPAN_DECLARE
(
int
)
t30_set_supported_resolutions
(
t30_state_t
*
s
,
int
supported_resolutions
);
SPAN_DECLARE
(
int
)
t30_set_supported_bilevel_resolutions
(
t30_state_t
*
s
,
int
supported_resolutions
);
/*! Specify which colour resolutions are supported by a T.30 context.
\brief Specify supported colour resolutions.
\param s The T.30 context.
\param supported_resolutions Bit field list of the supported resolutions.
\return 0 if OK, else -1. */
SPAN_DECLARE
(
int
)
t30_set_supported_colour_resolutions
(
t30_state_t
*
s
,
int
supported_resolutions
);
/*! Specify which images sizes are supported by a T.30 context.
\brief Specify supported image sizes.
...
...
libs/spandsp/src/t30_api.c
浏览文件 @
a5ce5de5
...
...
@@ -710,7 +710,7 @@ SPAN_DECLARE(int) t30_set_supported_compressions(t30_state_t *s, int supported_c
}
/*- End of function --------------------------------------------------------*/
SPAN_DECLARE
(
int
)
t30_set_supported_resolutions
(
t30_state_t
*
s
,
int
supported_resolutions
)
SPAN_DECLARE
(
int
)
t30_set_supported_
bilevel_
resolutions
(
t30_state_t
*
s
,
int
supported_resolutions
)
{
s
->
supported_bilevel_resolutions
=
supported_resolutions
;
t30_build_dis_or_dtc
(
s
);
...
...
@@ -718,6 +718,14 @@ SPAN_DECLARE(int) t30_set_supported_resolutions(t30_state_t *s, int supported_re
}
/*- End of function --------------------------------------------------------*/
SPAN_DECLARE
(
int
)
t30_set_supported_colour_resolutions
(
t30_state_t
*
s
,
int
supported_resolutions
)
{
s
->
supported_colour_resolutions
=
supported_resolutions
;
t30_build_dis_or_dtc
(
s
);
return
0
;
}
/*- End of function --------------------------------------------------------*/
SPAN_DECLARE
(
int
)
t30_set_supported_image_sizes
(
t30_state_t
*
s
,
int
supported_image_sizes
)
{
s
->
supported_image_sizes
=
supported_image_sizes
;
...
...
libs/spandsp/tests/fax_tests.c
浏览文件 @
a5ce5de5
...
...
@@ -845,21 +845,22 @@ int main(int argc, char *argv[])
|
T30_SUPPORT_215MM_WIDTH
|
T30_SUPPORT_255MM_WIDTH
|
T30_SUPPORT_303MM_WIDTH
);
t30_set_supported_resolutions
(
t30_state
[
i
],
T30_SUPPORT_RESOLUTION_R8_STANDARD
|
T30_SUPPORT_RESOLUTION_R8_FINE
|
T30_SUPPORT_RESOLUTION_R8_SUPERFINE
|
T30_SUPPORT_RESOLUTION_R16_SUPERFINE
|
T30_SUPPORT_RESOLUTION_200_100
|
T30_SUPPORT_RESOLUTION_200_200
|
T30_SUPPORT_RESOLUTION_200_400
|
T30_SUPPORT_RESOLUTION_300_300
|
T30_SUPPORT_RESOLUTION_300_600
|
T30_SUPPORT_RESOLUTION_400_400
|
T30_SUPPORT_RESOLUTION_400_800
|
T30_SUPPORT_RESOLUTION_600_600
|
T30_SUPPORT_RESOLUTION_600_1200
|
T30_SUPPORT_RESOLUTION_1200_1200
);
t30_set_supported_bilevel_resolutions
(
t30_state
[
i
],
T30_SUPPORT_RESOLUTION_R8_STANDARD
|
T30_SUPPORT_RESOLUTION_R8_FINE
|
T30_SUPPORT_RESOLUTION_R8_SUPERFINE
|
T30_SUPPORT_RESOLUTION_R16_SUPERFINE
|
T30_SUPPORT_RESOLUTION_200_100
|
T30_SUPPORT_RESOLUTION_200_200
|
T30_SUPPORT_RESOLUTION_200_400
|
T30_SUPPORT_RESOLUTION_300_300
|
T30_SUPPORT_RESOLUTION_300_600
|
T30_SUPPORT_RESOLUTION_400_400
|
T30_SUPPORT_RESOLUTION_400_800
|
T30_SUPPORT_RESOLUTION_600_600
|
T30_SUPPORT_RESOLUTION_600_1200
|
T30_SUPPORT_RESOLUTION_1200_1200
);
t30_set_supported_colour_resolutions
(
t30_state
[
i
],
0
);
//t30_set_rx_encoding(t30_state[i], T4_COMPRESSION_T85);
t30_set_ecm_capability
(
t30_state
[
i
],
use_ecm
);
if
(
use_ecm
)
...
...
libs/spandsp/tests/tsb85_tests.c
浏览文件 @
a5ce5de5
...
...
@@ -392,21 +392,22 @@ static void fax_prepare(void)
|
T30_SUPPORT_215MM_WIDTH
|
T30_SUPPORT_255MM_WIDTH
|
T30_SUPPORT_303MM_WIDTH
);
t30_set_supported_resolutions
(
t30
,
T30_SUPPORT_RESOLUTION_R8_STANDARD
|
T30_SUPPORT_RESOLUTION_R8_FINE
|
T30_SUPPORT_RESOLUTION_R8_SUPERFINE
|
T30_SUPPORT_RESOLUTION_R16_SUPERFINE
|
T30_SUPPORT_RESOLUTION_200_100
|
T30_SUPPORT_RESOLUTION_200_200
|
T30_SUPPORT_RESOLUTION_200_400
|
T30_SUPPORT_RESOLUTION_300_300
|
T30_SUPPORT_RESOLUTION_300_600
|
T30_SUPPORT_RESOLUTION_400_400
|
T30_SUPPORT_RESOLUTION_400_800
|
T30_SUPPORT_RESOLUTION_600_600
|
T30_SUPPORT_RESOLUTION_600_1200
|
T30_SUPPORT_RESOLUTION_1200_1200
);
t30_set_supported_bilevel_resolutions
(
t30
,
T30_SUPPORT_RESOLUTION_R8_STANDARD
|
T30_SUPPORT_RESOLUTION_R8_FINE
|
T30_SUPPORT_RESOLUTION_R8_SUPERFINE
|
T30_SUPPORT_RESOLUTION_R16_SUPERFINE
|
T30_SUPPORT_RESOLUTION_200_100
|
T30_SUPPORT_RESOLUTION_200_200
|
T30_SUPPORT_RESOLUTION_200_400
|
T30_SUPPORT_RESOLUTION_300_300
|
T30_SUPPORT_RESOLUTION_300_600
|
T30_SUPPORT_RESOLUTION_400_400
|
T30_SUPPORT_RESOLUTION_400_800
|
T30_SUPPORT_RESOLUTION_600_600
|
T30_SUPPORT_RESOLUTION_600_1200
|
T30_SUPPORT_RESOLUTION_1200_1200
);
t30_set_supported_colour_resolutions
(
t30
,
0
);
t30_set_supported_modems
(
t30
,
T30_SUPPORT_V27TER
|
T30_SUPPORT_V29
|
T30_SUPPORT_V17
);
t30_set_supported_compressions
(
t30
,
T30_SUPPORT_COMPRESSION_T4_1D
|
T30_SUPPORT_COMPRESSION_T4_2D
|
T30_SUPPORT_COMPRESSION_T6
);
t30_set_phase_b_handler
(
t30
,
phase_b_handler
,
(
void
*
)
(
intptr_t
)
'A'
);
...
...
src/mod/applications/mod_spandsp/mod_spandsp_fax.c
浏览文件 @
a5ce5de5
...
...
@@ -875,9 +875,12 @@ static switch_status_t spanfax_init(pvt_t *pvt, transport_mode_t trans_mode)
t30_set_supported_image_sizes
(
t30
,
T30_SUPPORT_US_LETTER_LENGTH
|
T30_SUPPORT_US_LEGAL_LENGTH
|
T30_SUPPORT_UNLIMITED_LENGTH
|
T30_SUPPORT_215MM_WIDTH
|
T30_SUPPORT_255MM_WIDTH
|
T30_SUPPORT_303MM_WIDTH
);
t30_set_supported_resolutions
(
t30
,
T30_SUPPORT_RESOLUTION_R8_STANDARD
|
T30_SUPPORT_RESOLUTION_R8_FINE
|
T30_SUPPORT_RESOLUTION_R8_SUPERFINE
|
T30_SUPPORT_RESOLUTION_R16_SUPERFINE
);
t30_set_supported_bilevel_resolutions
(
t30
,
T30_SUPPORT_RESOLUTION_R8_STANDARD
|
T30_SUPPORT_RESOLUTION_R8_FINE
|
T30_SUPPORT_RESOLUTION_R8_SUPERFINE
|
T30_SUPPORT_RESOLUTION_R16_SUPERFINE
);
t30_set_supported_colour_resolutions
(
t30
,
0
);
if
(
pvt
->
disable_v17
)
{
t30_set_supported_modems
(
t30
,
T30_SUPPORT_V29
|
T30_SUPPORT_V27TER
);
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论