Skip to content

Commit

Permalink
0.2.2: fix invalid operands of types
Browse files Browse the repository at this point in the history
  • Loading branch information
zvezdochiot committed Jun 21, 2022
1 parent 7d5fe98 commit 45b25d2
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
![GitHub release (latest by date)](https://img.shields.io/github/v/release/Special-graphic-formats/rududu-image-codec)
![GitHub Release Date](https://img.shields.io/github/release-date/Special-graphic-formats/rududu-image-codec)
![GitHub repo size](https://img.shields.io/github/repo-size/Special-graphic-formats/rududu-image-codec)
![GitHub all releases](https://img.shields.io/github/downloads/Special-graphic-formats/rududu-image-codec/total)
![GitHub](https://img.shields.io/github/license/Special-graphic-formats/rududu-image-codec)

# RIC (Rududu Image Codec)
[based CImg.h]

Expand All @@ -23,7 +29,7 @@

```bash
cd src
autoreconf -fiv
./autoconfig.sh
./configure --prefix=/usr
make
sudo make install
Expand Down
8 changes: 4 additions & 4 deletions src/lib/bandcodec.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -73,21 +73,21 @@ template <cmode mode, class C>
else
pCur[0] = u2s(pCodec->tabooDecode());

for( unsigned int i = 1; i < DimX; i++){
for( int i = 1; i < DimX; i++){
if (mode == encode)
geoCodec.code(s2u(pCur[i] - pCur[i - 1]), 15);
else
pCur[i] = pCur[i - 1] + u2s(geoCodec.decode(15));
}
pCur += stride;

for( unsigned int j = 1; j < DimY; j++){
for( int j = 1; j < DimY; j++){
if (mode == encode)
geoCodec.code(s2u(pCur[0] - pCur[-stride]), 15);
else
pCur[0] = pCur[-stride] + u2s(geoCodec.decode(15));

for( unsigned int i = 1; i < DimX; i++){
for( int i = 1; i < DimX; i++){
int var = ABS(pCur[i - 1] - pCur[i - 1 - stride]) +
ABS(pCur[i - stride] - pCur[i - 1 - stride]);
var = bitlen(var);
Expand Down Expand Up @@ -531,7 +531,7 @@ template <cmode mode, bool high_band, class C, class P>
continue;
}

if (pPar) ctx = maxLen<BLK_SIZE >> 1, mode>(&pPar[k], pParent->DimXAlign);
if (pPar) ctx = maxLen<(BLK_SIZE >> 1), mode>(&pPar[k], pParent->DimXAlign);
if ((mode == encode && treeCodec.code(pCur1[i] == INSIGNIF_BLOCK, ctx)) || (mode == decode && treeCodec.decode(ctx))) {
pCur1[i] = pCur1[i + (BLK_SIZE >> 1)] = pCur2[i] = pCur2[i + (BLK_SIZE >> 1)] = -(pChild != 0) & INSIGNIF_BLOCK;
} else {
Expand Down

0 comments on commit 45b25d2

Please sign in to comment.