www.pudn.com > J2KLib.rar > J2kClass.h
//--------------------------------------------------------------------------- #ifndef Jpeg2000H #define Jpeg2000H #define WIN32 #include#include #include "J2k.h" #include 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