Instrument Neutral Distributed Interface INDI 2.2.5
v4l2_decode.cpp
Go to the documentation of this file.
1/*
2 Copyright (C) 2005 by Jasem Mutlaq <[email protected]>
3 Copyright (C) 2014 by geehalel <[email protected]>
4
5 V4L2 Decode
6
7 This library is free software; you can redistribute it and/or
8 modify it under the terms of the GNU Lesser General Public
9 License as published by the Free Software Foundation; either
10 version 2.1 of the License, or (at your option) any later version.
11
12 This library is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 Lesser General Public License for more details.
16
17 You should have received a copy of the GNU Lesser General Public
18 License along with this library; if not, write to the Free Software
19 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20
21*/
22
23#include "v4l2_decode.h"
25
29
33
35{
36 return name;
37}
38
44
46{
47 std::vector<V4L2_Decoder *>::iterator it;
48 for (it = decoder_list.begin(); it != decoder_list.end(); it++)
49 {
50 delete (*it);
51 }
52 decoder_list.clear();
53}
54
55std::vector<V4L2_Decoder *> V4L2_Decode::getDecoderList()
56{
57 return decoder_list;
58}
59
69{
70 current_decoder = decoder;
71};
V4L2_Decoder * current_decoder
Definition v4l2_decode.h:79
V4L2_Decoder * getDefaultDecoder()
std::vector< V4L2_Decoder * > decoder_list
Definition v4l2_decode.h:78
V4L2_Decoder * getDecoder()
std::vector< V4L2_Decoder * > getDecoderList()
void setDecoder(V4L2_Decoder *decoder)
V4L2_Decoder * default_decoder
Definition v4l2_decode.h:80
virtual ~V4L2_Decoder()
const char * name
Definition v4l2_decode.h:64
virtual const char * getName()