File tree 1 file changed +5
-7
lines changed
1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -74,9 +74,7 @@ internal_exr_undo_ht (
74
74
75
75
for (uint32_t p = 0 ; p < width; p++)
76
76
{
77
- ojph::si32 c = cur_line->i32 [p];
78
-
79
- *channel_pixels++ = (int16_t ) (c < 0 ? -32769 - c : c);
77
+ *channel_pixels++ = (int16_t ) (cur_line->i32 [p]);
80
78
}
81
79
}
82
80
@@ -122,6 +120,9 @@ internal_exr_apply_ht (exr_encode_pipeline_t* encode)
122
120
cod.set_block_dims (128 , 32 );
123
121
cod.set_num_decomposition (5 );
124
122
123
+ ojph::param_nlt nlt = cs.access_nlt ();
124
+ nlt.set_type3_transformation (65535 , true );
125
+
125
126
ojph::mem_outfile output;
126
127
127
128
output.open ();
@@ -149,10 +150,7 @@ internal_exr_apply_ht (exr_encode_pipeline_t* encode)
149
150
150
151
for (uint32_t p = 0 ; p < width; p++)
151
152
{
152
- ojph::si32 c =
153
- static_cast <const ojph::si32> (*channel_pixels++);
154
-
155
- cur_line->i32 [p] = c < 0 ? -32769 - c : c;
153
+ cur_line->i32 [p] = static_cast <const ojph::si32> (*channel_pixels++);
156
154
}
157
155
158
156
cur_line = cs.exchange (cur_line, next_comp);
You can’t perform that action at this time.
0 commit comments