Project

General

Profile

« Previous | Next » 

Revision 950654d9

Added by dsorber about 9 years ago

Remaking a few changes that seem to have been missed in the merge (?).

View differences:

software/photo_compress_archiver/packJPG/aricoder.cpp
{
if ( mode == StreamMode::kRead) { // mode is reading / decoding
// code buffer has to be filled before starting decoding
for (int i = 0; i < CODER_USE_BITS; i++ )
for (uint32_t i = 0; i < CODER_USE_BITS; i++ )
ccode = ( ccode << 1 ) | read_bit();
} // mode is writing / encoding otherwise
}
......
// go through the totals table, search the symbol that matches the count
int c;
uint32_t c;
for (c = 1; c < totals.size(); c++) {
if (count >= totals[c]) {
break;
software/photo_compress_archiver/packJPG/bitops.cpp
#include <algorithm>
#include <array>
#include <cstdio>
#include <stdlib.h>
#include <cstdlib>
#include <vector>
#if defined(_WIN32) || defined(WIN32)

Also available in: Unified diff