"Fossies" - the Fresh Open Source Software Archive

Member "motion-Release-4.3.0/src/mmalcam.h" (14 Jan 2020, 943 Bytes) of package /linux/misc/motion-Release-4.3.0.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "mmalcam.h" see the Fossies "Dox" file reference documentation.

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