Decoding images with Cool-chic¶
In order to offer fast decoding, Cool-chic relies on a C API re-implementing efficiently all the components of the decoder i.e ARM, Upsampling, Synthesis.
The following script is used to decode image with Cool-chic. We provide a few
already encoded bitstreams, ready to be decoded in samples/bitstreams/
.
(venv) ~/Cool-Chic$ python coolchic/decode.py \
-i=samples/bitstream/kodim14.cool \
-o=decoded-kodim14.ppm \
--verbosity=1
Attention
By default, Cool-chic decoder leverages AVX2 CPU instructions for faster
decoding. If these instructions not available on your device, use the
--no_avx2
argument.
Note that Cool-Chic outputs either PPM (and not PNG!) or YUV files.