EMAN2
libEM
io
v4l2io.h
Go to the documentation of this file.
1
/*
2
* Author: Steven Ludtke, 04/10/2003 (sludtke@bcm.edu)
3
* Copyright (c) 2000-2006 Baylor College of Medicine
4
*
5
* This software is issued under a joint BSD/GNU license. You may use the
6
* source code in this file under either license. However, note that the
7
* complete EMAN2 and SPARX software packages have some GPL dependencies,
8
* so you are responsible for compliance with the licenses of these packages
9
* if you opt to use BSD licensing. The warranty disclaimer below holds
10
* in either instance.
11
*
12
* This complete copyright notice must be included in any revised version of the
13
* source code. Additional authorship citations may be added, but existing
14
* author citations must be preserved.
15
*
16
* This program is free software; you can redistribute it and/or modify
17
* it under the terms of the GNU General Public License as published by
18
* the Free Software Foundation; either version 2 of the License, or
19
* (at your option) any later version.
20
*
21
* This program is distributed in the hope that it will be useful,
22
* but WITHOUT ANY WARRANTY; without even the implied warranty of
23
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24
* GNU General Public License for more details.
25
*
26
* You should have received a copy of the GNU General Public License
27
* along with this program; if not, write to the Free Software
28
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
29
*
30
* */
31
32
#ifndef eman__v4l2_h__
33
#define eman__v4l2_h__ 1
34
35
#include "
imageio.h
"
36
#include <asm/types.h>
37
#include <linux/videodev2.h>
38
39
namespace
EMAN
40
{
45
class
V4L2IO
:
public
ImageIO
46
{
47
public
:
48
explicit
V4L2IO
(
const
string
& fname,
IOMode
rw_mode
=
READ_ONLY
);
49
~V4L2IO
();
50
51
DEFINE_IMAGEIO_FUNC
;
52
static
bool
is_valid
(
const
void
*first_block);
53
static
int
globalinit
(
const
char
*fsp,
int
input=0,
int
brt=-1,
int
cont=-1,
int
gamma=-1,
int
expos=-1,
int
gain=-1);
54
55
private
:
56
57
char
*
filename
;
58
int
v4l_file
;
59
60
61
int
nx
;
62
int
ny
;
63
64
};
65
}
66
67
#endif
//eman__pgmio_h__
EMAN::ImageIO
ImageIO classes are designed for reading/writing various electron micrography image formats,...
Definition:
imageio.h:127
EMAN::ImageIO::rw_mode
IOMode rw_mode
Definition:
imageio.h:353
EMAN::ImageIO::IOMode
IOMode
Definition:
imageio.h:130
EMAN::ImageIO::READ_ONLY
@ READ_ONLY
Definition:
imageio.h:130
EMAN::V4L2IO
Read-only.
Definition:
v4l2io.h:46
EMAN::V4L2IO::globalinit
static int globalinit(const char *fsp, int input=0, int brt=-1, int cont=-1, int gamma=-1, int expos=-1, int gain=-1)
EMAN::V4L2IO::V4L2IO
V4L2IO(const string &fname, IOMode rw_mode=READ_ONLY)
EMAN::V4L2IO::ny
int ny
Definition:
v4l2io.h:62
EMAN::V4L2IO::is_valid
static bool is_valid(const void *first_block)
EMAN::V4L2IO::nx
int nx
Definition:
v4l2io.h:61
EMAN::V4L2IO::DEFINE_IMAGEIO_FUNC
DEFINE_IMAGEIO_FUNC
Definition:
v4l2io.h:51
EMAN::V4L2IO::~V4L2IO
~V4L2IO()
EMAN::V4L2IO::filename
char * filename
Definition:
v4l2io.h:57
EMAN::V4L2IO::v4l_file
int v4l_file
Definition:
v4l2io.h:58
imageio.h
EMAN
E2Exception class.
Definition:
aligner.h:40
Generated by
1.9.2