Gnash  0.8.11dev
vaapi_utils.h
Go to the documentation of this file.
1 // vaapi_utils.h: VA API utilities
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_VAAPI_UTILS_H
21 #define GNASH_VAAPI_UTILS_H
22 
23 #include "vaapi_common.h"
24 
25 namespace gnash {
26 
28 void DSOEXPORT vaapi_set_is_enabled(bool enabled);
29 
32 
34 void DSOEXPORT vaapi_dprintf(const char *format, ...);
35 
37 bool DSOEXPORT vaapi_check_status(VAStatus status, const char *msg);
38 
40 DSOEXPORT const char* string_of_FOURCC(std::uint32_t fourcc);
41 
43 DSOEXPORT const char* string_of_VAProfile(VAProfile profile);
44 
46 DSOEXPORT const char* string_of_VAEntrypoint(VAEntrypoint entrypoint);
47 
48 } // gnash namespace
49 
50 #endif // GNASH_VAAPI_UTILS_H
51 
52 // local Variables:
53 // mode: C++
54 // indent-tabs-mode: nil
55 // End:
56 
const char * string_of_VAProfile(VAProfile profile)
Return a string representation of a VAProfile.
Definition: vaapi_utils.cpp:76
bool vaapi_is_enabled()
Check whether video acceleration is enabled.
Definition: vaapi_utils.cpp:35
bool vaapi_check_status(VAStatus status, const char *msg)
Check VA status for success or print out an error.
Definition: vaapi_utils.cpp:51
const char * string_of_FOURCC(std::uint32_t fourcc)
Return a string representation of a FOURCC.
Definition: vaapi_utils.cpp:61
const char * string_of_VAEntrypoint(VAEntrypoint entrypoint)
Return a string representation of a VAEntrypoint.
Definition: vaapi_utils.cpp:99
Anonymous namespace for callbacks, local functions, event handlers etc.
Definition: dbus_ext.cpp:40
#define DSOEXPORT
Definition: dsodefs.h:55
void DSOEXPORT vaapi_dprintf(const char *format,...)
Debug output.
Definition: vaapi_utils.cpp:41
void vaapi_set_is_enabled(bool enabled)
Enable video acceleration (with VA API)
Definition: vaapi_utils.cpp:29