www.pudn.com > ±à½âÂëv1_01.rar > j2k.hpp


#include "vxworks.h" 
#include "stdio.h" 
#include  
#include "j2k.h" 
#include  
#include  
 
struct   J2K_COMPRESS_PARA { 
      int width; 
      int height; 
      int format; /* YUV, RGB*/ 
      int depth;  /* 24b, B/W8*/ 
      unsigned char *R;  /* source image data,red component */ 
      unsigned char *G;  /* source image data green component*/ 
      unsigned char *B;  /* source image data blue component*/ 
      int headlen;  /* head length of the image, skipped by algorithm  */ 
      int size;   /* the expected j2k file's size */ 
}; 
 
 
extern int j2kEncode(J2K_COMPRESS_PARA *para,unsigned char *jBuf); 
extern int j2kDecode(J2K_COMPRESS_PARA *para,unsigned char *jBuf);