- 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源码
J2kClass.h
资源名称:J2KLib.rar [点击查看]
上传用户:xin6688482
上传日期:2013-09-07
资源大小:276k
文件大小:1k
源码类别:
图形图像处理
开发平台:
C++ Builder
- //---------------------------------------------------------------------------
- #ifndef Jpeg2000H
- #define Jpeg2000H
- #define WIN32
- #include <vcl.h>
- #include <math.h>
- #include "J2k.h"
- #include <Graphics.hpp>
- class TJ2kCoder
- {
- public:
- //CompressionRate:压缩倍数
- bool Encode( Graphics::TBitmap *Bitmap, TMemoryStream *mStm ,double CompressionRate = 10.0 );
- bool Decode( TMemoryStream *mStm, Graphics::TBitmap *Bitmap );
- protected:
- void j2k_calc_explicit_stepsizes(j2k_tccp_t *tccp, int prec);
- void j2k_encode_stepsize(int stepsize, int numbps, int *expn, int *mant);
- int j2k_floorlog2( int a );
- };
- //---------------------------------------------------------------------------
- #endif