JunkBox_Lib 1.10.1
|
JP2K TOOL2 with OpenJpeg-2.x. More...
Go to the source code of this file.
Functions | |
void | init_jp2k (JP2KImage *jp) |
void | free_jp2k (JP2KImage *jp) |
void | setup_jp2k (JP2KImage *jp) |
int | get_jp2k_format (uByte *buf) |
JP2KImage | read_jp2k_file (const char *fname) |
JP2KImage | read_jp2k_data (const char *fname, int format) |
BSGraph | jp2k_toBSGraph (JP2KImage jp) |
Definition in file jp2k_tool2.c.
void free_jp2k | ( | JP2KImage * | jp | ) |
Definition at line 36 of file jp2k_tool2.c.
References init_jp2k().
Referenced by read_jp2k_data().
int get_jp2k_format | ( | uByte * | buf | ) |
JPEG 2000のヘッダからファイルの種類を返す.
ただし,ヘッダから JP2K_FMT_JPTであることは判別できないので,注意する.
buf | ヘッダ情報の入った変数.最低12Byte必要. |
Definition at line 102 of file jp2k_tool2.c.
References buf.
Referenced by read_jp2k_file().
void init_jp2k | ( | JP2KImage * | jp | ) |
Definition at line 21 of file jp2k_tool2.c.
References GRAPH_COLOR_RGBA, and JBXL_NORMAL.
Referenced by free_jp2k(), read_jp2k_data(), and read_jp2k_file().
BSGraph jp2k_toBSGraph | ( | JP2KImage | jp | ) |
Definition at line 249 of file jp2k_tool2.c.
References BSGraph::gp, JBXL_GRAPH_NODATA_ERROR, make_BSGraph(), BSGraph::state, and BSGraph::xs.
JP2KImage read_jp2k_data | ( | const char * | fname, |
int | format ) |
Definition at line 156 of file jp2k_tool2.c.
References free_jp2k(), init_jp2k(), JBXL_GRAPH_ERROR, JBXL_GRAPH_RDFILE_ERROR, PRINT_MESG, and setup_jp2k().
Referenced by read_jp2k_file().
JP2KImage read_jp2k_file | ( | const char * | fname | ) |
Definition at line 116 of file jp2k_tool2.c.
References get_jp2k_format(), init_jp2k(), JBXL_GRAPH_IVDARG_ERROR, JBXL_GRAPH_OPFILE_ERROR, read_jp2k_data(), and UNUSED.
void setup_jp2k | ( | JP2KImage * | jp | ) |
Definition at line 47 of file jp2k_tool2.c.
References DEBUG_MODE, GRAPH_COLOR_GRAY, GRAPH_COLOR_RGB, GRAPH_COLOR_RGBA, GRAPH_COLOR_UNKNOWN, and PRINT_MESG.
Referenced by read_jp2k_data().