Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 36 lines (25 sloc) 0.936 kB
34f6dda @fsphil Separate out the format conversions
authored
1 /* fswebcam - Small and simple webcam for *nix */
2 /*============================================================*/
e9e2f15 @fsphil Update for 20110717 release
authored
3 /* Copyright (C)2005-2011 Philip Heron <phil@sanslogic.co.uk> */
34f6dda @fsphil Separate out the format conversions
authored
4 /* */
5 /* This program is distributed under the terms of the GNU */
6 /* General Public License, version 2. You may use, modify, */
7 /* and redistribute it under the terms of this license. A */
8 /* copy should be included with this source. */
9
10 #ifndef INC_FSWC_H
11 #define INC_FSWC_H
12
13 #include <stdint.h>
14
15 #ifdef HAVE_CONFIG_H
16 #include "config.h"
17 #endif
18
19 /* Define the bitmap type */
20 #ifdef USE_32BIT_BUFFER
21
22 typedef uint32_t avgbmp_t;
23 #define MAX_FRAMES (UINT32_MAX >> 8)
24
25 #else
26
27 typedef uint16_t avgbmp_t;
28 #define MAX_FRAMES (UINT16_MAX >> 8)
29
30 #endif
31 /*----*/
32
33 #define CLIP(val, min, max) (((val) > (max)) ? (max) : (((val) < (min)) ? (min) : (val)))
34
35 #endif
Something went wrong with that request. Please try again.