ClanLib
2.3.7
|
JPEG Compressor. More...
#include <jpeg_compressor.h>
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. More... | |
void | set_quality (int quality) |
Set quality. More... | |
void | set_size (int width, int height) |
Set size. More... | |
void | set_color_space (ColorSpace in_color_space, int in_components, ColorSpace out_color_space, int out_components) |
Set color space. More... | |
void | start (bool raw_data=false) |
Start. More... | |
void | write_marker (int marker, const void *const data, int length) |
Write marker. More... | |
void | write_comment_marker (const CL_StringRef &comment) |
Write comment marker. More... | |
void | write_scanlines (const unsigned char **data, unsigned int lines) |
Write scanlines. More... | |
void | write_raw_data (const unsigned char ***data, unsigned int lines) |
Write raw data. More... | |
void | finish () |
Finish. More... | |
JPEG Compressor.
CL_JPEGCompressor::CL_JPEGCompressor | ( | ) |
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.
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.
output_source | = IODevice |
void CL_JPEGCompressor::set_quality | ( | int | quality) |
Set quality.
quality | = value |
void CL_JPEGCompressor::set_size | ( | int | width, |
int | height | ||
) |
Set size.
width | = value |
height | = value |
void CL_JPEGCompressor::start | ( | bool | raw_data = false ) |
Start.
raw_data | = bool |
void CL_JPEGCompressor::write_comment_marker | ( | const CL_StringRef & | comment) |
Write comment marker.
comment | = String Ref |
void CL_JPEGCompressor::write_marker | ( | int | marker, |
const void *const | data, | ||
int | length | ||
) |
Write marker.
marker | = value |
data | = data |
length | = value |
void CL_JPEGCompressor::write_raw_data | ( | const unsigned char *** | data, |
unsigned int | lines | ||
) |
Write raw data.
data | = char |
lines | = value |
void CL_JPEGCompressor::write_scanlines | ( | const unsigned char ** | data, |
unsigned int | lines | ||
) |
Write scanlines.
data | = char |
lines | = value |