⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 j2k.hpp

📁 Jpeg2000在vxworks下的实现
💻 HPP
字号:
#include "vxworks.h"
#include "stdio.h"
#include <string.h>
#include "j2k.h"
#include <stdlib.h>
#include <iolib.h>

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);

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -