![]() |
![]() |
![]() |
GStreamer VA-API Plugins 0.10 Library Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Properties |
GstVaapiWindow; GstVaapiWindowClass; GstVaapiDisplay * gst_vaapi_window_get_display (GstVaapiWindow *window); void gst_vaapi_window_show (GstVaapiWindow *window); void gst_vaapi_window_hide (GstVaapiWindow *window); gboolean gst_vaapi_window_get_fullscreen (GstVaapiWindow *window); void gst_vaapi_window_set_fullscreen (GstVaapiWindow *window, gboolean fullscreen); guint gst_vaapi_window_get_width (GstVaapiWindow *window); guint gst_vaapi_window_get_height (GstVaapiWindow *window); void gst_vaapi_window_get_size (GstVaapiWindow *window, guint *pwidth, guint *pheight); void gst_vaapi_window_set_width (GstVaapiWindow *window, guint width); void gst_vaapi_window_set_height (GstVaapiWindow *window, guint height); void gst_vaapi_window_set_size (GstVaapiWindow *window, guint width, guint height); gboolean gst_vaapi_window_put_surface (GstVaapiWindow *window, GstVaapiSurface *surface, const GstVaapiRectangle *src_rect, const GstVaapiRectangle *dst_rect, guint flags);
"fullscreen" gboolean : Read / Write "height" guint : Read / Write "width" guint : Read / Write
typedef struct _GstVaapiWindow GstVaapiWindow;
Base class for system-dependent windows.
typedef struct { gboolean (*create) (GstVaapiWindow *window, guint *width, guint *height); void (*destroy)(GstVaapiWindow *window); gboolean (*show) (GstVaapiWindow *window); gboolean (*hide) (GstVaapiWindow *window); gboolean (*get_geometry) (GstVaapiWindow *window, gint *px, gint *py, guint *pwidth, guint *pheight); gboolean (*set_fullscreen)(GstVaapiWindow *window, gboolean fullscreen); gboolean (*resize) (GstVaapiWindow *window, guint width, guint height); gboolean (*render) (GstVaapiWindow *window, GstVaapiSurface *surface, const GstVaapiRectangle *src_rect, const GstVaapiRectangle *dst_rect, guint flags); } GstVaapiWindowClass;
Base class for system-dependent windows.
|
virtual function to create a window with width and height |
|
virtual function to destroy a window |
|
virtual function to show (map) a window |
|
virtual function to hide (unmap) a window |
|
|
|
virtual function to change window fullscreen state |
|
virtual function to resize a window |
|
virtual function to render a GstVaapiSurface into a window |
GstVaapiDisplay * gst_vaapi_window_get_display (GstVaapiWindow *window);
Returns the GstVaapiDisplay this window
is bound to.
|
a GstVaapiWindow |
Returns : |
the parent GstVaapiDisplay object |
void gst_vaapi_window_show (GstVaapiWindow *window);
Flags a window to be displayed. Any window that is not shown will not appear on the screen.
|
a GstVaapiWindow |
void gst_vaapi_window_hide (GstVaapiWindow *window);
Reverses the effects of gst_vaapi_window_show()
, causing the window
to be hidden (invisible to the user).
|
a GstVaapiWindow |
gboolean gst_vaapi_window_get_fullscreen (GstVaapiWindow *window);
Retrieves whether the window
is fullscreen or not
|
a GstVaapiWindow |
Returns : |
TRUE if the window is fullscreen
|
void gst_vaapi_window_set_fullscreen (GstVaapiWindow *window, gboolean fullscreen);
Requests to place the window
in fullscreen or unfullscreen states.
|
a GstVaapiWindow |
|
TRUE to request window to get fullscreen
|
guint gst_vaapi_window_get_width (GstVaapiWindow *window);
Retrieves the width of a GstVaapiWindow.
|
a GstVaapiWindow |
Returns : |
the width of the window , in pixels
|
guint gst_vaapi_window_get_height (GstVaapiWindow *window);
Retrieves the height of a GstVaapiWindow
|
a GstVaapiWindow |
Returns : |
the height of the window , in pixels
|
void gst_vaapi_window_get_size (GstVaapiWindow *window, guint *pwidth, guint *pheight);
Retrieves the dimensions of a GstVaapiWindow.
|
a GstVaapiWindow |
|
return location for the width, or NULL
|
|
return location for the height, or NULL
|
void gst_vaapi_window_set_width (GstVaapiWindow *window, guint width);
Resizes the window
to match the specified width
.
|
a GstVaapiWindow |
|
requested new width for the window, in pixels |
void gst_vaapi_window_set_height (GstVaapiWindow *window, guint height);
Resizes the window
to match the specified height
.
|
a GstVaapiWindow |
|
requested new height for the window, in pixels |
void gst_vaapi_window_set_size (GstVaapiWindow *window, guint width, guint height);
Resizes the window
to match the specified width
and height
.
|
a GstVaapiWindow |
|
requested new width for the window, in pixels |
|
requested new height for the window, in pixels |
gboolean gst_vaapi_window_put_surface (GstVaapiWindow *window, GstVaapiSurface *surface, const GstVaapiRectangle *src_rect, const GstVaapiRectangle *dst_rect, guint flags);
Renders the surface
region specified by src_rect
into the window
region specified by dst_rect
. The flags
specify how de-interlacing
(if needed), color space conversion, scaling and other postprocessing
transformations are performed.
|
a GstVaapiWindow |
|
a GstVaapiSurface |
|
the sub-rectangle of the source surface to
extract and process. If NULL , the entire surface will be used.
|
|
the sub-rectangle of the destination
window into which the surface is rendered. If NULL , the entire
window will be used.
|
|
postprocessing flags. See GstVaapiSurfaceRenderFlags |
Returns : |
TRUE on success
|
"fullscreen"
property"fullscreen" gboolean : Read / Write
The fullscreen state of the window.
Default value: FALSE
"height"
property"height" guint : Read / Write
The window height.
Allowed values: >= 1
Default value: 1
"width"
property"width" guint : Read / Write
The window width.
Allowed values: >= 1
Default value: 1