dmuICjencoder
Inherits from: dmuIC
#include "dmuICjencoder.h"
Overview
This object provides the ability to jpeg encode images passed to it.
This object is a subclass of the dmuIC object. This object
implements the setup method and creates a jpeg encoder. The only
thing that this object has to do is create a valid image conversion
context within the setup method. In addition, there is a method
for setting the quality of the compression.
See the source code for more info and implementation details.
Public Methods
- dmuICjencoder()
Constructor: This is the constructor that setups up some default
values. If you use this constructor, you must set the image
width and height before you call the setup method. This constructor
will also set the default quality to DMU_DMIC_JENCODE_DEFAULT_QUALITY.
- dmuICjencoder(int imageSizeX, int imageSizeY)
Constructor: You probably want to use this constructor. It set some
default values and sets the image width and height.
- virtual ~dmuICjencoder()
Destructor: Right now this does nothing other than implicitly calling
the superclass' destructor
- int setup()
This is the method that creates the image conversion context.
This method overrides the base class method. It sets changes some
of the base class defaults. The changes are shown here:
Conversion Direction |
DM_IC_CODE_DIRECTION_ENCODE |
- int setQuality(int quality)
Allows you to set the quality of the jpeg compression. The range of
values allowed are between DMU_DMIC_JENCODE_MIN_QUALITY = 0 and
DMU_DMIC_JENCODE_MAX_QUALITY = 100. This value is the jpg Q factor
multiplied by 100
Overview Object List Object Hierarchy
Sample Apps