Core lib building

This commit is contained in:
jmsgrogan 2024-01-02 16:14:23 +00:00
parent 3ed195d7dd
commit 94fcc42aed
73 changed files with 625 additions and 661 deletions

View file

@ -1,6 +1,6 @@
#include "PngHeader.h"
#include "ByteUtils.h"
#include "Bits.h"
#include "StringUtils.h"
#include "CyclicRedundancyChecker.h"
@ -74,12 +74,12 @@ void PngHeader::updateData()
for(size_t idx=0; idx<num_bytes;idx++)
{
mData.push_back(ByteUtils::getByteN(mWidth, idx));
mData.push_back(Bits::getByteN(mWidth, idx));
}
for(unsigned idx=0; idx<num_bytes;idx++)
{
mData.push_back(ByteUtils::getByteN(mHeight, idx));
mData.push_back(Bits::getByteN(mHeight, idx));
}
mData.push_back(mBitDepth);
mData.push_back(static_cast<Byte>(mPngInfo.mColorType));