Go to the documentation of this file.
20 #ifndef GNASH_VAAPIGLOBALCONTEXT_H
21 #define GNASH_VAAPIGLOBALCONTEXT_H
34 std::unique_ptr<VaapiDisplay> _display;
35 std::vector<VAProfile> _profiles;
36 std::vector<VAImageFormat> _image_formats;
37 std::vector<VAImageFormat> _subpicture_formats;
51 bool hasProfile(VAProfile profile)
const;
61 std::vector<VaapiImageFormat> getImageFormats()
const;
66 std::vector<VaapiImageFormat> getSubpictureFormats()
const;
71 VADisplay
display()
const {
return _display->get(); }
76 #endif // GNASH_VAAPIGLOBALCONTEXT_H
VA API global context.
Definition: VaapiGlobalContext.h:33
const VAImageFormat * getImageFormat(VaapiImageFormat format) const
Get the VA image format matching format.
Definition: VaapiGlobalContext.cpp:96
VADisplay display() const
Get the VA display.
Definition: VaapiGlobalContext.h:71
@ i
Definition: GnashKey.h:155
#define LOG_ONCE(x)
Definition: log.h:49
Anonymous namespace for callbacks, local functions, event handlers etc.
Definition: dbus_ext.cpp:41
#define GNASH_REPORT_FUNCTION
Definition: log.h:452
static VaapiGlobalContext * get()
Get the unique global VA context.
Definition: VaapiGlobalContext.cpp:130
std::vector< VaapiImageFormat > getSubpictureFormats() const
Get the list of supported subpicture formats.
Definition: VaapiGlobalContext.cpp:124
void vaapi_set_is_enabled(bool enabled)
Enable video acceleration (with VA API)
Definition: vaapi_utils.cpp:29
bool hasProfile(VAProfile profile) const
Check VA profile is supported.
Definition: VaapiGlobalContext.cpp:85
T * get(as_object *o)
Extract the DisplayObject attached to an object.
Definition: as_object.h:842
std::vector< VaapiImageFormat > getImageFormats() const
Get the list of supported image formats.
Definition: VaapiGlobalContext.cpp:118
bool vaapi_check_status(VAStatus status, const char *msg)
Check VA status for success or print out an error.
Definition: vaapi_utils.cpp:51
VaapiGlobalContext(std::unique_ptr< VaapiDisplay > display)
Definition: VaapiGlobalContext.cpp:35
~VaapiGlobalContext()
Definition: VaapiGlobalContext.cpp:44
VA/X11 display representation.
Definition: VaapiDisplayX11.h:41
#define DSOEXPORT
Definition: dsodefs.h:55
VA exception abstraction.
Definition: VaapiException.h:29
VA/GLX display representation.
Definition: VaapiDisplayGLX.h:30