j2k.hpp
来自「Jpeg2000在vxworks下的实现」· HPP 代码 · 共 24 行
HPP
24 行
#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 + =
减小字号Ctrl + -
显示快捷键?