Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
F
freeswitch
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
张华
freeswitch
Commits
dfd4f70e
提交
dfd4f70e
authored
8月 26, 2012
作者:
Steve Underwood
提交者:
Ken Rice
9月 11, 2012
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
More tweaks
上级
2a040e1d
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
22 行增加
和
203 行删除
+22
-203
t38_terminal_tests.vcproj
libs/spandsp/tests/msvc/t38_terminal_tests.vcproj
+0
-202
t42_tests.c
libs/spandsp/tests/t42_tests.c
+22
-1
没有找到文件。
libs/spandsp/tests/msvc/t38_terminal_tests.vcproj
deleted
100644 → 0
浏览文件 @
2a040e1d
<?xml version="1.0" encoding="Windows-1252"?>
<VisualStudioProject
ProjectType=
"Visual C++"
Version=
"8.00"
Name=
"t38-terminal-tests"
ProjectGUID=
"{B5DECF33-1D06-459A-AE70-A06404909919}"
RootNamespace=
"t38terminaltests"
>
<Platforms>
<Platform
Name=
"Win32"
/>
</Platforms>
<ToolFiles>
</ToolFiles>
<Configurations>
<Configuration
Name=
"Debug|Win32"
OutputDirectory=
"$(SolutionDir)$(ConfigurationName)"
IntermediateDirectory=
"$(ConfigurationName)"
ConfigurationType=
"1"
CharacterSet=
"2"
>
<Tool
Name=
"VCPreBuildEventTool"
/>
<Tool
Name=
"VCCustomBuildTool"
/>
<Tool
Name=
"VCXMLDataGeneratorTool"
/>
<Tool
Name=
"VCWebServiceProxyGeneratorTool"
/>
<Tool
Name=
"VCMIDLTool"
/>
<Tool
Name=
"VCCLCompilerTool"
Optimization=
"0"
AdditionalIncludeDirectories=
""..\src";"..\spandsp-sim";..\..\libtiff\include;"..\src\msvc""
MinimalRebuild=
"true"
BasicRuntimeChecks=
"3"
RuntimeLibrary=
"3"
WarningLevel=
"3"
Detect64BitPortabilityProblems=
"true"
DebugInformationFormat=
"4"
/>
<Tool
Name=
"VCManagedResourceCompilerTool"
/>
<Tool
Name=
"VCResourceCompilerTool"
/>
<Tool
Name=
"VCPreLinkEventTool"
/>
<Tool
Name=
"VCLinkerTool"
AdditionalDependencies=
"..\src\Debug\spandsp.lib ..\spandsp-sim\Debug\spandsp.lib"
GenerateDebugInformation=
"true"
TargetMachine=
"1"
/>
<Tool
Name=
"VCALinkTool"
/>
<Tool
Name=
"VCManifestTool"
/>
<Tool
Name=
"VCXDCMakeTool"
/>
<Tool
Name=
"VCBscMakeTool"
/>
<Tool
Name=
"VCFxCopTool"
/>
<Tool
Name=
"VCAppVerifierTool"
/>
<Tool
Name=
"VCWebDeploymentTool"
/>
<Tool
Name=
"VCPostBuildEventTool"
/>
</Configuration>
<Configuration
Name=
"Release|Win32"
OutputDirectory=
"$(SolutionDir)$(ConfigurationName)"
IntermediateDirectory=
"$(ConfigurationName)"
ConfigurationType=
"1"
CharacterSet=
"2"
WholeProgramOptimization=
"1"
>
<Tool
Name=
"VCPreBuildEventTool"
/>
<Tool
Name=
"VCCustomBuildTool"
/>
<Tool
Name=
"VCXMLDataGeneratorTool"
/>
<Tool
Name=
"VCWebServiceProxyGeneratorTool"
/>
<Tool
Name=
"VCMIDLTool"
/>
<Tool
Name=
"VCCLCompilerTool"
RuntimeLibrary=
"2"
WarningLevel=
"3"
Detect64BitPortabilityProblems=
"true"
DebugInformationFormat=
"3"
/>
<Tool
Name=
"VCManagedResourceCompilerTool"
/>
<Tool
Name=
"VCResourceCompilerTool"
/>
<Tool
Name=
"VCPreLinkEventTool"
/>
<Tool
Name=
"VCLinkerTool"
GenerateDebugInformation=
"true"
OptimizeReferences=
"2"
EnableCOMDATFolding=
"2"
TargetMachine=
"1"
/>
<Tool
Name=
"VCALinkTool"
/>
<Tool
Name=
"VCManifestTool"
/>
<Tool
Name=
"VCXDCMakeTool"
/>
<Tool
Name=
"VCBscMakeTool"
/>
<Tool
Name=
"VCFxCopTool"
/>
<Tool
Name=
"VCAppVerifierTool"
/>
<Tool
Name=
"VCWebDeploymentTool"
/>
<Tool
Name=
"VCPostBuildEventTool"
/>
</Configuration>
</Configurations>
<References>
</References>
<Files>
<Filter
Name=
"Source Files"
Filter=
"cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx"
UniqueIdentifier=
"{4FC737F1-C7A5-4376-A066-2A32D752A2FF}"
>
<File
RelativePath=
"fax_utils.c"
>
</File>
<File
RelativePath=
"..\src\msvc\getopt.c"
>
</File>
<File
RelativePath=
"media_monitor.cpp"
>
</File>
<File
RelativePath=
"t38_terminal_tests.c"
>
</File>
</Filter>
<Filter
Name=
"Header Files"
Filter=
"h;hpp;hxx;hm;inl;inc;xsd"
UniqueIdentifier=
"{93995380-89BD-4b04-88EB-625FBE52EBFB}"
>
</Filter>
<Filter
Name=
"Resource Files"
Filter=
"rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav"
UniqueIdentifier=
"{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}"
>
</Filter>
</Files>
<Globals>
</Globals>
</VisualStudioProject>
libs/spandsp/tests/t42_tests.c
浏览文件 @
dfd4f70e
...
...
@@ -45,6 +45,10 @@
#include "spandsp.h"
#if defined(SPANDSP_SUPPORT_TIFF_FX)
//#include <tif_dir.h>
#endif
//#define IN_FILE_NAME "../test-data/itu/t24/F21_200.TIF"
#define IN_FILE_NAME "../test-data/itu/t24/F21B400.TIF"
#define OUT_FILE_NAME "t42_tests_receive.tif"
...
...
@@ -145,6 +149,7 @@ int main(int argc, char *argv[])
uint16_t
*
map_a
;
uint16_t
*
map_b
;
uint16_t
*
map_z
;
uint32_t
jpeg_table_len
;
logging_state_t
*
logging
;
printf
(
"Demo of ITU/Lab library.
\n
"
);
...
...
@@ -187,6 +192,7 @@ int main(int argc, char *argv[])
planar_config
=
0
;
TIFFGetField
(
tif
,
TIFFTAG_PLANARCONFIG
,
&
planar_config
);
off
=
0
;
map_L
=
NULL
;
map_a
=
NULL
;
map_b
=
NULL
;
...
...
@@ -260,7 +266,19 @@ int main(int argc, char *argv[])
if
(
process_raw
)
{
uint8_t
*
jpeg_table
;
nstrips
=
TIFFNumberOfStrips
(
tif
);
total_image_len
=
0
;
jpeg_table_len
=
0
;
if
(
TIFFGetField
(
tif
,
TIFFTAG_JPEGTABLES
,
&
jpeg_table_len
,
&
jpeg_table
))
{
total_image_len
+=
(
jpeg_table_len
-
4
);
printf
(
"JPEG tables %u
\n
"
,
jpeg_table_len
);
printf
(
"YYY %d - %x %x %x %x
\n
"
,
jpeg_table_len
,
jpeg_table
[
0
],
jpeg_table
[
1
],
jpeg_table
[
2
],
jpeg_table
[
3
]);
}
for
(
i
=
0
,
total_image_len
=
0
;
i
<
nstrips
;
i
++
)
total_image_len
+=
TIFFRawStripSize
(
tif
,
i
);
data
=
malloc
(
total_image_len
);
...
...
@@ -272,6 +290,9 @@ int main(int argc, char *argv[])
return
-
1
;
}
}
if
(
jpeg_table_len
>
0
)
memcpy
(
data
,
jpeg_table
,
jpeg_table_len
-
2
);
if
(
total_len
!=
total_image_len
)
printf
(
"Size mismatch %ld %ld
\n
"
,
total_len
,
total_image_len
);
off
=
total_len
;
...
...
@@ -420,7 +441,7 @@ int main(int argc, char *argv[])
return
1
;
off
+=
bytes_per_row
;
}
printf
(
"total %
d
, off %ld
\n
"
,
totdata
,
off
);
printf
(
"total %
u
, off %ld
\n
"
,
totdata
,
off
);
/* We now have the image in memory in RGB form */
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论