kviewshell
JB2Dict::JB2Codec Class Reference
#include <JB2Image.h>
Inherited by JB2Dict::JB2Codec::Decode, and JB2Dict::JB2Codec::Encode.
Classes | |
struct | LibRect |
Public Types | |
typedef unsigned int | NumContext |
Public Member Functions | |
virtual | ~JB2Codec () |
Protected Member Functions | |
int | add_library (const int shapeno, JB2Shape &jshp) |
virtual void | code_absolute_location (JB2Blit *jblt, int rows, int columns)=0 |
virtual void | code_absolute_mark_size (GBitmap &bm, int border=0)=0 |
virtual void | code_bitmap_by_cross_coding (GBitmap &bm, GBitmap &cbm, const int xd2c, const int dw, int dy, int cy, unsigned char *up1, unsigned char *up0, unsigned char *xup1, unsigned char *xup0, unsigned char *xdn1)=0 |
void | code_bitmap_by_cross_coding (GBitmap &bm, GP< GBitmap > &cbm, const int libno) |
virtual void | code_bitmap_directly (GBitmap &bm, const int dw, int dy, unsigned char *up2, unsigned char *up1, unsigned char *up0)=0 |
void | code_bitmap_directly (GBitmap &bm) |
virtual void | code_comment (GUTF8String &comment)=0 |
void | code_eventual_lossless_refinement (void) |
virtual void | code_image_size (JB2Image &jim) |
virtual void | code_image_size (JB2Dict &jim) |
virtual void | code_inherited_shape_count (JB2Dict &jim)=0 |
virtual int | code_match_index (int &index, JB2Dict &jim)=0 |
void | code_record (int &rectype, const GP< JB2Image > &jim, JB2Shape *jshp, JB2Blit *jblt) |
void | code_record (int &rectype, const GP< JB2Dict > &jim, JB2Shape *jshp) |
virtual void | code_record_type (int &rectype)=0 |
void | code_relative_location (JB2Blit *jblt, int rows, int columns) |
virtual void | code_relative_mark_size (GBitmap &bm, int cw, int ch, int border=0)=0 |
virtual bool | CodeBit (const bool bit, BitContext &ctx)=0 |
int | CodeNum (int lo, int hi, NumContext *pctx, int v) |
void | fill_short_list (const int v) |
virtual int | get_diff (const int x_diff, NumContext &rel_loc)=0 |
void | init_library (JB2Dict &jim) |
JB2Codec (const JB2Codec &ref) | |
JB2Codec (const bool xencoding=false) | |
JB2Codec & | operator= (const JB2Codec &ref) |
void | reset_numcoder (void) |
int | update_short_list (const int v) |
Static Protected Member Functions | |
static void | compute_bounding_box (GBitmap &cbm, LibRect &lrect) |
static int | get_cross_context (unsigned char const *const up1, unsigned char const *const up0, unsigned char const *const xup1, unsigned char const *const xup0, unsigned char const *const xdn1, const int column) |
static int | get_direct_context (unsigned char const *const up2, unsigned char const *const up1, unsigned char const *const up0, const int column) |
static int | shift_cross_context (const int context, const int n, unsigned char const *const up1, unsigned char const *const up0, unsigned char const *const xup1, unsigned char const *const xup0, unsigned char const *const xdn1, const int column) |
static int | shift_direct_context (const int context, const int next, unsigned char const *const up2, unsigned char const *const up1, unsigned char const *const up0, const int column) |
Protected Attributes | |
NumContext | abs_loc_x |
NumContext | abs_loc_y |
NumContext | abs_size_x |
NumContext | abs_size_y |
BitContext * | bitcells |
BitContext | bitdist [1024] |
BitContext | cbitdist [2048] |
int | cur_ncell |
NumContext | dist_comment_byte |
NumContext | dist_comment_length |
NumContext | dist_match_index |
NumContext | dist_record_type |
BitContext | dist_refinement_flag |
GPBuffer< BitContext > | gbitcells |
GPBuffer< NumContext > | gleftcell |
char | gotstartrecordp |
GPBuffer< NumContext > | grightcell |
int | image_columns |
int | image_rows |
NumContext | image_size_dist |
NumContext | inherited_shape_count_dist |
int | last_bottom |
int | last_left |
int | last_right |
int | last_row_bottom |
int | last_row_left |
NumContext * | leftcell |
GTArray< int > | lib2shape |
GTArray< LibRect > | libinfo |
BitContext | offset_type_dist |
bool | refinementp |
NumContext | rel_loc_x_current |
NumContext | rel_loc_x_last |
NumContext | rel_loc_y_current |
NumContext | rel_loc_y_last |
NumContext | rel_size_x |
NumContext | rel_size_y |
NumContext * | rightcell |
GTArray< int > | shape2lib |
int | short_list [3] |
int | short_list_pos |
Detailed Description
Definition at line 592 of file JB2Image.h.
Member Typedef Documentation
typedef unsigned int JB2Dict::JB2Codec::NumContext |
Definition at line 596 of file JB2Image.h.
Constructor & Destructor Documentation
JB2Dict::JB2Codec::~JB2Codec | ( | ) | [virtual] |
Definition at line 417 of file JB2Image.cpp.
JB2Dict::JB2Codec::JB2Codec | ( | const bool | xencoding = false |
) | [protected] |
Definition at line 382 of file JB2Image.cpp.
JB2Dict::JB2Codec::JB2Codec | ( | const JB2Codec & | ref | ) | [protected] |
Member Function Documentation
int JB2Dict::JB2Codec::add_library | ( | const int | shapeno, | |
JB2Shape & | jshp | |||
) | [protected] |
Definition at line 590 of file JB2Image.cpp.
virtual void JB2Dict::JB2Codec::code_absolute_location | ( | JB2Blit * | jblt, | |
int | rows, | |||
int | columns | |||
) | [protected, pure virtual] |
virtual void JB2Dict::JB2Codec::code_absolute_mark_size | ( | GBitmap & | bm, | |
int | border = 0 | |||
) | [protected, pure virtual] |
virtual void JB2Dict::JB2Codec::code_bitmap_by_cross_coding | ( | GBitmap & | bm, | |
GBitmap & | cbm, | |||
const int | xd2c, | |||
const int | dw, | |||
int | dy, | |||
int | cy, | |||
unsigned char * | up1, | |||
unsigned char * | up0, | |||
unsigned char * | xup1, | |||
unsigned char * | xup0, | |||
unsigned char * | xdn1 | |||
) | [protected, pure virtual] |
void JB2Dict::JB2Codec::code_bitmap_by_cross_coding | ( | GBitmap & | bm, | |
GP< GBitmap > & | cbm, | |||
const int | libno | |||
) | [protected] |
Definition at line 854 of file JB2Image.cpp.
virtual void JB2Dict::JB2Codec::code_bitmap_directly | ( | GBitmap & | bm, | |
const int | dw, | |||
int | dy, | |||
unsigned char * | up2, | |||
unsigned char * | up1, | |||
unsigned char * | up0 | |||
) | [protected, pure virtual] |
void JB2Dict::JB2Codec::code_bitmap_directly | ( | GBitmap & | bm | ) | [protected] |
Definition at line 809 of file JB2Image.cpp.
virtual void JB2Dict::JB2Codec::code_comment | ( | GUTF8String & | comment | ) | [protected, pure virtual] |
void JB2Dict::JB2Codec::code_eventual_lossless_refinement | ( | void | ) | [inline, protected] |
Definition at line 715 of file JB2Image.h.
void JB2Dict::JB2Codec::code_image_size | ( | JB2Image & | jim | ) | [protected, virtual] |
Definition at line 694 of file JB2Image.cpp.
void JB2Dict::JB2Codec::code_image_size | ( | JB2Dict & | jim | ) | [protected, virtual] |
Definition at line 672 of file JB2Image.cpp.
virtual void JB2Dict::JB2Codec::code_inherited_shape_count | ( | JB2Dict & | jim | ) | [protected, pure virtual] |
virtual int JB2Dict::JB2Codec::code_match_index | ( | int & | index, | |
JB2Dict & | jim | |||
) | [protected, pure virtual] |
void JB2Dict::JB2Codec::code_record | ( | int & | rectype, | |
const GP< JB2Image > & | jim, | |||
JB2Shape * | jshp, | |||
JB2Blit * | jblt | |||
) | [protected] |
Definition at line 1083 of file JB2Image.cpp.
void JB2Dict::JB2Codec::code_record | ( | int & | rectype, | |
const GP< JB2Dict > & | jim, | |||
JB2Shape * | jshp | |||
) | [protected] |
Definition at line 925 of file JB2Image.cpp.
virtual void JB2Dict::JB2Codec::code_record_type | ( | int & | rectype | ) | [protected, pure virtual] |
void JB2Dict::JB2Codec::code_relative_location | ( | JB2Blit * | jblt, | |
int | rows, | |||
int | columns | |||
) | [protected] |
Definition at line 711 of file JB2Image.cpp.
virtual void JB2Dict::JB2Codec::code_relative_mark_size | ( | GBitmap & | bm, | |
int | cw, | |||
int | ch, | |||
int | border = 0 | |||
) | [protected, pure virtual] |
virtual bool JB2Dict::JB2Codec::CodeBit | ( | const bool | bit, | |
BitContext & | ctx | |||
) | [protected, pure virtual] |
int JB2Dict::JB2Codec::CodeNum | ( | int | lo, | |
int | hi, | |||
NumContext * | pctx, | |||
int | v | |||
) | [protected] |
Definition at line 468 of file JB2Image.cpp.
static void JB2Dict::JB2Codec::compute_bounding_box | ( | GBitmap & | cbm, | |
LibRect & | lrect | |||
) | [static, protected] |
void JB2Dict::JB2Codec::fill_short_list | ( | const int | v | ) | [inline, protected] |
Definition at line 721 of file JB2Image.h.
int JB2Dict::JB2Codec::get_cross_context | ( | unsigned char const *const | up1, | |
unsigned char const *const | up0, | |||
unsigned char const *const | xup1, | |||
unsigned char const *const | xup0, | |||
unsigned char const *const | xdn1, | |||
const int | column | |||
) | [inline, static, protected] |
Definition at line 759 of file JB2Image.h.
virtual int JB2Dict::JB2Codec::get_diff | ( | const int | x_diff, | |
NumContext & | rel_loc | |||
) | [protected, pure virtual] |
int JB2Dict::JB2Codec::get_direct_context | ( | unsigned char const *const | up2, | |
unsigned char const *const | up1, | |||
unsigned char const *const | up0, | |||
const int | column | |||
) | [inline, static, protected] |
Definition at line 728 of file JB2Image.h.
void JB2Dict::JB2Codec::init_library | ( | JB2Dict & | jim | ) | [protected] |
Definition at line 574 of file JB2Image.cpp.
void JB2Dict::JB2Codec::reset_numcoder | ( | void | ) | [protected] |
Definition at line 420 of file JB2Image.cpp.
int JB2Dict::JB2Codec::shift_cross_context | ( | const int | context, | |
const int | n, | |||
unsigned char const *const | up1, | |||
unsigned char const *const | up0, | |||
unsigned char const *const | xup1, | |||
unsigned char const *const | xup0, | |||
unsigned char const *const | xdn1, | |||
const int | column | |||
) | [inline, static, protected] |
Definition at line 780 of file JB2Image.h.
int JB2Dict::JB2Codec::shift_direct_context | ( | const int | context, | |
const int | next, | |||
unsigned char const *const | up2, | |||
unsigned char const *const | up1, | |||
unsigned char const *const | up0, | |||
const int | column | |||
) | [inline, static, protected] |
Definition at line 746 of file JB2Image.h.
int JB2Dict::JB2Codec::update_short_list | ( | const int | v | ) | [protected] |
Definition at line 623 of file JB2Image.cpp.
Member Data Documentation
NumContext JB2Dict::JB2Codec::abs_loc_x [protected] |
Definition at line 685 of file JB2Image.h.
NumContext JB2Dict::JB2Codec::abs_loc_y [protected] |
Definition at line 686 of file JB2Image.h.
NumContext JB2Dict::JB2Codec::abs_size_x [protected] |
Definition at line 687 of file JB2Image.h.
NumContext JB2Dict::JB2Codec::abs_size_y [protected] |
Definition at line 688 of file JB2Image.h.
BitContext* JB2Dict::JB2Codec::bitcells [protected] |
Definition at line 664 of file JB2Image.h.
BitContext JB2Dict::JB2Codec::bitdist[1024] [protected] |
Definition at line 710 of file JB2Image.h.
BitContext JB2Dict::JB2Codec::cbitdist[2048] [protected] |
Definition at line 711 of file JB2Image.h.
int JB2Dict::JB2Codec::cur_ncell [protected] |
Definition at line 663 of file JB2Image.h.
NumContext JB2Dict::JB2Codec::dist_comment_byte [protected] |
Definition at line 674 of file JB2Image.h.
NumContext JB2Dict::JB2Codec::dist_comment_length [protected] |
Definition at line 675 of file JB2Image.h.
NumContext JB2Dict::JB2Codec::dist_match_index [protected] |
Definition at line 678 of file JB2Image.h.
NumContext JB2Dict::JB2Codec::dist_record_type [protected] |
Definition at line 677 of file JB2Image.h.
BitContext JB2Dict::JB2Codec::dist_refinement_flag [protected] |
Definition at line 679 of file JB2Image.h.
GPBuffer<BitContext> JB2Dict::JB2Codec::gbitcells [protected] |
Definition at line 665 of file JB2Image.h.
GPBuffer<NumContext> JB2Dict::JB2Codec::gleftcell [protected] |
Definition at line 667 of file JB2Image.h.
char JB2Dict::JB2Codec::gotstartrecordp [protected] |
Definition at line 672 of file JB2Image.h.
GPBuffer<NumContext> JB2Dict::JB2Codec::grightcell [protected] |
Definition at line 669 of file JB2Image.h.
int JB2Dict::JB2Codec::image_columns [protected] |
Definition at line 703 of file JB2Image.h.
int JB2Dict::JB2Codec::image_rows [protected] |
Definition at line 704 of file JB2Image.h.
NumContext JB2Dict::JB2Codec::image_size_dist [protected] |
Definition at line 689 of file JB2Image.h.
Definition at line 690 of file JB2Image.h.
int JB2Dict::JB2Codec::last_bottom [protected] |
Definition at line 698 of file JB2Image.h.
int JB2Dict::JB2Codec::last_left [protected] |
Definition at line 699 of file JB2Image.h.
int JB2Dict::JB2Codec::last_right [protected] |
Definition at line 700 of file JB2Image.h.
int JB2Dict::JB2Codec::last_row_bottom [protected] |
Definition at line 701 of file JB2Image.h.
int JB2Dict::JB2Codec::last_row_left [protected] |
Definition at line 702 of file JB2Image.h.
NumContext* JB2Dict::JB2Codec::leftcell [protected] |
Definition at line 666 of file JB2Image.h.
GTArray<int> JB2Dict::JB2Codec::lib2shape [protected] |
Definition at line 682 of file JB2Image.h.
GTArray<LibRect> JB2Dict::JB2Codec::libinfo [protected] |
Definition at line 683 of file JB2Image.h.
BitContext JB2Dict::JB2Codec::offset_type_dist [protected] |
Definition at line 691 of file JB2Image.h.
bool JB2Dict::JB2Codec::refinementp [protected] |
Definition at line 671 of file JB2Image.h.
NumContext JB2Dict::JB2Codec::rel_loc_x_current [protected] |
Definition at line 692 of file JB2Image.h.
NumContext JB2Dict::JB2Codec::rel_loc_x_last [protected] |
Definition at line 693 of file JB2Image.h.
NumContext JB2Dict::JB2Codec::rel_loc_y_current [protected] |
Definition at line 694 of file JB2Image.h.
NumContext JB2Dict::JB2Codec::rel_loc_y_last [protected] |
Definition at line 695 of file JB2Image.h.
NumContext JB2Dict::JB2Codec::rel_size_x [protected] |
Definition at line 696 of file JB2Image.h.
NumContext JB2Dict::JB2Codec::rel_size_y [protected] |
Definition at line 697 of file JB2Image.h.
NumContext* JB2Dict::JB2Codec::rightcell [protected] |
Definition at line 668 of file JB2Image.h.
GTArray<int> JB2Dict::JB2Codec::shape2lib [protected] |
Definition at line 681 of file JB2Image.h.
int JB2Dict::JB2Codec::short_list[3] [protected] |
Definition at line 705 of file JB2Image.h.
int JB2Dict::JB2Codec::short_list_pos [protected] |
Definition at line 706 of file JB2Image.h.
The documentation for this class was generated from the following files: