31
31
extern FILE *v4l1_log_file;
33
#define V4L1_LOG_ERR(...) \
35
if (v4l1_log_file) { \
36
fprintf(v4l1_log_file, "libv4l1: error " __VA_ARGS__); \
37
fflush(v4l1_log_file); \
39
fprintf(stderr, "libv4l1: error " __VA_ARGS__); \
42
#define V4L1_LOG_WARN(...) \
44
if (v4l1_log_file) { \
45
fprintf(v4l1_log_file, "libv4l1: warning " __VA_ARGS__); \
46
fflush(v4l1_log_file); \
48
fprintf(stderr, "libv4l1: warning " __VA_ARGS__); \
51
#define V4L1_LOG(...) \
53
if (v4l1_log_file) { \
54
fprintf(v4l1_log_file, "libv4l1: " __VA_ARGS__); \
55
fflush(v4l1_log_file); \
33
#define V4L1_LOG_ERR(...) \
35
if (v4l1_log_file) { \
36
fprintf(v4l1_log_file, "libv4l1: error " __VA_ARGS__); \
37
fflush(v4l1_log_file); \
39
fprintf(stderr, "libv4l1: error " __VA_ARGS__); \
42
#define V4L1_LOG_WARN(...) \
44
if (v4l1_log_file) { \
45
fprintf(v4l1_log_file, "libv4l1: warning " __VA_ARGS__); \
46
fflush(v4l1_log_file); \
48
fprintf(stderr, "libv4l1: warning " __VA_ARGS__); \
51
#define V4L1_LOG(...) \
53
if (v4l1_log_file) { \
54
fprintf(v4l1_log_file, "libv4l1: " __VA_ARGS__); \
55
fflush(v4l1_log_file); \
59
59
struct v4l1_dev_info {
63
int v4l1_frame_buf_map_count;
64
pthread_mutex_t stream_lock;
66
unsigned int v4l1_pal; /* VIDEO_PALETTE */
67
unsigned int v4l2_pixfmt; /* V4L2_PIX_FMT */
68
unsigned int min_width, min_height, max_width, max_height;
69
unsigned int width, height;
70
unsigned char *v4l1_frame_pointer;
63
int v4l1_frame_buf_map_count;
64
pthread_mutex_t stream_lock;
66
unsigned int v4l1_pal; /* VIDEO_PALETTE */
67
unsigned int v4l2_pixfmt; /* V4L2_PIX_FMT */
68
unsigned int min_width, min_height, max_width, max_height;
69
unsigned int width, height;
70
unsigned char *v4l1_frame_pointer;