Skip to content

Commit b7f9ea7

Browse files
committed
update to new api interface for NLT
1 parent 995744c commit b7f9ea7

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

src/apps/ojph_compress/ojph_compress.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -936,10 +936,12 @@ int main(int argc, char * argv[]) {
936936

937937
}
938938
if (all_the_same)
939-
nlt.set_type3_transformation(ojph::param_nlt::ALL_COMPS, true);
939+
nlt.set_nonlinear_transform(ojph::param_nlt::ALL_COMPS,
940+
ojph::param_nlt::OJPH_NLT_BINARY_COMPLEMENT_NLT);
940941
else
941942
for (ojph::ui32 c = 0; c < num_comps; ++c)
942-
nlt.set_type3_transformation(c, true);
943+
nlt.set_nonlinear_transform(c,
944+
ojph::param_nlt::OJPH_NLT_BINARY_COMPLEMENT_NLT);
943945
}
944946

945947
if (dims.w != 0 || dims.h != 0)

src/apps/ojph_expand/ojph_expand.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,8 @@ int main(int argc, char *argv[]) {
355355
is_signeds[c] = siz.is_signed(c);
356356
bool nlt_is_signed;
357357
ojph::ui8 nlt_bit_depth;
358-
has_nlt_type3[c] = nlt.get_type3_transformation(c, nlt_bit_depth, nlt_is_signed);
358+
ojph::ui8 nl_type;
359+
has_nlt_type3[c] = nlt.get_nonlinear_transform(c, nlt_bit_depth, nlt_is_signed, nl_type);
359360

360361
if (true == has_nlt_type3[c] && (nlt_bit_depth != siz.get_bit_depth(c) || nlt_is_signed != siz.is_signed(c)))
361362
{

0 commit comments

Comments
 (0)