- Visual C++源码
- Visual Basic源码
- C++ Builder源码
- Java源码
- Delphi源码
- C/C++源码
- PHP源码
- Perl源码
- Python源码
- Asm源码
- Pascal源码
- Borland C++源码
- Others源码
- SQL源码
- VBScript源码
- JavaScript源码
- ASP/ASPX源码
- C#源码
- Flash/ActionScript源码
- matlab源码
- PowerBuilder源码
- LabView源码
- Flex源码
- MathCAD源码
- VBA源码
- IDL源码
- Lisp/Scheme源码
- VHDL源码
- Objective-C源码
- Fortran源码
- tcl/tk源码
- QT源码
tcd.h
资源名称:J2KLib.rar [点击查看]
上传用户:xin6688482
上传日期:2013-09-07
资源大小:276k
文件大小:2k
源码类别:
图形图像处理
开发平台:
C++ Builder
- #ifndef __TCD_H #define __TCD_H #include "j2k.h" #include "tgt.h" typedef struct { int numpasses; int len; unsigned char *data; int maxpasses; int numnewpasses; int newlen; } tcd_seg_t; typedef struct { int rate; double distortiondec; } tcd_pass_t; typedef struct { int numpasses; int len; unsigned char *data; } tcd_layer_t; typedef struct { int x0, y0, x1, y1; int numbps; int numlenbits; int len; int numpasses; int numnewpasses; int numsegs; tcd_seg_t segs[100]; unsigned char data[8192]; int numpassesinlayers; tcd_layer_t layers[100]; int totalpasses; tcd_pass_t passes[100]; } tcd_cblk_t; typedef struct { int x0, y0, x1, y1; int cw, ch; tcd_cblk_t *cblks; tgt_tree_t *incltree; tgt_tree_t *imsbtree; } tcd_precinct_t; typedef struct { int x0, y0, x1, y1; int bandno; tcd_precinct_t *precincts; int numbps; int stepsize; } tcd_band_t; typedef struct { int x0, y0, x1, y1; int pw, ph; int numbands; tcd_band_t bands[3]; } tcd_resolution_t; typedef struct { int x0, y0, x1, y1; int numresolutions; tcd_resolution_t *resolutions; int *data; } tcd_tilecomp_t; typedef struct { int x0, y0, x1, y1; int numcomps; tcd_tilecomp_t *comps; } tcd_tile_t; typedef struct { int tw, th; tcd_tile_t *tiles; } tcd_image_t; void tcd_init(j2k_image_t *img, j2k_cp_t *cp); void tcd_destroy(j2k_image_t *img, j2k_cp_t *cp);
- int tcd_encode_tile(int tileno, unsigned char *dest, int len); int tcd_decode_tile(unsigned char *src, int len, int tileno); #endif