2
* Copyright (C) 2011-2013 Savoir-Faire Linux Inc.
4
* Author: Tristan Matthews <tristan.matthews@savoirfairelinux.com>
5
* Author: Guillaume Roguez <Guillaume.Roguez@savoirfairelinux.com>
7
* This program is free software; you can redistribute it and/or modify
8
* it under the terms of the GNU General Public License as published by
9
* the Free Software Foundation; either version 3 of the License, or
10
* (at your option) any later version.
12
* This program 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
15
* GNU General Public License for more details.
17
* You should have received a copy of the GNU General Public License
18
* along with this program; if not, write to the Free Software
19
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
21
* Additional permission under GNU GPL version 3 section 7:
23
* If you modify this program, or any covered work, by linking or
24
* combining it with the OpenSSL project's OpenSSL library (or a
25
* modified version of that library), containing parts covered by the
26
* terms of the OpenSSL or SSLeay licenses, Savoir-Faire Linux Inc.
27
* grants you additional permission to convey the resulting work.
28
* Corresponding Source for a non-source form of such a combination
29
* shall include the source code for the parts of OpenSSL used as well
30
* as that of the covered work.
33
#ifndef __VIDEO_CAMERA_H__
34
#define __VIDEO_CAMERA_H__
36
#include "noncopyable.h"
38
#include "video_decoder.h"
39
#include "sflthread.h"
49
public VideoGenerator,
53
VideoCamera(const std::map<string, string> &args);
58
int getHeight() const;
59
int getPixelFormat() const;
62
NON_COPYABLE(VideoCamera);
65
std::map<string, string> args_;
66
VideoDecoder *decoder_;
76
static int interruptCb(void *ctx);
82
#endif // __VIDEO_CAMERA_H__