projects
/
dcpomatic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
de85e79
)
Add ignored precincts code.
author
Carl Hetherington
<cth@carlh.net>
Mon, 23 May 2022 23:29:59 +0000
(
01:29
+0200)
committer
Carl Hetherington
<cth@carlh.net>
Mon, 23 May 2022 23:29:59 +0000
(
01:29
+0200)
src/lib/cuda_j2k_frame_encoder.cc
patch
|
blob
|
history
diff --git
a/src/lib/cuda_j2k_frame_encoder.cc
b/src/lib/cuda_j2k_frame_encoder.cc
index 95b742484aac81037fadc661ba543e7ac2e0bdb3..4b22551062c1640d739745221795cd0125d219b4 100644
(file)
--- a/
src/lib/cuda_j2k_frame_encoder.cc
+++ b/
src/lib/cuda_j2k_frame_encoder.cc
@@
-104,6
+104,13
@@
CUDAJ2KFrameEncoder::cuda_thread()
config.mct_mode = 1;
config.prog_order = NVJPEG2K_CPRL;
config.num_resolutions = input.resolution() == Resolution::FOUR_K ? 7 : 6;
+ config.enable_custom_precincts = 0;
+ config.precint_width[0] = 7;
+ config.precint_height[0] = 7;
+ for (int i = 1; i < 6; ++i) {
+ config.precint_width[i] = 8;
+ config.precint_height[i] = 8;
+ }
auto status = nvjpeg2kEncodeParamsSetEncodeConfig(encoder_params, &config);
if (status != NVJPEG2K_STATUS_SUCCESS) {