亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? netcam.h

?? motion motion
?? H
字號:
/* *	netcam.h * *	Include file for handling network cameras. * *	This code was inspired by the original netcam.c module *	written by Jeroen Vreeken and enhanced by several Motion *	project contributors, particularly Angel Carpintero and *	Christopher Price. *	 *	Copyright 2005, William M. Brack *	This software is distributed under the GNU Public license *	Version 2.  See also the file 'COPYING'. */#ifndef _INCLUDE_NETCAM_H#define _INCLUDE_NETCAM_H#undef HAVE_STDLIB_H#include <jpeglib.h>#include <setjmp.h>#include <sys/socket.h>#include <sys/types.h>#include <regex.h>/* * We are aiming to get the gcc compilation of motion practically "warning * free", when using all the possible warning switches.  The following macro * is to allow some function prototypes to include parameters which, at the * moment, are not used, but either still "need to be declared", or else are * planned to be used in the near future.  Eventually this macro will go into * motion.h, but that will be a little later. *//** * ATTRIBUTE_UNUSED: * * Macro used to signal to GCC unused function parameters */#ifdef __GNUC__#ifdef HAVE_ANSIDECL_H#include <ansidecl.h>#endif#ifndef ATTRIBUTE_UNUSED#define ATTRIBUTE_UNUSED __attribute__((unused))#endif#else#define ATTRIBUTE_UNUSED#endif/* netcam_wget.h needs to have netcam_context_ptr */typedef struct netcam_context *netcam_context_ptr;#include "netcam_wget.h"        /* needed for struct rbuf */#define NETCAM_BUFFSIZE 4096    /* Initial size reserved for a JPEG                                   image.  If expansion is required,                                   this value is also used for the                                   amount to increase. *//* * Error return codes for netcam routines.  The values are "bit * significant".  All error returns will return bit 1 set to indicate * these are "netcam errors"; additional bits set will give more detail * as to what kind of error it was. * Bit 0 is reserved for V4L type errors. * */#define NETCAM_GENERAL_ERROR       0x02          /* binary 000010 */#define NETCAM_NOTHING_NEW_ERROR   0x06          /* binary 000110 */#define NETCAM_JPEG_CONV_ERROR     0x0a          /* binary 001010 */#define NETCAM_RESTART_ERROR       0x12          /* binary 010010 */#define NETCAM_FATAL_ERROR         -2/* * struct url_t is used when parsing the user-supplied URL, as well as * when attempting to connect to the netcam. */struct url_t {	char *service;	char *userpass;	char *host;	int port;	char *path;};/* * We use a special "triple-buffer" technique.  There are * three separate buffers (latest, receiving and jpegbuf) * which are each described using a struct netcam_image_buff */typedef struct netcam_image_buff {	char *ptr;	int content_length;	size_t size;                    /* total allocated size */	size_t used;                    /* bytes already used */	struct timeval image_time;      /* time this image was received */} netcam_buff;typedef netcam_buff *netcam_buff_ptr;typedef struct file_context {	char      *path;               /* the path within the URL */	int       control_file_desc;   /* file descriptor for the control socket */	time_t    last_st_mtime;       /* time this image was modified */} tfile_context;/* * struct netcam_context contains all the structures and other data * for an individual netcam. */typedef struct netcam_context {	struct context *cnt;        /* pointer to parent motion	                               context structure */	int finish;                 /* flag to break the camera-	                               handling thread out of it's	                               infinite loop in emergency */	int threadnr;               /* motion's thread number for	                               the camera-handling thread	                               (if required).  Used for	                               error reporting */	pthread_t thread_id;        /* thread i.d. for a camera-	                               handling thread (if required).	                               Not currently used, but may be	                               useful in the future */	pthread_mutex_t mutex;      /* mutex used with conditional waits */	pthread_cond_t exiting;     /* pthread condition structure to let	                               the camera-handler acknowledge that	                               it's finished */	pthread_cond_t cap_cond;    /* pthread condition structure to	                               initiate next capture request (used	                               only with non-streaming cameras */	pthread_cond_t pic_ready;   /* pthread condition structure used	                                for synchronisation between the	                                camera handler and the motion main	                                loop, showing new frame is ready */		int start_capture;          /* besides our signalling condition,	                               we also keep a flag to assure the	                               camera-handler will always start	                               a new cycle as soon as possible,	                               even if it's not currently waiting	                               on the condition. */	char *connect_host;         /* the host to connect to (may be	                               either the camera host, or	                               possibly a proxy) */		int connect_port;           /* usually will be 80, but can be	                               specified as something else by	                               the user */	int connect_http_10;	    /* set to TRUE if HTTP 1.0 connection */	int connect_http_11;	    /* set to TRUE if HTTP 1.1 connection */	int connect_keepalive;      /* set to TRUE if connection maintained                                       after a request, otherwise FALSE to                                       close down the socket each time */	int keepalive_thisconn;     /* set to TRUE if cam has sent 'Keep-Alive' in this connection */	int keepalive_timeup;       /* set to TRUE if it is time to close netcam's socket,	                               and then re-open it with Keep-Alive set again.	                               Even Keep-Alive netcams need a close/open sometimes. */	char *connect_request;      /* contains the complete string	                               required for connection to the	                               camera */	int sock;                   /* fd for the camera's socket.	                               Note that this value is also	                               present within the struct	                               rbuf *response. */	struct timeval timeout;     /* The current timeout setting for	                               the socket. */	struct rbuf *response;      /* this structure (defined in the	                               netcam_wget module) contains	                               the context for an HTTP	                               connection.  Note that this	                               structure includes a large	                               buffer for the HTTP data */	struct ftp_context *ftp;    /* this structure contains the	                               context for FTP connection */	struct file_context *file;  /* this structure contains the	                               context for FILE connection */	int (*get_image)(netcam_context_ptr);	                            /* Function to fetch the image from	                               the netcam.  It is initialised in	                               netcam_setup depending upon whether	                               the picture source is from an http	                               server or from an ftp server */	struct netcam_caps {        /* netcam capabilities: */		unsigned char streaming;        /*  1 - supported       */		unsigned char content_length;   /*  0 - unsupported     */	} caps;	char *boundary;             /* 'boundary' string when used to	                               separate mjpeg images */	size_t boundary_length;     /* string length of the boundary	                               string */	                            /* Three separate buffers are used	                               for handling the data.  Their	                               definitions follow: */		netcam_buff_ptr latest;     /* This buffer contains the latest	                               frame received from the camera */	netcam_buff_ptr receiving;  /* This buffer is used for receiving	                               data from the camera */	netcam_buff_ptr jpegbuf;    /* This buffer is used for jpeg	                               decompression */	int imgcnt;                 /* count for # of received jpegs */	int imgcnt_last;            /* remember last count to check if a new	                               image arrived */	int error_count;            /* simple count of number of errors since	                               last good frame was received */		unsigned int width;         /* info for decompression */	unsigned int height;	struct timeval last_image;  /* time the most recent image was	                               received */	float av_frame_time;        /* "running average" of time between	                               successive frames (microseconds) */	struct jpeg_error_mgr jerr;	jmp_buf setjmp_buffer;	int jpeg_error;             /* flag to show error or warning	                               occurred during decompression*/} netcam_context;/* * Declare prototypes for our external entry points *//*     Within netcam_jpeg.c    */int netcam_proc_jpeg (struct netcam_context *, unsigned char *);void netcam_get_dimensions (struct netcam_context *);/*     Within netcam.c        */int netcam_start (struct context *);int netcam_next (struct context *, unsigned char *);void netcam_cleanup (struct netcam_context *, int);ssize_t netcam_recv(netcam_context_ptr, void *, size_t);#endif

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
97精品电影院| 91美女片黄在线观看91美女| 国产剧情av麻豆香蕉精品| 成人污视频在线观看| 欧美日韩久久久一区| 欧美国产激情一区二区三区蜜月| 亚洲一区在线观看视频| 国产一区在线精品| 91精品国产乱| 亚洲制服丝袜av| 欧美无砖砖区免费| 国产精品免费网站在线观看| 日本欧美肥老太交大片| 色综合久久久久综合| 亚洲成人一二三| 不卡在线视频中文字幕| 久久精品人人做人人爽97| 日韩中文字幕av电影| 99久久综合狠狠综合久久| 69堂精品视频| 亚洲图片一区二区| 国产福利一区二区三区视频 | 中文字幕久久午夜不卡| 精品一区二区三区免费| 国产成人aaa| 91.麻豆视频| 亚洲成人自拍网| 欧美日韩免费电影| 日韩av一区二区在线影视| 91麻豆精品久久久久蜜臀| 免费在线看成人av| 高清在线成人网| 中文字幕亚洲精品在线观看| 国内欧美视频一区二区| 91年精品国产| 亚洲国产毛片aaaaa无费看| 欧美高清dvd| 国产欧美精品一区二区色综合朱莉| 亚洲午夜精品在线| 欧美一区二区国产| 国产精品一级黄| 亚洲欧美日韩在线播放| 成人av资源网站| 亚洲免费观看高清完整版在线观看| 欧美日韩不卡一区二区| 久久99热这里只有精品| 色吧成人激情小说| 五月天亚洲婷婷| 久久久蜜桃精品| 欧美系列一区二区| 国产一区二区影院| 亚洲欧美日韩国产另类专区| 717成人午夜免费福利电影| 国产成人精品亚洲午夜麻豆| 亚洲男人天堂av| 欧美成人r级一区二区三区| 北条麻妃国产九九精品视频| 亚洲韩国一区二区三区| 久久欧美中文字幕| 一本色道久久加勒比精品| 麻豆一区二区三区| 中文字幕日本不卡| 日韩三级精品电影久久久 | 免费的国产精品| 中文字幕免费观看一区| 欧美精品九九99久久| 播五月开心婷婷综合| 青青草原综合久久大伊人精品| 国产精品久久久久7777按摩| 欧美丰满嫩嫩电影| 国产一区日韩二区欧美三区| 亚洲天堂2016| 国产精品一二一区| 日韩专区在线视频| 亚洲欧洲成人精品av97| 精品国产乱码久久久久久图片 | 欧美国产精品一区二区三区| 欧美日韩精品综合在线| 成人a免费在线看| 美女尤物国产一区| 亚洲午夜激情网站| 国产精品免费久久久久| 日韩欧美久久一区| 欧洲一区二区三区在线| av一本久道久久综合久久鬼色| 久久精品久久综合| 日韩精品午夜视频| 亚洲在线视频一区| 综合色天天鬼久久鬼色| 国产欧美精品一区二区色综合朱莉| 日韩一本二本av| 欧美人与禽zozo性伦| 91丨porny丨中文| 成人三级在线视频| 国产成人aaa| 国产乱一区二区| 久久精品国产99国产| 日本伊人色综合网| 六月丁香婷婷久久| 精品一区二区三区在线视频| 免费观看在线色综合| 日韩中文字幕亚洲一区二区va在线| 亚洲一区二区三区在线| 亚洲美腿欧美偷拍| 一区二区三区加勒比av| 亚洲另类色综合网站| 亚洲美女视频一区| 亚洲欧美视频在线观看视频| 亚洲区小说区图片区qvod| 综合久久一区二区三区| 亚洲精品日韩一| 亚洲一区二区三区四区的| 亚洲一区二区中文在线| 亚洲一区在线视频观看| 国产精品美女www爽爽爽| 亚洲欧美日韩人成在线播放| 日韩一区在线看| 亚洲一二三区不卡| 婷婷久久综合九色综合绿巨人| 亚洲大片精品永久免费| 热久久一区二区| 精品一二三四区| 国产精品一区免费视频| 成人高清免费观看| 亚洲欧美在线观看| 亚洲免费伊人电影| 手机精品视频在线观看| 美女一区二区在线观看| 国产一区二区三区精品视频| 成人网在线播放| 色婷婷久久久综合中文字幕| 制服丝袜一区二区三区| 久久久精品一品道一区| 中文字幕佐山爱一区二区免费| 亚洲在线免费播放| 精品一区二区三区香蕉蜜桃 | 欧美日韩一级片在线观看| 91精品婷婷国产综合久久性色| 2020国产成人综合网| 亚洲视频综合在线| 日本女优在线视频一区二区| 国产很黄免费观看久久| 97se亚洲国产综合自在线观| 欧美精品第1页| 国产亚洲欧洲一区高清在线观看| 亚洲同性同志一二三专区| 日日摸夜夜添夜夜添亚洲女人| 国产精品99久| 欧美日韩国产系列| 日本一区二区视频在线| 精品一区二区三区视频| 91精品国产综合久久蜜臀| 亚洲激情av在线| 国产麻豆视频精品| 欧美久久一二三四区| 国产精品乱人伦中文| 日韩电影在线免费看| 成人app软件下载大全免费| 欧美一区二区黄| 亚洲欧美另类综合偷拍| 国产资源在线一区| 欧美日本国产视频| 成人免费在线视频观看| 日本大胆欧美人术艺术动态| 92国产精品观看| 欧美激情综合在线| 蜜桃视频在线一区| 欧美在线观看视频一区二区| 日本一区二区三区高清不卡| 午夜激情一区二区三区| 91在线观看一区二区| 欧美精品一区二区三区蜜臀| 亚洲欧美日韩中文播放| 精品一区二区在线视频| 6080日韩午夜伦伦午夜伦| 一区二区三区欧美日| 国产福利91精品| 精品久久久久久久久久久久久久久| 一区二区三区国产精品| 99精品视频一区| 国产精品美女久久久久aⅴ| 国产自产v一区二区三区c| 日韩一区二区电影在线| 日本视频免费一区| 欧美日高清视频| 亚洲主播在线播放| 色女孩综合影院| 亚洲女同一区二区| 国产凹凸在线观看一区二区| 欧美刺激午夜性久久久久久久| 麻豆国产精品视频| 欧美电影精品一区二区| 久久成人免费网| 日韩你懂的在线播放| 狂野欧美性猛交blacked| 日韩欧美一区二区免费| 国产精品亚洲第一| 亚洲摸摸操操av| 在线观看一区日韩| 亚洲国产另类av|