/usr/include/guvcview-2/libgviewrender/gviewrender.h is in libguvcview-dev 2.0.2+debian-3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 | /*******************************************************************************#
# guvcview http://guvcview.sourceforge.net #
# #
# Paulo Assis <pj.assis@gmail.com> #
# Nobuhiro Iwamatsu <iwamatsu@nigauri.org> #
# Add UYVY color support(Macbook iSight) #
# Flemming Frandsen <dren.dk@gmail.com> #
# Add VU meter OSD #
# #
# This program is free software; you can redistribute it and/or modify #
# it under the terms of the GNU General Public License as published by #
# the Free Software Foundation; either version 2 of the License, or #
# (at your option) any later version. #
# #
# This program is distributed in the hope that it will be useful, #
# but WITHOUT ANY WARRANTY; without even the implied warranty of #
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
# GNU General Public License for more details. #
# #
# You should have received a copy of the GNU General Public License #
# along with this program; if not, write to the Free Software #
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA #
# #
********************************************************************************/
/*******************************************************************************#
# #
# Render library #
# #
********************************************************************************/
#ifndef GVIEWRENDER_H
#define GVIEWRENDER_H
#include <features.h>
#include <inttypes.h>
#include <sys/types.h>
/*make sure we support c++*/
__BEGIN_DECLS
#define RENDER_NONE (0)
#define RENDER_SDL (1)
#define EV_QUIT (0)
#define EV_KEY_UP (1)
#define EV_KEY_DOWN (2)
#define EV_KEY_LEFT (3)
#define EV_KEY_RIGHT (4)
#define EV_KEY_SPACE (5)
#define EV_KEY_I (6)
#define EV_KEY_V (7)
/*FX FILTER FLAGS*/
#define REND_FX_YUV_NOFILT (0)
#define REND_FX_YUV_MIRROR (1<<0)
#define REND_FX_YUV_UPTURN (1<<1)
#define REND_FX_YUV_NEGATE (1<<2)
#define REND_FX_YUV_MONOCR (1<<3)
#define REND_FX_YUV_PIECES (1<<4)
#define REND_FX_YUV_PARTICLES (1<<5)
/*OSD FLAGS*/
#define REND_OSD_NONE (0)
#define REND_OSD_VUMETER_MONO (1<<0)
#define REND_OSD_VUMETER_STEREO (1<<1)
#define REND_OSD_CROSSHAIR (1<<2)
typedef int (*render_event_callback)(void *data);
typedef struct _render_events_t
{
int id;
render_event_callback callback;
void *data;
} render_events_t;
/*
* set verbosity
* args:
* value - verbosity value
*
* asserts:
* none
*
* returns: none
*/
void render_set_verbosity(int value);
/*
* set the osd mask
* args:
* mask - osd mask (ored)
*
* asserts:
* none
*
* returns: none
*/
void render_set_osd_mask(uint32_t mask);
/*
* get the osd mask
* args:
* none
*
* asserts:
* none
*
* returns: osd mask
*/
uint32_t render_get_osd_mask();
/*
* get render width
* args:
* none
*
* asserts:
* none
*
* returns: render width
*/
int render_get_width();
/*
* get render height
* args:
* none
*
* asserts:
* none
*
* returns: render height
*/
int render_get_height();
/*
* render initialization
* args:
* render - render API to use (RENDER_NONE, RENDER_SDL1, ...)
* width - render width
* height - render height
* flags - window flags:
* 0- none
* 1- fullscreen
* 2- maximized
*
* asserts:
* none
*
* returns: error code
*/
int render_init(int render, int width, int height, int flags);
/*
* set caption
* args:
* caption - string with render window caption
*
* asserts:
* none
*
* returns: none
*/
void render_set_caption(const char* caption);
/*
* render a frame
* args:
* frame - pointer to frame data (yuyv format)
* mask - fx filter mask (or'ed)
*
* asserts:
* frame is not null
*
* returns: error code
*/
int render_frame(uint8_t *frame, uint32_t mask);
/*
* get event index on render_events_list
* args:
* id - event id
*
* asserts:
* none
*
* returns: event index or -1 on error
*/
int render_get_event_index(int id);
/*
* set event callback
* args:
* id - event id
* callback_function - pointer to callback function
* data - pointer to user data (passed to callback)
*
* asserts:
* none
*
* returns: error code
*/
int render_set_event_callback(int id, render_event_callback callback_function, void *data);
/*
* call the event callback for event id
* args:
* id - event id
*
* asserts:
* none
*
* returns: error code
*/
int render_call_event_callback(int id);
/*
* Apply fx filters
* args:
* frame - pointer to frame buffer (yuyv format)
* width - frame width
* height - frame height
* mask - or'ed filter mask
*
* asserts:
* frame is not null
*
* returns: void
*/
void render_fx_apply(uint8_t *frame, int width, int height, uint32_t mask);
/*
* set the vu level for the osd vu meter
* args:
* vu_level - vu level value (2 channel array)
*
* asserts:
* none
*
* returns: none
*/
void render_set_vu_level(float vu_level[2]);
/*
* get the vu level for the osd vu meter
* args:
* vu_level - two channel array were vu_level is to be copied
*
* asserts:
* none
*
* returns array with vu meter level
*/
void render_get_vu_level(float vu_level[2]);
/*
* clean fx filters
* args:
* none
*
* asserts:
* none
*
* returns: void
*/
void render_clean_fx();
/*
* clean render data
* args:
* none
*
* asserts:
* none
*
* returns: none
*/
void render_close();
__END_DECLS
#endif
|