Gnash  0.8.11dev
VaapiDisplay.h
Go to the documentation of this file.
1 // VaapiDisplay.h: VA display abstraction
2 //
3 // Copyright (C) 2009, 2010, 2011, 2012 Free Software Foundation, Inc.
4 //
5 // This program is free software; you can redistribute it and/or modify
6 // it under the terms of the GNU General Public License as published by
7 // the Free Software Foundation; either version 3 of the License, or
8 // (at your option) any later version.
9 //
10 // This program is distributed in the hope that it will be useful,
11 // but WITHOUT ANY WARRANTY; without even the implied warranty of
12 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 // GNU General Public License for more details.
14 //
15 // You should have received a copy of the GNU General Public License
16 // along with this program; if not, write to the Free Software
17 // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
18 //
19 
20 #ifndef GNASH_VAAPIDISPLAY_H
21 #define GNASH_VAAPIDISPLAY_H
22 
23 #include "vaapi_common.h"
24 
25 namespace gnash {
26 
28 class VaapiDisplay {
29  VADisplay _display;
30 
31  bool init();
32 
33 public:
34  explicit VaapiDisplay(VADisplay display);
35  virtual ~VaapiDisplay();
36 
37  VADisplay get() const { return _display; }
38 };
39 
40 } // gnash namespace
41 
42 #endif // GNASH_VAAPIDISPLAY_H
43 
44 // local Variables:
45 // mode: C++
46 // indent-tabs-mode: nil
47 // End:
48 
VaapiException.h
gnash
Anonymous namespace for callbacks, local functions, event handlers etc.
Definition: dbus_ext.cpp:41
GNASH_REPORT_FUNCTION
#define GNASH_REPORT_FUNCTION
Definition: log.h:452
gnash::VaapiDisplay::VaapiDisplay
VaapiDisplay(VADisplay display)
Definition: VaapiDisplay.cpp:27
gnash::vaapi_check_status
bool vaapi_check_status(VAStatus status, const char *msg)
Check VA status for success or print out an error.
Definition: vaapi_utils.cpp:51
vaapi_common.h
gnash::VaapiDisplay
VA display abstraction.
Definition: VaapiDisplay.h:28
log.h
gnash::VaapiDisplay::get
VADisplay get() const
Definition: VaapiDisplay.h:37
gnash::VaapiException
VA exception abstraction.
Definition: VaapiException.h:29
VaapiDisplay.h
gnash::vaapi_dprintf
void DSOEXPORT vaapi_dprintf(const char *format,...)
Debug output.
Definition: vaapi_utils.cpp:41
vaapi_utils.h
gnash::VaapiDisplay::~VaapiDisplay
virtual ~VaapiDisplay()
Definition: VaapiDisplay.cpp:37