forked from Motion-Project/motion
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mmalcam.h
34 lines (28 loc) · 943 Bytes
/
mmalcam.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/*
* mmalcam.h
*
* Include file for mmalcam.c
*
* Copyright 2013 by Nicholas Tuckett
* This software is distributed under the GNU public license version 2
* See also the file 'COPYING'.
*/
#ifndef MMALCAM_H_
#define MMALCAM_H_
typedef struct mmalcam_context *mmalcam_context_ptr;
typedef struct mmalcam_context {
struct context *cnt; /* pointer to parent motion
context structure */
int width;
int height;
int framerate;
struct MMAL_COMPONENT_T *camera_component;
struct MMAL_PORT_T *camera_capture_port;
struct MMAL_POOL_T *camera_buffer_pool;
struct MMAL_QUEUE_T *camera_buffer_queue;
struct raspicam_camera_parameters_s *camera_parameters;
} mmalcam_context;
int mmalcam_start (struct context *);
int mmalcam_next (struct context *, struct image_data *img_data);
void mmalcam_cleanup (struct mmalcam_context *);
#endif /* MMALCAM_H_ */