Revision 352640e2
Added by David Sorber about 8 years ago
| software/packJPG_library/lib_src/packjpg.cpp | ||
|---|---|---|
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
/* -----------------------------------------------
|
||
|
function declarations: main interface
|
||
|
----------------------------------------------- */
|
||
|
void process_file(void);
|
||
|
void execute(bool (*function)());
|
||
|
|
||
|
|
||
|
/* -----------------------------------------------
|
||
|
function declarations: main functions
|
||
|
----------------------------------------------- */
|
||
|
bool reset_buffers(void);
|
||
|
bool read_jpeg(void);
|
||
|
bool merge_jpeg(void);
|
||
|
bool decode_jpeg(void);
|
||
|
bool recode_jpeg(void);
|
||
|
bool adapt_icos(void);
|
||
|
bool predict_dc(void);
|
||
|
bool unpredict_dc(void);
|
||
|
bool check_value_range(void);
|
||
|
bool calc_zdst_lists(void);
|
||
|
bool pack_pjg(void);
|
||
|
bool unpack_pjg(void);
|
||
|
|
||
|
|
||
|
/* -----------------------------------------------
|
||
|
function declarations: jpeg-specific
|
||
|
----------------------------------------------- */
|
||
| ... | ... | |
|
}
|
||
|
}
|
||
|
|
||
|
/* ----------------------- End of main interface functions -------------------------- */
|
||
|
/* ----------------------- End of main interface functions ----------------- */
|
||
|
|
||
|
/* ----------------------- Begin of main functions -------------------------- */
|
||
|
|
||
|
/* ----------------------- Begin of main functions ------------------------- */
|
||
|
|
||
|
/* -----------------------------------------------
|
||
|
set each variable to its initial value
|
||
| ... | ... | |
|
return true;
|
||
|
}
|
||
|
|
||
|
/* ------------------------ End of main functions -------------------------- */
|
||
|
|
||
|
|
||
|
/* ----------------------- End of main functions -------------------------- */
|
||
|
|
||
|
#if 0
|
||
|
|
||
|
/* ----------------------- Begin of JPEG specific functions -------------------------- */
|
||
|
|
||
|
/* ----------------------- Begin of JPEG specific functions ---------------- */
|
||
|
|
||
|
/* -----------------------------------------------
|
||
|
Parses header for imageinfo
|
||
|
----------------------------------------------- */
|
||
|
bool jpg_setup_imginfo(void)
|
||
|
bool packJPG::jpg_setup_imginfo(void)
|
||
|
{
|
||
|
unsigned char type = 0x00; // type of current marker segment
|
||
|
unsigned int len = 0; // length of current marker segment
|
||
| ... | ... | |
|
}
|
||
|
}
|
||
|
|
||
|
|
||
|
return true;
|
||
|
}
|
||
|
|
||
|
#if 0
|
||
|
|
||
|
/* -----------------------------------------------
|
||
|
Parse routines for JFIF segments
|
||
| software/packJPG_library/lib_src/packjpg.h | ||
|---|---|---|
|
|
||
|
private:
|
||
|
|
||
|
/**************************************************************************
|
||
|
* JPEG specific functions
|
||
|
*************************************************************************/
|
||
|
|
||
|
bool jpg_setup_imginfo(void);
|
||
|
|
||
|
|
||
|
|
||
|
/**************************************************************************
|
||
|
* Member variables
|
||
|
*************************************************************************/
|
||
|
/* -----------------------------------------------
|
||
|
global variables: library only variables
|
||
|
----------------------------------------------- */
|
||
WIP for libpackjpg reorganization: stashing current progress so I can go
watch TV while working