Skip to content

Commit

Permalink
imageCompression() now returns an "enum"
Browse files Browse the repository at this point in the history
  • Loading branch information
JDanielSmith committed Feb 24, 2022
1 parent b378ace commit 2df69b2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions six/modules/c++/six/source/NITFImageInputStream.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ six::NITFImageInputStream::NITFImageInputStream(nitf::ImageSubheader subheader,

//Check for optimization cases - RGB and IQ
if ((nBands == 3 && imageMode == nitf::BlockingMode::Pixel && irep == nitf::ImageRepresentation::RGB && bytesPerPixel
== 1 && (ic == "NC" || ic == "NM")) || (nBands == 2 && imageMode == nitf::BlockingMode::Pixel &&
bytesPerPixel == 4 && (ic == "NC" || ic == "NM")))
== 1 && (ic == nitf::ImageCompression::NC || ic == nitf::ImageCompression::NM)) || (nBands == 2 && imageMode == nitf::BlockingMode::Pixel &&
bytesPerPixel == 4 && (ic == nitf::ImageCompression::NC || ic == nitf::ImageCompression::NM)))
{
auto subcategory = subheader.getBandInfo(0).subcategory;
if (subcategory == nitf::Subcategory::I)
Expand Down

0 comments on commit 2df69b2

Please sign in to comment.