VideoTools
|
An image format converter that can convert to and from the raw and jpeg formats (only), with scaling and monochrome options. More...
#include <grimageconverter.h>
Public Member Functions | |
ImageConverter () | |
Default constructor. | |
bool | toRaw (Image image_in, Image &image_out, int scale=1, bool monochrome_out=false) |
Converts the image to raw format. Returns a false on error. | |
bool | toJpeg (Image image_in, Image &image_out, int scale=1, bool monochrome_out=false) |
Converts the image to jpeg format. Returns false on error. | |
Static Public Member Functions | |
static bool | convertible (Gr::ImageType) |
Returns true if the image type is convertible. More... | |
An image format converter that can convert to and from the raw and jpeg formats (only), with scaling and monochrome options.
The implementation uses Gr::ImageDecoder for decoding, and Gr::JpegWriter for encoding.
Definition at line 43 of file grimageconverter.h.
|
static |
Returns true if the image type is convertible.
In practice this returns true for jpeg and raw image types.
Definition at line 35 of file grimageconverter.cpp.