Files
motion/mmalcam.h
Joseph Heenan c895b6667b Initial support for MMAL camera on raspberry pi
Originally by dozencrows on github; mostly this commit:

6d1ed5bd01

Changes to merge back into motion upstream made by Joseph Heenan (with
help from lowflyerUK on github, see https://github.com/dozencrows/motion/pull/1 ):

- changed back to using autoconf etc as per the main project
- submitted the one change we need to the raspicam files back upstream
  ( https://github.com/raspberrypi/userland/pull/332 )
- imported latest versions of files in raspicam, now exactly match upstream
- added README.txt to raspicam directory with brief explanation
- replaced some tabs with spaces
- removed dependency on checkout of raspberrypi userland repo; now we
  use the headers provided by libraspberrypi-dev
- merged in a couple of the trivial later bugfix commits
- merged in mmalcam_control_params commit to allow config of camera options
- fixed many merge conflicts rebased on top of latest upstream motion
2016-09-10 18:18:26 +00:00

35 lines
931 B
C

/*
* 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 *, unsigned char *);
void mmalcam_cleanup (struct mmalcam_context *);
#endif /* MMALCAM_H_ */