Skip to content

Commit

Permalink
Merge pull request #162 from aous72/bug_64bit_oneline_transform
Browse files Browse the repository at this point in the history
Fixes a bug when a resolution has one 64bit line.
  • Loading branch information
aous72 authored Dec 13, 2024
2 parents 949d376 + a85e756 commit 7d8ea08
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions src/core/codestream/ojph_resolution.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -586,9 +586,19 @@ namespace ojph {
else
{
// vertical transform
si32* sp = aug->line->i32;
for (ui32 i = width; i > 0; --i)
*sp++ <<= 1;
if (aug->line->flags & line_buf::LFT_32BIT)
{
si32* sp = aug->line->i32;
for (ui32 i = width; i > 0; --i)
*sp++ <<= 1;
}
else
{
assert(aug->line->flags & line_buf::LFT_64BIT);
si64* sp = aug->line->i64;
for (ui32 i = width; i > 0; --i)
*sp++ <<= 1;
}
// horizontal transform
rev_horz_ana(atk, bands[2].get_line(),
bands[3].get_line(), aug->line, width, horz_even);
Expand Down

0 comments on commit 7d8ea08

Please sign in to comment.