CL_JPEGCompressor Class Reference
[clanDisplay Image Providers]

JPEG Compressor. More...

#include <jpeg_compressor.h>

List of all members.

Public Member Functions

Construction

 CL_JPEGCompressor ()

Operations



enum  ColorSpace {
  grayscale, rgb, ycbcr, cmyk,
  ycck
}
enum  SpecialMarker {
  marker_rst0 = 0xD0, marker_eoi = 0xD9, marker_app0 = 0xe0, marker_app1 = 0xe1,
  marker_app2 = 0xe2, marker_app3 = 0xe3, marker_app4 = 0xe4, marker_app5 = 0xe5,
  marker_app6 = 0xe6, marker_app7 = 0xe7, marker_app8 = 0xe8, marker_app9 = 0xe9,
  marker_app10 = 0xea, marker_app11 = 0xeb, marker_app12 = 0xec, marker_app13 = 0xed,
  marker_app14 = 0xee, marker_com = 0xfe
}
void set_output (CL_IODevice output_source)
 Set output.
void set_quality (int quality)
 Set quality.
void set_size (int width, int height)
 Set size.
void set_color_space (ColorSpace in_color_space, int in_components, ColorSpace out_color_space, int out_components)
 Set color space.
void start (bool raw_data=false)
 Start.
void write_marker (int marker, const void *const data, int length)
 Write marker.
void write_comment_marker (const CL_StringRef &comment)
 Write comment marker.
void write_scanlines (const unsigned char **data, unsigned int lines)
 Write scanlines.
void write_raw_data (const unsigned char ***data, unsigned int lines)
 Write raw data.
void finish ()
 Finish.

Detailed Description

JPEG Compressor.


Member Enumeration Documentation

Enumerator:
grayscale 
rgb 
ycbcr 
cmyk 
ycck 
Enumerator:
marker_rst0 
marker_eoi 
marker_app0 
marker_app1 
marker_app2 
marker_app3 
marker_app4 
marker_app5 
marker_app6 
marker_app7 
marker_app8 
marker_app9 
marker_app10 
marker_app11 
marker_app12 
marker_app13 
marker_app14 
marker_com 

Constructor & Destructor Documentation

CL_JPEGCompressor::CL_JPEGCompressor (  ) 

Member Function Documentation

void CL_JPEGCompressor::finish (  ) 

Finish.

void CL_JPEGCompressor::set_color_space ( ColorSpace  in_color_space,
int  in_components,
ColorSpace  out_color_space,
int  out_components 
)

Set color space.

Parameters:
in_color_space = Color Space
in_components = value
out_color_space = Color Space
out_components = value
void CL_JPEGCompressor::set_output ( CL_IODevice  output_source  ) 

Set output.

Parameters:
output_source = IODevice
void CL_JPEGCompressor::set_quality ( int  quality  ) 

Set quality.

Parameters:
quality = value
void CL_JPEGCompressor::set_size ( int  width,
int  height 
)

Set size.

Parameters:
width = value
height = value
void CL_JPEGCompressor::start ( bool  raw_data = false  ) 

Start.

Parameters:
raw_data = bool
void CL_JPEGCompressor::write_comment_marker ( const CL_StringRef comment  ) 

Write comment marker.

Parameters:
comment = String Ref
void CL_JPEGCompressor::write_marker ( int  marker,
const void *const   data,
int  length 
)

Write marker.

Parameters:
marker = value
data = data
length = value
void CL_JPEGCompressor::write_raw_data ( const unsigned char ***  data,
unsigned int  lines 
)

Write raw data.

Parameters:
data = char
lines = value
void CL_JPEGCompressor::write_scanlines ( const unsigned char **  data,
unsigned int  lines 
)

Write scanlines.

Parameters:
data = char
lines = value

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