imgqueue.h

来自「一个基于linux下的摄像头应用程序」· C头文件 代码 · 共 36 行

H
36
字号
/********************************************************************* * webcam_server                                                     * *                                                                   * * (c) 2002 Donn Morrison donn@donn.dyndns.org                       * *                                                                   * * 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 _IMGQUEUE_H_INCLUDED_#define _IMGQUEUE_H_INCLUDED_#include <pthread.h>struct imagequeue *peek(struct caminfo *cam);int clean(struct caminfo *cam);void push(struct caminfo *cam, struct imagequeue *new);struct imagequeue{	int id;	int ref;	pthread_mutex_t lock_ref;	char *jpeg_data;	int len;	struct imagequeue *next;	struct imagequeue *prev;};#endif

⌨️ 快捷键说明

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