VideoTools
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Gr::ImageConverter Class Reference

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...
 

Detailed Description

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.

Member Function Documentation

bool Gr::ImageConverter::convertible ( Gr::ImageType  type)
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.


The documentation for this class was generated from the following files: