Go to the documentation of this file.
37 class VaapiSubpicture;
39 class VaapiVideoWindow;
40 class Renderer_agg_base;
49 bool init(
int argc,
char **argv[]);
55 void render(GdkRegion *
const);
56 void configure(GtkWidget *
const widget, GdkEventConfigure *
const event);
59 VaapiVideoWindow *getVideoWindow(std::shared_ptr<VaapiSurface> surface,
60 GdkWindow *parent_window,
63 void resetRenderSurface(
unsigned int width,
unsigned int height);
68 std::shared_ptr<VaapiImage> _vaapi_image;
69 unsigned int _vaapi_image_width;
70 unsigned int _vaapi_image_height;
71 std::shared_ptr<VaapiSubpicture> _vaapi_subpicture;
72 std::unique_ptr<VaapiSurface> _vaapi_surface;
73 unsigned int _window_width;
74 unsigned int _window_height;
75 bool _window_is_setup;
VA context abstraction.
Definition: VaapiContext.h:51
DSOEXPORT Renderer_agg_base * create_Renderer_agg(const char *pixelformat)
Create a render handler.
Definition: Renderer_agg.cpp:2048
@ height
Definition: klash_part.cpp:329
VA API global context.
Definition: VaapiGlobalContext.h:33
@ U
Definition: GnashKey.h:133
virtual size_t widthPixels() const =0
Movie & getRootMovie()
Access the originating root movie (not necessarily _level0)
Definition: movie_root.h:303
VADisplay display() const
Get the VA display.
Definition: VaapiGlobalContext.h:71
std::int32_t y
Definition: BitmapData_as.cpp:435
@ i
Definition: GnashKey.h:155
#define _(String)
Definition: log.h:44
Anonymous namespace for callbacks, local functions, event handlers etc.
Definition: dbus_ext.cpp:41
virtual void beforeRendering(movie_root *stage)
Definition: gtk_glue_agg_vaapi.cpp:260
Base class for render handlers.
Definition: Renderer.h:189
static VaapiGlobalContext * get()
Get the unique global VA context.
Definition: VaapiGlobalContext.cpp:130
virtual void init_buffer(unsigned char *mem, int size, int x, int y, int rowstride)=0
#define dprintf(format,...)
Definition: gtk_glue_agg_vaapi.cpp:44
Definition: gtk_glue_agg_vaapi.h:44
void log_error(StringType msg, Args... args)
Definition: log.h:283
virtual void set_scale(float, float)
Sets the x/y scale for the movie
Definition: Renderer.h:204
std::vector< VaapiImageFormat > getSubpictureFormats() const
Get the list of supported subpicture formats.
Definition: VaapiGlobalContext.cpp:124
#define USE_HW_SCALING
Definition: gtk_glue_agg_vaapi.cpp:48
@ r
Definition: GnashKey.h:164
const char * string_of_FOURCC(std::uint32_t fourcc)
Return a string representation of a FOURCC.
Definition: vaapi_utils.cpp:61
virtual size_t heightPixels() const =0
virtual RenderImages::const_iterator getFirstRenderImage() const
Definition: Renderer.h:353
Definition: gtk_glue.h:41
void setData(std::unique_ptr< VaapiContextData > user_data)
Set user data.
Definition: VaapiContext.h:87
GtkAggVaapiGlue()
Definition: gtk_glue_agg_vaapi.cpp:143
bool vaapi_check_status(VAStatus status, const char *msg)
Check VA status for success or print out an error.
Definition: vaapi_utils.cpp:51
Renderer * createRenderHandler()
Definition: gtk_glue_agg_vaapi.cpp:183
bool init(int argc, char **argv[])
Definition: gtk_glue_agg_vaapi.cpp:159
VA image abstraction.
Definition: VaapiImage.h:41
A top-level, standalone Movie that can be loaded and played.
Definition: Movie.h:47
VaapiContextData * getData() const
Get user data.
Definition: VaapiContext.h:90
void setRenderHandlerSize(int width, int height)
Definition: gtk_glue_agg_vaapi.cpp:251
void prepDrawingArea(GtkWidget *drawing_area)
Definition: gtk_glue_agg_vaapi.cpp:170
GtkWidget * _drawing_area
Definition: gtk_glue.h:77
VA subpicture abstraction.
Definition: VaapiSubpicture.h:36
Definition: Renderer_agg.h:30
VA rectangle abstraction.
Definition: VaapiSurface.h:35
This class represents the 'Stage' and top-level movie.
Definition: movie_root.h:151
void configure(GtkWidget *const widget, GdkEventConfigure *const event)
Definition: gtk_glue_agg_vaapi.cpp:410
VA surface abstraction.
Definition: VaapiSurface.h:68
~GtkAggVaapiGlue()
Definition: gtk_glue_agg_vaapi.cpp:154
@ width
Definition: klash_part.cpp:329
void render()
Definition: gtk_glue_agg_vaapi.cpp:312
std::int32_t x
Definition: BitmapData_as.cpp:434
virtual RenderImages::const_iterator getLastRenderImage() const
Definition: Renderer.h:357