代码拉取完成,页面将自动刷新
#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
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。