Project

General

Profile

BitmapToolkit Scol plugin
private_types.h
Go to the documentation of this file.
1/**********************************************************
2 Software developed by AVA ( Ava Group of the University of Cordoba, ava at uco dot es)
3 Main author Rafael Munoz Salinas (rmsalinas at uco dot es)
4 This software is released under BSD license as expressed below
5-------------------------------------------------------------------
6Copyright (c) 2013, AVA ( Ava Group University of Cordoba, ava at uco dot es)
7All rights reserved.
8
9Redistribution and use in source and binary forms, with or without
10modification, are permitted provided that the following conditions
11are met:
121. Redistributions of source code must retain the above copyright
13 notice, this list of conditions and the following disclaimer.
142. Redistributions in binary form must reproduce the above copyright
15 notice, this list of conditions and the following disclaimer in the
16 documentation and/or other materials provided with the distribution.
173. All advertising materials mentioning features or use of this software
18 must display the following acknowledgement:
19
20 This product includes software developed by the Ava group of the University of Cordoba.
21
224. Neither the name of the University nor the names of its contributors
23 may be used to endorse or promote products derived from this software
24 without specific prior written permission.
25
26THIS SOFTWARE IS PROVIDED BY AVA ''AS IS'' AND ANY
27EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
28WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
29DISCLAIMED. IN NO EVENT SHALL AVA BE LIABLE FOR ANY
30DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
31(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
32LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
33ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
34(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
35SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
36****************************************************************/
37
38#ifndef _RaspiCam_private_types_H
39#define _RaspiCam_private_types_H
40
41namespace raspicam {
42 namespace _private{
43
44
47 {
48 int enable,u,v;
49 } ;
51 {
52 double x,y,w,h;
53 } ;
54
55
89
90 //clean buffer
91 template<typename T>
92 class membuf{
93 public:
95 data=0;
96 size=0;
97 }
99 if ( data!=0 ) delete []data;
100 }
101 void resize ( size_t s ) {
102 if ( s!=size ) {
103 delete data;
104 size=s;
105 data=new T[size];
106 }
107 }
109 size_t size;
110 };
111
112 };
113}
114
115#endif
116
struct contain camera settings
int height
Requested width of image.
float awbg_red
region of interest to use on the sensor. Normalised [0,1] values in the rect
RASPICAM_METERING rpc_exposureMeterMode
MMAL_POOL_T * video_pool
Pointer to the camera component.
PARAM_FLOAT_RECT_T roi
0 or 1
RASPICAM_IMAGE_EFFECT rpc_imageEffect
MMAL_PARAM_COLOURFX_T colourEffects
int exposureCompensation
0 or 1 (false or true)
int framerate
requested height of image
bool videoStabilisation
TODO : what range?
MMAL_PARAMETER_IMAGEFX_PARAMETERS_T imageEffectsParameters
MMAL_COMPONENT_T * camera_component
the camera output or the encoder output (with compression artifacts)
int sharpness
Pointer to the pool of buffers used by encoder output port.