Skip to content

Commit 0e8e6bf

Browse files
committed
update to new api interface for NLT
1 parent 4d42984 commit 0e8e6bf

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/apps/ojph_compress/ojph_compress.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1152,7 +1152,8 @@ int main(int argc, char * argv[]) {
11521152
codestream.request_tlm_marker(tlm_marker);
11531153

11541154
ojph::param_nlt nlt = codestream.access_nlt();
1155-
nlt.set_type3_transformation(65535, true);
1155+
nlt.set_nonlinear_transform(ojph::param_nlt::ALL_COMPS,
1156+
ojph::param_nlt::OJPH_NLT_BINARY_COMPLEMENT_NLT);
11561157

11571158
if (dims.w != 0 || dims.h != 0)
11581159
OJPH_WARN(0x01000071,

src/apps/ojph_expand/ojph_expand.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,8 @@ int main(int argc, char *argv[]) {
433433
{
434434
bool nlt_is_signed;
435435
ojph::ui8 nlt_bit_depth;
436-
has_nlt[c] = nlt.get_type3_transformation(c, nlt_bit_depth, nlt_is_signed);
436+
ojph::ui8 nl_type;
437+
bool result = nlt.get_nonlinear_transform(c, nlt_bit_depth, nlt_is_signed, nl_type);
437438

438439
fprintf(stderr, "comp = %d has_nlt = %s ",
439440
c, has_nlt[c] ? "true" : "false");

0 commit comments

Comments
 (0)