Whitespace corrections

This commit is contained in:
Flössie
2019-12-06 09:28:34 +01:00
parent 03c094a42b
commit b0e52b3202

View File

@@ -87,13 +87,13 @@ void DCraw::selectCRXTrack(unsigned short maxTrack)
for (unsigned int i = 0; i <= maxTrack && i < RT_canon_CR3_data.CRXTRACKS_MAXCOUNT; ++i) {
CanonCR3Data::crx_data_header_t* const d = &RT_canon_CR3_data.crx_header[i];
if (d->MediaType == 1) {// RAW
if (d->MediaType == 1) { // RAW
bitcounts[i] = std::int64_t(d->nBits) * std::int64_t(d->f_width) * std::int64_t(d->f_height);
if (bitcounts[i] > maxbitcount) {
maxbitcount = bitcounts[i];
}
} else if (d->MediaType == 2) {// JPEG
} else if (d->MediaType == 2) { // JPEG
if (d->MediaSize > maxjpegbytes) {
maxjpegbytes = d->MediaSize;
thumb_offset = d->MediaOffset;
@@ -771,7 +771,7 @@ struct CrxImage {
CrxTile* tiles;
std::uint64_t mdatOffset;
std::uint64_t mdatSize;
std::int16_t* outBufs[4];// one per plane
std::int16_t* outBufs[4]; // one per plane
std::int16_t* planeBuf;
LibRaw_abstract_datastream* input;
};
@@ -931,7 +931,7 @@ inline std::uint32_t crxBitstreamGetBits(CrxBitstream* bitStrm, int bits)
} while (bitsLeft < bits);
}
result = bitData >> (32 - bits);// 32-bits
result = bitData >> (32 - bits); // 32-bits
bitStrm->bitData = bitData << bits;
bitStrm->bitsLeft = bitsLeft - bits;
return result;
@@ -1769,7 +1769,7 @@ bool crxDecodeLineWithIQuantization(CrxSubband* subband)
bitCode = crxBitstreamGetBits(&subband->bandParam->bitStream, subband->paramK) | (bitCode << subband->paramK);
}
subband->quantValue += -(bitCode & 1) ^ (bitCode >> 1);// converting encoded to signed integer
subband->quantValue += -(bitCode & 1) ^ (bitCode >> 1); // converting encoded to signed integer
subband->paramK = crxPredictKParameter(subband->paramK, bitCode);
if (subband->paramK > 7) {
@@ -2961,7 +2961,7 @@ bool crxSetupImageData(
img->tiles = nullptr;
img->levels = hdr->imageLevels;
img->subbandCount = 3 * img->levels + 1;// 3 bands per level + one last LL
img->subbandCount = 3 * img->levels + 1; // 3 bands per level + one last LL
img->nPlanes = hdr->nPlanes;
img->nBits = hdr->nBits;
img->encType = hdr->encType;