Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
member-api
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
曲欣亮
member-api
Commits
d97eddf0
Commit
d97eddf0
authored
Mar 07, 2019
by
Quxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x
parent
32166f96
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
52 additions
and
0 deletions
+52
-0
ExportConstant.java
src/main/java/com/egolm/film/api/ExportConstant.java
+45
-0
ExportServiceImpl.java
...va/com/egolm/film/api/service/impl/ExportServiceImpl.java
+7
-0
No files found.
src/main/java/com/egolm/film/api/ExportConstant.java
View file @
d97eddf0
...
...
@@ -110,4 +110,49 @@ public class ExportConstant {
playShanghai
.
put
(
"2"
,
"不安全"
);
playShanghai
.
put
(
"3"
,
"待定"
);
}
public
static
final
Map
<
String
,
String
>
fmtopts
=
new
HashMap
<
String
,
String
>();
static
{
playShanghai
.
put
(
"1"
,
"35mm"
);
playShanghai
.
put
(
"2"
,
"2D DCP"
);
playShanghai
.
put
(
"3"
,
"3D DCP"
);
}
public
static
final
Map
<
String
,
String
>
resolutionopts
=
new
HashMap
<
String
,
String
>();
static
{
resolutionopts
.
put
(
"1"
,
"2K"
);
resolutionopts
.
put
(
"2"
,
"4K"
);
}
public
static
final
Map
<
String
,
String
>
aspectopts
=
new
HashMap
<
String
,
String
>();
static
{
aspectopts
.
put
(
"1"
,
"1:1.78"
);
aspectopts
.
put
(
"2"
,
"1:1.85"
);
aspectopts
.
put
(
"3"
,
"1:2.35"
);
aspectopts
.
put
(
"4"
,
"1:2.39"
);
aspectopts
.
put
(
"5"
,
"Other"
);
}
public
static
final
Map
<
String
,
String
>
soundopts
=
new
HashMap
<
String
,
String
>();
static
{
soundopts
.
put
(
"1"
,
"2.0"
);
soundopts
.
put
(
"2"
,
"2.1"
);
soundopts
.
put
(
"3"
,
"5.1"
);
soundopts
.
put
(
"4"
,
"7.1"
);
soundopts
.
put
(
"5"
,
"Atmos"
);
soundopts
.
put
(
"6"
,
"Auro"
);
soundopts
.
put
(
"7"
,
"Other"
);
}
public
static
final
Map
<
String
,
String
>
frameopts
=
new
HashMap
<
String
,
String
>();
static
{
frameopts
.
put
(
"1"
,
"24"
);
frameopts
.
put
(
"2"
,
"25"
);
}
public
static
final
Map
<
String
,
String
>
kdmopts
=
new
HashMap
<
String
,
String
>();
static
{
kdmopts
.
put
(
"1"
,
"Encrypted"
);
kdmopts
.
put
(
"2"
,
"Unencrypted"
);
}
}
src/main/java/com/egolm/film/api/service/impl/ExportServiceImpl.java
View file @
d97eddf0
...
...
@@ -454,6 +454,13 @@ public class ExportServiceImpl implements ExportService {
map
.
put
(
"film_format"
,
ExportConstant
.
filmFormat
.
get
(
String
.
valueOf
(
map
.
get
(
"film_format"
))));
map
.
put
(
"play_shanghai"
,
ExportConstant
.
playShanghai
.
get
(
String
.
valueOf
(
map
.
get
(
"play_shanghai"
))));
map
.
put
(
"copy_options"
,
ExportConstant
.
copyopts
.
get
(
String
.
valueOf
(
map
.
get
(
"copy_options"
))));
map
.
put
(
"format"
,
ExportConstant
.
fmtopts
.
get
(
String
.
valueOf
(
map
.
get
(
"format"
))));
map
.
put
(
"resolution_rate"
,
ExportConstant
.
resolutionopts
.
get
(
String
.
valueOf
(
map
.
get
(
"resolution_rate"
))));
map
.
put
(
"aspect_rate"
,
ExportConstant
.
aspectopts
.
get
(
String
.
valueOf
(
map
.
get
(
"aspect_rate"
))));
map
.
put
(
"sound_format"
,
ExportConstant
.
soundopts
.
get
(
String
.
valueOf
(
map
.
get
(
"sound_format"
))));
map
.
put
(
"frame_rate"
,
ExportConstant
.
frameopts
.
get
(
String
.
valueOf
(
map
.
get
(
"frame_rate"
))));
map
.
put
(
"kdm"
,
ExportConstant
.
kdmopts
.
get
(
String
.
valueOf
(
map
.
get
(
"kdm"
))));
for
(
String
key:
new
String
[]
{
"is_viewer_metting"
,
"is_copy_key"
,
"is_important"
,
"is_night"
})
{
map
.
put
(
key
,
ExportConstant
.
YN
.
get
(
String
.
valueOf
(
map
.
get
(
key
))));
}
...
...
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