COSMOS core
1.0.2 (beta)
Comprehensive Open-architecture Solution for Mission Operations Systems
|
Classes | |
struct | my_cquantizer |
struct | box |
Macros | |
#define | JPEG_INTERNALS |
#define | R_SCALE 2 /* scale R distances by this much */ |
#define | G_SCALE 3 /* scale G distances by this much */ |
#define | B_SCALE 1 /* and B by this much */ |
#define | C0_SCALE R_SCALE |
#define | C1_SCALE G_SCALE |
#define | C2_SCALE B_SCALE |
#define | MAXNUMCOLORS (MAXJSAMPLE+1) /* maximum size of colormap */ |
#define | HIST_C0_BITS 5 /* bits of precision in R/B histogram */ |
#define | HIST_C1_BITS 6 /* bits of precision in G histogram */ |
#define | HIST_C2_BITS 5 /* bits of precision in B/R histogram */ |
#define | HIST_C0_ELEMS (1<<HIST_C0_BITS) |
#define | HIST_C1_ELEMS (1<<HIST_C1_BITS) |
#define | HIST_C2_ELEMS (1<<HIST_C2_BITS) |
#define | C0_SHIFT (BITS_IN_JSAMPLE-HIST_C0_BITS) |
#define | C1_SHIFT (BITS_IN_JSAMPLE-HIST_C1_BITS) |
#define | C2_SHIFT (BITS_IN_JSAMPLE-HIST_C2_BITS) |
#define | BOX_C0_LOG (HIST_C0_BITS-3) |
#define | BOX_C1_LOG (HIST_C1_BITS-3) |
#define | BOX_C2_LOG (HIST_C2_BITS-3) |
#define | BOX_C0_ELEMS (1<<BOX_C0_LOG) /* # of hist cells in update box */ |
#define | BOX_C1_ELEMS (1<<BOX_C1_LOG) |
#define | BOX_C2_ELEMS (1<<BOX_C2_LOG) |
#define | BOX_C0_SHIFT (C0_SHIFT + BOX_C0_LOG) |
#define | BOX_C1_SHIFT (C1_SHIFT + BOX_C1_LOG) |
#define | BOX_C2_SHIFT (C2_SHIFT + BOX_C2_LOG) |
#define | STEP_C0 ((1 << C0_SHIFT) * C0_SCALE) |
#define | STEP_C1 ((1 << C1_SHIFT) * C1_SCALE) |
#define | STEP_C2 ((1 << C2_SHIFT) * C2_SCALE) |
#define | STEPSIZE ((MAXJSAMPLE+1)/16) |
Typedefs | |
typedef uint16_t | histcell |
typedef histcell * | histptr |
typedef histcell | hist1d[(1<< 5)] |
typedef hist1d * | hist2d |
typedef hist2d * | hist3d |
typedef int16_t | FSERROR |
typedef int | LOCFSERROR |
typedef FSERROR * | FSERRPTR |
typedef my_cquantizer * | my_cquantize_ptr |
typedef box * | boxptr |
Functions | |
static void | prescan_quantize (j_decompress_ptr cinfo, JSAMPARRAY input_buf, JSAMPARRAY output_buf, int num_rows) |
static boxptr | find_biggest_color_pop (boxptr boxlist, int numboxes) |
static boxptr | find_biggest_volume (boxptr boxlist, int numboxes) |
static void | update_box (j_decompress_ptr cinfo, boxptr boxp) |
static int | median_cut (j_decompress_ptr cinfo, boxptr boxlist, int numboxes, int desired_colors) |
static void | compute_color (j_decompress_ptr cinfo, boxptr boxp, int icolor) |
static void | select_colors (j_decompress_ptr cinfo, int desired_colors) |
static int | find_nearby_colors (j_decompress_ptr cinfo, int minc0, int minc1, int minc2, JSAMPLE colorlist[]) |
static void | find_best_colors (j_decompress_ptr cinfo, int minc0, int minc1, int minc2, int numcolors, JSAMPLE colorlist[], JSAMPLE bestcolor[]) |
static void | fill_inverse_cmap (j_decompress_ptr cinfo, int c0, int c1, int c2) |
static void | pass2_no_dither (j_decompress_ptr cinfo, JSAMPARRAY input_buf, JSAMPARRAY output_buf, int num_rows) |
static void | pass2_fs_dither (j_decompress_ptr cinfo, JSAMPARRAY input_buf, JSAMPARRAY output_buf, int num_rows) |
static void | init_error_limit (j_decompress_ptr cinfo) |
static void | finish_pass1 (j_decompress_ptr cinfo) |
static void | finish_pass2 (j_decompress_ptr cinfo) |
static void | start_pass_2_quant (j_decompress_ptr cinfo, boolean is_pre_scan) |
static void | new_color_map_2_quant (j_decompress_ptr cinfo) |
void | jinit_2pass_quantizer (j_decompress_ptr cinfo) |
#define JPEG_INTERNALS |
#define R_SCALE 2 /* scale R distances by this much */ |
#define G_SCALE 3 /* scale G distances by this much */ |
#define B_SCALE 1 /* and B by this much */ |
#define C0_SCALE R_SCALE |
#define C1_SCALE G_SCALE |
#define C2_SCALE B_SCALE |
#define MAXNUMCOLORS (MAXJSAMPLE+1) /* maximum size of colormap */ |
#define HIST_C0_BITS 5 /* bits of precision in R/B histogram */ |
#define HIST_C1_BITS 6 /* bits of precision in G histogram */ |
#define HIST_C2_BITS 5 /* bits of precision in B/R histogram */ |
#define HIST_C0_ELEMS (1<<HIST_C0_BITS) |
#define HIST_C1_ELEMS (1<<HIST_C1_BITS) |
#define HIST_C2_ELEMS (1<<HIST_C2_BITS) |
#define C0_SHIFT (BITS_IN_JSAMPLE-HIST_C0_BITS) |
#define C1_SHIFT (BITS_IN_JSAMPLE-HIST_C1_BITS) |
#define C2_SHIFT (BITS_IN_JSAMPLE-HIST_C2_BITS) |
#define BOX_C0_LOG (HIST_C0_BITS-3) |
#define BOX_C1_LOG (HIST_C1_BITS-3) |
#define BOX_C2_LOG (HIST_C2_BITS-3) |
#define BOX_C0_ELEMS (1<<BOX_C0_LOG) /* # of hist cells in update box */ |
#define BOX_C1_ELEMS (1<<BOX_C1_LOG) |
#define BOX_C2_ELEMS (1<<BOX_C2_LOG) |
#define BOX_C0_SHIFT (C0_SHIFT + BOX_C0_LOG) |
#define BOX_C1_SHIFT (C1_SHIFT + BOX_C1_LOG) |
#define BOX_C2_SHIFT (C2_SHIFT + BOX_C2_LOG) |
#define STEPSIZE ((MAXJSAMPLE+1)/16) |
typedef uint16_t histcell |
typedef histcell hist1d[(1<< 5)] |
typedef int16_t FSERROR |
typedef int LOCFSERROR |
typedef my_cquantizer* my_cquantize_ptr |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
void jinit_2pass_quantizer | ( | j_decompress_ptr | cinfo | ) |