GstVaapiSurfaceProxy

GstVaapiSurfaceProxy — VA surface proxy

Synopsis

                    GstVaapiSurfaceProxy;
                    GstVaapiSurfaceProxyClass;
GstVaapiSurfaceProxy * gst_vaapi_surface_proxy_new      (GstVaapiContext *context,
                                                         GstVaapiSurface *surface);
GstVaapiContext *   gst_vaapi_surface_proxy_get_context (GstVaapiSurfaceProxy *proxy);
void                gst_vaapi_surface_proxy_set_context (GstVaapiSurfaceProxy *proxy,
                                                         GstVaapiContext *context);
GstVaapiSurface *   gst_vaapi_surface_proxy_get_surface (GstVaapiSurfaceProxy *proxy);
GstVaapiID          gst_vaapi_surface_proxy_get_surface_id
                                                        (GstVaapiSurfaceProxy *proxy);
void                gst_vaapi_surface_proxy_set_surface (GstVaapiSurfaceProxy *proxy,
                                                         GstVaapiSurface *surface);
GstClockTime        gst_vaapi_surface_proxy_get_timestamp
                                                        (GstVaapiSurfaceProxy *proxy);
void                gst_vaapi_surface_proxy_set_timestamp
                                                        (GstVaapiSurfaceProxy *proxy,
                                                         GstClockTime timestamp);

Object Hierarchy

  GObject
   +----GstVaapiSurfaceProxy

Properties

  "context"                  gpointer              : Read / Write
  "surface"                  gpointer              : Read / Write
  "timestamp"                guint64               : Read / Write

Description

Details

GstVaapiSurfaceProxy

typedef struct _GstVaapiSurfaceProxy GstVaapiSurfaceProxy;

A wrapper around a VA surface and context.


GstVaapiSurfaceProxyClass

typedef struct {
} GstVaapiSurfaceProxyClass;

A wrapper around a VA surface and context.


gst_vaapi_surface_proxy_new ()

GstVaapiSurfaceProxy * gst_vaapi_surface_proxy_new      (GstVaapiContext *context,
                                                         GstVaapiSurface *surface);

Creates a new GstVaapiSurfaceProxy with the specified context and surface.

context :

a GstVaapiContext

surface :

a GstVaapiSurface

Returns :

the newly allocated GstVaapiSurfaceProxy object

gst_vaapi_surface_proxy_get_context ()

GstVaapiContext *   gst_vaapi_surface_proxy_get_context (GstVaapiSurfaceProxy *proxy);

Returns the GstVaapiContext stored in the proxy.

proxy :

a GstVaapiSurfaceProxy

Returns :

the GstVaapiContext

gst_vaapi_surface_proxy_set_context ()

void                gst_vaapi_surface_proxy_set_context (GstVaapiSurfaceProxy *proxy,
                                                         GstVaapiContext *context);

Stores a new context into the proxy. The proxy releases the previous reference, if any, and then holds a reference to the new context.

proxy :

a GstVaapiSurfaceProxy

context :

the new GstVaapiContext to be stored in proxy

gst_vaapi_surface_proxy_get_surface ()

GstVaapiSurface *   gst_vaapi_surface_proxy_get_surface (GstVaapiSurfaceProxy *proxy);

Returns the GstVaapiSurface stored in the proxy.

proxy :

a GstVaapiSurfaceProxy

Returns :

the GstVaapiSurface

gst_vaapi_surface_proxy_get_surface_id ()

GstVaapiID          gst_vaapi_surface_proxy_get_surface_id
                                                        (GstVaapiSurfaceProxy *proxy);

Returns the VA surface ID stored in the proxy.

proxy :

a GstVaapiSurfaceProxy

Returns :

the GstVaapiID

gst_vaapi_surface_proxy_set_surface ()

void                gst_vaapi_surface_proxy_set_surface (GstVaapiSurfaceProxy *proxy,
                                                         GstVaapiSurface *surface);

Stores a new surface into the proxy. The proxy releases the previous reference, if any, and then holds a reference to the new surface.

proxy :

a GstVaapiSurfaceProxy

surface :

the new GstVaapiSurface to be stored in proxy

gst_vaapi_surface_proxy_get_timestamp ()

GstClockTime        gst_vaapi_surface_proxy_get_timestamp
                                                        (GstVaapiSurfaceProxy *proxy);

Returns the presentation timestamp of the GstVaapiSurface held by proxy.

proxy :

a GstVaapiSurfaceProxy

Returns :

the presentation timestamp of the surface, or GST_CLOCK_TIME_NONE is none was set

gst_vaapi_surface_proxy_set_timestamp ()

void                gst_vaapi_surface_proxy_set_timestamp
                                                        (GstVaapiSurfaceProxy *proxy,
                                                         GstClockTime timestamp);

Sets the presentation timestamp of the proxy surface to timestamp.

proxy :

a GstVaapiSurfaceProxy

timestamp :

the new presentation timestamp as a GstClockTime

Property Details

The "context" property

  "context"                  gpointer              : Read / Write

The context stored in the proxy.


The "surface" property

  "surface"                  gpointer              : Read / Write

The surface stored in the proxy.


The "timestamp" property

  "timestamp"                guint64               : Read / Write

The presentation time of the surface.

Default value: 18446744073709551615