update copyright date
[gnash.git] / libvaapi / vaapi_utils.h
blob9a0bc68a8f37d6b682d29d353ae0b346be5845cd
1 // vaapi_utils.h: VA API utilities
2 //
3 // Copyright (C) 2009, 2010, 2011 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
20 #ifndef GNASH_VAAPI_UTILS_H
21 #define GNASH_VAAPI_UTILS_H
23 #include "vaapi_common.h"
25 namespace gnash {
27 /// Enable video acceleration (with VA API)
28 void DSOEXPORT vaapi_set_is_enabled(bool enabled);
30 /// Check whether video acceleration is enabled
31 bool DSOEXPORT vaapi_is_enabled();
33 /// Debug output
34 void DSOEXPORT vaapi_dprintf(const char *format, ...);
36 /// Check VA status for success or print out an error
37 bool DSOEXPORT vaapi_check_status(VAStatus status, const char *msg);
39 /// Return a string representation of a FOURCC
40 DSOEXPORT const char* string_of_FOURCC(boost::uint32_t fourcc);
42 /// Return a string representation of a VAProfile
43 DSOEXPORT const char* string_of_VAProfile(VAProfile profile);
45 /// Return a string representation of a VAEntrypoint
46 DSOEXPORT const char* string_of_VAEntrypoint(VAEntrypoint entrypoint);
48 } // gnash namespace
50 #endif // GNASH_VAAPI_UTILS_H
52 // local Variables:
53 // mode: C++
54 // indent-tabs-mode: nil
55 // End: