JPEG Wrap  0.0.1-2561
C++ JPEG Wrap for IJG's jpeglib
JPEG Wrap Documentation

C Code Run's JPEG wrapper library. Uses IJG's C API jpeglib to both create and read jpeg files, but does so using easy-to-use C++ classes and methods.

See JWCompress and JWDecompress for usage details.

Example:

#include <JPEGWrap.hpp>
void create_jpg_image( const std::vector<uint8_t> &image, const size_t row_stride )
{
jpg.set_output_file( "test.jpg" );
jpg.set_size( 640, 480 );
jpg.set_quality( 55 );
jpg.set_smoothing( 5 );
jpg.compress_yuv422( image.data(), row_stride );
}