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

📄 filters.h

📁 此代码为嵌入式图片服务器
💻 H
字号:
/*********************************************************************
 * webcam_server                                                     *
 *                                                                   *
 * (c) 2007 Jason totti guojunjie@jinyaco.com.cn                     *
 *                                                                   *
 * code used from Gerd Knorr's xawtv (libng)                         *
 * - and -                                                           *
 * Cory Lueninghoener's gqcam                                        *
 *                                                                   *
 *    waits for connections from a viewer and sends                  *
 *    jpeg encoded captures as a live video feed                     *
 *                                                                   *
 *********************************************************************/

//#ifndef _FILTERS_H_INCLUDED_
//#define _FILTERS_H_INCLUDED_

void rotate_image(struct image* img, int rot);
int compare_images(unsigned char *last, unsigned char *current, int width, int height);
void fliph(struct image* img);
void flipv(struct image* img);
void swap_rgb24(struct image* img);
void adjust_gamma(struct image* img, int corr);
//void add_text(struct image* img, char *text, struct RGB fg, struct RGB bg, struct RGB trans, int xpos, int ypos);
int image2jpeg(struct image* img, char **jpeg_data, int quality);

//#endif

⌨️ 快捷键说明

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