1 Star 0 Fork 1

QuecPython/jpeg

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
jpeg_operation.h 1.16 KB
一键复制 编辑 原始数据 按行查看 历史
freddy.li 提交于 2021-11-18 17:32 . update jpeg
#ifndef JPEGOPERATION_H
#define JPEGOPERATION_H
#ifdef __cplusplus
extern "C" {
#endif
#define uint_32 unsigned int
#define uint_8 unsigned char
#define uint_16 unsigned short
typedef struct _rgb_struct{
int width;
int height;
void *buf;
} rgb_struct;
void rgb5652bgr888(short *src, char *dest, int size);
int JPEG2RGB565(const char* jpeg_file, rgb_struct *rgb565);
int RGB5652JPEG(const char* jpeg_file, unsigned char* rgb_buffer, int width, int height, int quality);
int yuv420_to_jpg(char *filename, int width, int height, unsigned char *pYUVBuffer);
int yuv420_nv12_to_rgb565_zoom_out(uint_16 *pRgbData, uint_32 rgbWidth, uint_32 rgbHeight, uint_8 *pYuvData, uint_32 yuvWidth, uint_32 yuvHeight);
int yuv420_nv12_to_rgb888(uint_8 *pRgb888Data, uint_32 rgbWidth, uint_32 rgbHeight, uint_8 *pYuvData, uint_32 yuvWidth, uint_32 yuvHeight);
int yuv420_NV12_to_jpg(char *filename, int img_width, int img_height, unsigned char *pYUVBuffer, int width, int height);
int yuv422_UYVY_to_jpg(char *filename, int img_width, int img_height, unsigned char *pYUVBuffer, int width, int height);
#ifdef __cplusplus
}
#endif
#endif
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/quecpython/jpeg.git
git@gitee.com:quecpython/jpeg.git
quecpython
jpeg
jpeg
master

搜索帮助