Gnash  0.8.11dev
VaapiSubpicture.h
Go to the documentation of this file.
1 // VaapiSubpicture.h: VA subpicture 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_VAAPISUBPICTURE_H
21 #define GNASH_VAAPISUBPICTURE_H
22 
23 #include <vector>
24 
25 #include "vaapi_common.h"
26 #include "VaapiImageFormat.h"
27 #include "dsodefs.h"
28 
29 namespace gnash {
30 
31 // Forward declarations
32 class VaapiImage;
33 
36 {
37  std::shared_ptr<VaapiImage> _image;
38  VASubpictureID _subpicture;
39 
41  bool create();
42 
44  void destroy();
45 
46 public:
47  VaapiSubpicture(std::shared_ptr<VaapiImage> image);
48  ~VaapiSubpicture();
49 
51  VASubpictureID get() const { return _subpicture; }
52 };
53 
54  } // gnash namespace
55 
56 #endif // GNASH_VAAPISUBPICTURE_H
57 
58 // local Variables:
59 // mode: C++
60 // indent-tabs-mode: nil
61 // End:
62 
VaapiException.h
dsodefs.h
gnash::log_debug
void log_debug(StringType msg, Args... args)
Definition: log.h:301
_
#define _(String)
Definition: log.h:44
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::VaapiSubpicture::VaapiSubpicture
VaapiSubpicture(std::shared_ptr< VaapiImage > image)
Definition: VaapiSubpicture.cpp:31
gnash::VaapiGlobalContext::get
static VaapiGlobalContext * get()
Get the unique global VA context.
Definition: VaapiGlobalContext.cpp:130
VaapiImageFormat.h
gnash::string_of_FOURCC
const char * string_of_FOURCC(std::uint32_t fourcc)
Return a string representation of a FOURCC.
Definition: vaapi_utils.cpp:61
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
gnash::VaapiSubpicture::get
VASubpictureID get() const
Return VA subpicture id.
Definition: VaapiSubpicture.h:51
gnash::VaapiSubpicture::~VaapiSubpicture
~VaapiSubpicture()
Definition: VaapiSubpicture.cpp:45
VaapiImage.h
vaapi_common.h
VaapiGlobalContext.h
log.h
gnash::VaapiSubpicture
VA subpicture abstraction.
Definition: VaapiSubpicture.h:36
DSOEXPORT
#define DSOEXPORT
Definition: dsodefs.h:55
gnash::VaapiException
VA exception abstraction.
Definition: VaapiException.h:29
vaapi_utils.h
VaapiSubpicture.h