This commit is contained in:
parent
a955827b44
commit
0a4bf12dea
|
@ -8,7 +8,7 @@ set(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE)
|
||||||
# The version number.
|
# The version number.
|
||||||
set(VERSION_MAJOR 0)
|
set(VERSION_MAJOR 0)
|
||||||
set(VERSION_MINOR 4)
|
set(VERSION_MINOR 4)
|
||||||
set(VERSION_PATCH 2)
|
set(VERSION_PATCH 3)
|
||||||
|
|
||||||
configure_file(
|
configure_file(
|
||||||
"caesium/config.h.in"
|
"caesium/config.h.in"
|
||||||
|
|
|
@ -101,7 +101,7 @@ This will compile both the shared and static caesium library, the required heade
|
||||||
##### Requirements
|
##### Requirements
|
||||||
You need basic developer utilities. On Ubuntu you can install them with
|
You need basic developer utilities. On Ubuntu you can install them with
|
||||||
```bash
|
```bash
|
||||||
sudo apt-get install libtool autoconf git nasm pkg-config cmake
|
sudo apt-get install libtool autoconf git nasm pkg-config cmake libpng-dev
|
||||||
```
|
```
|
||||||
Then run `install.sh` to get the latest mozjpeg and zopfli.
|
Then run `install.sh` to get the latest mozjpeg and zopfli.
|
||||||
##### Compile
|
##### Compile
|
||||||
|
|
|
@ -227,6 +227,7 @@ unsigned char *cs_jpeg_decompress(const char *fileName, cs_jpeg_pars *options)
|
||||||
display_error(ERROR, 208);
|
display_error(ERROR, 208);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fclose(fp);
|
||||||
tjDestroy(tjDecompressHandle);
|
tjDestroy(tjDecompressHandle);
|
||||||
tjFree(sourceJpegBuffer);
|
tjFree(sourceJpegBuffer);
|
||||||
|
|
||||||
|
|
|
@ -18,5 +18,5 @@ int main(int argc, char *argv[])
|
||||||
cs_image_pars options = initialize_parameters();
|
cs_image_pars options = initialize_parameters();
|
||||||
bool result = cs_compress(argv[1], argv[2], &options);
|
bool result = cs_compress(argv[1], argv[2], &options);
|
||||||
|
|
||||||
exit(result);
|
exit(!result);
|
||||||
}
|
}
|
Loading…
Reference in New Issue