Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
K
KenPanCS
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
QCD
Tools
KenPanCS
Commits
cc011c54
You need to sign in or sign up before continuing.
Commit
cc011c54
authored
Sep 15, 2021
by
AP matsuo koji
😲
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CSRender v1.3.0.5 /Para (並行処理数の追加)
parent
4e87a0e5
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
28 additions
and
11 deletions
+28
-11
CSRender.csproj
CSRender/CSRender.csproj
+1
-1
Program.cs
CSRender/Program.cs
+17
-7
AssemblyInfo.cs
CSRender/Properties/AssemblyInfo.cs
+3
-2
CSRender_ReadMe.txt
CSRender_ReadMe.txt
+7
-1
No files found.
CSRender/CSRender.csproj
View file @
cc011c54
...
@@ -80,7 +80,7 @@
...
@@ -80,7 +80,7 @@
<Reference
Include=
"System.Xml"
/>
<Reference
Include=
"System.Xml"
/>
<Reference
Include=
"Windows, Version=255.255.255.255, Culture=neutral, processorArchitecture=MSIL"
>
<Reference
Include=
"Windows, Version=255.255.255.255, Culture=neutral, processorArchitecture=MSIL"
>
<SpecificVersion>
False
</SpecificVersion>
<SpecificVersion>
False
</SpecificVersion>
<HintPath>
..\..\..\..\..\..\..\..
\Program Files (x86)\Windows Kits\8.1\References\CommonConfiguration\Neutral\Annotated\Windows.winmd
</HintPath>
<HintPath>
C:
\Program Files (x86)\Windows Kits\8.1\References\CommonConfiguration\Neutral\Annotated\Windows.winmd
</HintPath>
<Private>
False
</Private>
<Private>
False
</Private>
</Reference>
</Reference>
<Reference
Include=
"WindowsBase"
/>
<Reference
Include=
"WindowsBase"
/>
...
...
CSRender/Program.cs
View file @
cc011c54
...
@@ -40,9 +40,11 @@ namespace CSRenderMain {
...
@@ -40,9 +40,11 @@ namespace CSRenderMain {
public
string
pdfPath2
=
""
;
//比較ファイル
public
string
pdfPath2
=
""
;
//比較ファイル
[
DataMember
]
[
DataMember
]
public
string
outuptImageDir
=
""
;
// /O
public
string
outuptImageDir
=
""
;
// /O
[
DataMember
]
[
DataMember
]
public
string
dpi
=
"72.0"
;
// /D
public
string
dpi
=
"72.0"
;
// /D
[
DataMember
]
[
DataMember
]
public
int
para
=
4
;
// 並行数
[
DataMember
]
public
string
boxSelect
=
"Crop"
;
// /B<x>
public
string
boxSelect
=
"Crop"
;
// /B<x>
[
DataMember
]
[
DataMember
]
public
string
pageRange
=
"1-*"
;
// /P
public
string
pageRange
=
"1-*"
;
// /P
...
@@ -129,8 +131,9 @@ namespace CSRenderMain {
...
@@ -129,8 +131,9 @@ namespace CSRenderMain {
+
$"\n"
+
$"\n"
+
$"[ELSE ] その他のオプション\n"
+
$"[ELSE ] その他のオプション\n"
+
$"\t/PDFium <0|1>:PDFiumライブラリを使う,デフォルト=1\n"
+
$"\t/PDFium <0|1>:PDFiumライブラリを使う,デフォルト=1\n"
+
$"\t/NoExeSepa :実行分離しない(遅い)\n"
+
$"\t/NoExeSepa :実行分離しない(遅い)\n"
+
$"\t内部コマンド:/SubExe <WCF_PipeAddress> :実行分離,PDF単位で別Processで処理\n"
+
$"\t/para <並行数>:並行数を指定(デフォルト4)\n"
+
$"\t内部コマンド:/SubExe <WCF_PipeAddress> :実行分離,PDF単位で別Processで処理\n"
+
$"\n"
+
$"\n"
+
$"/H or /? : This help\n"
+
$"/H or /? : This help\n"
...
@@ -238,7 +241,14 @@ namespace CSRenderMain {
...
@@ -238,7 +241,14 @@ namespace CSRenderMain {
DispHelp
();
DispHelp
();
return
-
1
;
return
-
1
;
}
}
}
else
if
(
isOpt
(
"/P"
))
{
}
else
if
(
isOpt
(
"/Para"
))
{
string
paraNum
=
(
qu
.
Count
>
0
)
?
qu
.
Dequeue
()
:
""
;
// next word.
if
(!
int
.
TryParse
(
paraNum
,
out
pm
.
para
))
{
Console
.
WriteLine
(
$"並行数が不正です:/para
{
paraNum
}
"
);
DispHelp
();
return
-
1
;
}
}
else
if
(
isOpt
(
"/P"
))
{
pm
.
pageRange
=
(
qu
.
Count
>
0
)
?
qu
.
Dequeue
()
:
""
;
// next word.
pm
.
pageRange
=
(
qu
.
Count
>
0
)
?
qu
.
Dequeue
()
:
""
;
// next word.
}
else
if
(
isOpt
(
"/JPG"
,
"/JPEG"
))
{
}
else
if
(
isOpt
(
"/JPG"
,
"/JPEG"
))
{
pm
.
imageType
=
"JPG"
;
pm
.
imageType
=
"JPG"
;
...
@@ -529,7 +539,7 @@ namespace CSRenderMain {
...
@@ -529,7 +539,7 @@ namespace CSRenderMain {
//逆に遅くなる UWPコール(render)は対応していない?
//逆に遅くなる UWPコール(render)は対応していない?
if
(
pm
.
bExeSepa
&&(!
pm
.
bFC
))
{
// FCモードは除外します。
if
(
pm
.
bExeSepa
&&(!
pm
.
bFC
))
{
// FCモードは除外します。
var
tokenSource
=
new
CancellationTokenSource
();
var
tokenSource
=
new
CancellationTokenSource
();
ParallelOptions
options
=
new
ParallelOptions
{
MaxDegreeOfParallelism
=
4
};
ParallelOptions
options
=
new
ParallelOptions
{
MaxDegreeOfParallelism
=
pm
.
para
};
ret
=
0
;
//Success
ret
=
0
;
//Success
var
loopResult
=
Parallel
.
For
(
0
,
pdfPathLstBoth
.
Count
,
options
,
(
index
,
lpState
)
=>
{
var
loopResult
=
Parallel
.
For
(
0
,
pdfPathLstBoth
.
Count
,
options
,
(
index
,
lpState
)
=>
{
//for (var index = 0; index < pdfPathLstBoth.Count; index++) {
//for (var index = 0; index < pdfPathLstBoth.Count; index++) {
...
...
CSRender/Properties/AssemblyInfo.cs
View file @
cc011c54
...
@@ -32,9 +32,10 @@ using System.Runtime.InteropServices;
...
@@ -32,9 +32,10 @@ using System.Runtime.InteropServices;
// すべての値を指定するか、次を使用してビルド番号とリビジョン番号を既定に設定できます
// すべての値を指定するか、次を使用してビルド番号とリビジョン番号を既定に設定できます
// 既定値にすることができます:
// 既定値にすることができます:
// [assembly: AssemblyVersion("1.0.*")]
// [assembly: AssemblyVersion("1.0.*")]
[
assembly
:
AssemblyVersion
(
"1.3.0.
4
"
)]
[
assembly
:
AssemblyVersion
(
"1.3.0.
5
"
)]
[
assembly
:
AssemblyFileVersion
(
"1.3.0.
4
"
)]
[
assembly
:
AssemblyFileVersion
(
"1.3.0.
5
"
)]
// rev:1.3.0.5:2021/09/14 :/Paraで並行プロセス最大値の設定追加
// rev:1.3.0.4:2021/04/29 :Helpの記述抜け "/Result"の対応
// rev:1.3.0.4:2021/04/29 :Helpの記述抜け "/Result"の対応
// rev:1.3.0.3:2020/11/22 :/Result <比較結果> を実装。diff画像を出力
// rev:1.3.0.3:2020/11/22 :/Result <比較結果> を実装。diff画像を出力
// rev:1.3.0.2: streamのフラッシュミス 比較時に差異があるとクラッシュしていた。
// rev:1.3.0.2: streamのフラッシュミス 比較時に差異があるとクラッシュしていた。
CSRender_ReadMe.txt
View file @
cc011c54
rev:1.3.0.5:2021/09/14 :/Paraで並行プロセス最大値の設定追加
rev:1.3.0.4:2021/04/29 :Helpの記述抜け "/Result"の対応
V1.3.0.3:2020/11/22 :/Result <比較結果> を実装。diff画像を出力
V1.3.0.3:2020/11/22 :/Result <比較結果> を実装。diff画像を出力
V1.3.0.3:2020/11/22 :/Result <比較結果> を実装。diff画像を出力
V1.3.0.2:2020/07/11 :不具合修正
V1.3.0.2:2020/07/11 :不具合修正
比較時に差異があるとクラッシュしていた。streamのフラッシュミス
比較時に差異があるとクラッシュしていた。streamのフラッシュミス
V1.3.0.1:2020/06/20 :不具合修正
V1.3.0.1:2020/06/20 :不具合修正
2つのファイルの比較が常にOKになっていた可能性があるので修正
2つのファイルの比較が常にOKになっていた可能性があるので修正
...
@@ -57,6 +62,7 @@ CSRender.exe [/<Opts>] <PDFPath or PDFDir>
...
@@ -57,6 +62,7 @@ CSRender.exe [/<Opts>] <PDFPath or PDFDir>
[ELSE ] その他のオプション
[ELSE ] その他のオプション
/PDFium <0|1>:PDFiumライブラリを使う,デフォルト=1
/PDFium <0|1>:PDFiumライブラリを使う,デフォルト=1
/NoExeSepa :実行分離しない(遅い)
/NoExeSepa :実行分離しない(遅い)
/para <並行数>:並行数を指定(デフォルト4)
内部コマンド:/SubExe <WCF_PipeAddress> :実行分離,PDF単位で別Processで処理
内部コマンド:/SubExe <WCF_PipeAddress> :実行分離,PDF単位で別Processで処理
/H or /? : This help
/H or /? : This help
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment