GstVaapiSurfaceProxy

GstVaapiSurfaceProxy — VA surface proxy

Synopsis

struct              GstVaapiSurfaceProxy;
struct              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);
gboolean            gst_vaapi_surface_proxy_get_interlaced
                                                        (GstVaapiSurfaceProxy *proxy);
void                gst_vaapi_surface_proxy_set_interlaced
                                                        (GstVaapiSurfaceProxy *proxy,
                                                         gboolean b);
gboolean            gst_vaapi_surface_proxy_get_tff     (GstVaapiSurfaceProxy *proxy);
void                gst_vaapi_surface_proxy_set_tff     (GstVaapiSurfaceProxy *proxy,
                                                         gboolean tff);

Object Hierarchy

  GObject
   +----GstVaapiSurfaceProxy

Properties

  "context"                  gpointer              : Read / Write
  "interlaced"               gboolean              : Read / Write
  "surface"                  gpointer              : Read / Write
  "tff"                      gboolean              : Read / Write
  "timestamp"                guint64               : Read / Write

Description

Details

struct GstVaapiSurfaceProxy

struct GstVaapiSurfaceProxy;

A wrapper around a VA surface and context.


struct GstVaapiSurfaceProxyClass

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

gst_vaapi_surface_proxy_get_interlaced ()

gboolean            gst_vaapi_surface_proxy_get_interlaced
                                                        (GstVaapiSurfaceProxy *proxy);

Returns whether the proxy holds an interlaced GstVaapiSurface or not.

proxy :

a GstVaapiSurfaceProxy

Returns :

TRUE if the underlying surface is interlaced, FALSE otherwise.

gst_vaapi_surface_proxy_set_interlaced ()

void                gst_vaapi_surface_proxy_set_interlaced
                                                        (GstVaapiSurfaceProxy *proxy,
                                                         gboolean b);

Sets whether the underlying GstVaapiSurface for proxy is interlaced or not.

proxy :

a GstVaapiSurfaceProxy

b :

a boolean value

gst_vaapi_surface_proxy_get_tff ()

gboolean            gst_vaapi_surface_proxy_get_tff     (GstVaapiSurfaceProxy *proxy);

Returns the TFF flag of the GstVaapiSurface held by proxy.

proxy :

a GstVaapiSurfaceProxy

Returns :

the TFF flag of the surface

gst_vaapi_surface_proxy_set_tff ()

void                gst_vaapi_surface_proxy_set_tff     (GstVaapiSurfaceProxy *proxy,
                                                         gboolean tff);

Sets the TFF flag of the proxy surface to tff.

proxy :

a GstVaapiSurfaceProxy

tff :

the new value of the TFF flag

Property Details

The "context" property

  "context"                  gpointer              : Read / Write

The context stored in the proxy.


The "interlaced" property

  "interlaced"               gboolean              : Read / Write

Flag indicating whether surface is interlaced.

Default value: FALSE


The "surface" property

  "surface"                  gpointer              : Read / Write

The surface stored in the proxy.


The "tff" property

  "tff"                      gboolean              : Read / Write

Flag indicating for interlaced surfaces whether Top Field is First.

Default value: FALSE


The "timestamp" property

  "timestamp"                guint64               : Read / Write

The presentation time of the surface.

Default value: 18446744073709551615