GstVaapiObject

GstVaapiObject — Base VA object

Synopsis

                    GstVaapiObject;
                    GstVaapiObjectClass;
GstVaapiDisplay *   gst_vaapi_object_get_display        (GstVaapiObject *object);
void                gst_vaapi_object_lock_display       (GstVaapiObject *object);
void                gst_vaapi_object_unlock_display     (GstVaapiObject *object);
GstVaapiID          gst_vaapi_object_get_id             (GstVaapiObject *object);

Object Hierarchy

  GObject
   +----GstVaapiObject
         +----GstVaapiContext
         +----GstVaapiImage
         +----GstVaapiSubpicture
         +----GstVaapiSurface
         +----GstVaapiWindow
         +----GstVaapiTexture

Properties

  "display"                  GstVaapiDisplay*      : Read / Write / Construct Only
  "id"                       GstVaapiID            : Read / Write / Construct Only

Signals

  "destroy"                                        : Cleanup / No Recursion / No Hooks

Description

Details

GstVaapiObject

typedef struct _GstVaapiObject GstVaapiObject;

VA object base.


GstVaapiObjectClass

typedef struct {
    void (*destroy)(GstVaapiObject *oject);
} GstVaapiObjectClass;

VA object base class.

destroy ()

signal class handler for "destroy"

gst_vaapi_object_get_display ()

GstVaapiDisplay *   gst_vaapi_object_get_display        (GstVaapiObject *object);

Returns the GstVaapiDisplay this object is bound to.

object :

a GstVaapiObject

Returns :

the parent GstVaapiDisplay object

gst_vaapi_object_lock_display ()

void                gst_vaapi_object_lock_display       (GstVaapiObject *object);

Locks object parent display. If display is already locked by another thread, the current thread will block until display is unlocked by the other thread.

object :

a GstVaapiObject

gst_vaapi_object_unlock_display ()

void                gst_vaapi_object_unlock_display     (GstVaapiObject *object);

Unlocks object parent display. If another thread is blocked in a gst_vaapi_object_lock_display() call, it will be woken and can lock display itself.

object :

a GstVaapiObject

gst_vaapi_object_get_id ()

GstVaapiID          gst_vaapi_object_get_id             (GstVaapiObject *object);

Returns the GstVaapiID contained in the object.

object :

a GstVaapiObject

Returns :

the GstVaapiID of the object

Property Details

The "display" property

  "display"                  GstVaapiDisplay*      : Read / Write / Construct Only

The GstVaapiDisplay this object is bound to.


The "id" property

  "id"                       GstVaapiID            : Read / Write / Construct Only

The GstVaapiID contained in this object.

Signal Details

The "destroy" signal

void                user_function                      (GstVaapiObject *object,
                                                        gpointer        user_data)      : Cleanup / No Recursion / No Hooks

The ::destroy signal is emitted when an object is destroyed, when the user released the last reference to object.

object :

the object which received the signal

user_data :

user data set when the signal handler was connected.