Basic data structures

Basic data structures

Synopsis

typedef             GstVaapiID;
#define             GST_VAAPI_ID_FORMAT
#define             GST_VAAPI_ID_ARGS                   (id)
#define             GST_VAAPI_ID                        (id)
#define             GST_VAAPI_ID_NONE
                    GstVaapiPoint;
                    GstVaapiRectangle;

Description

Details

GstVaapiID

An integer large enough to hold a generic VA id or a pointer wherever necessary.


GST_VAAPI_ID_FORMAT

#define GST_VAAPI_ID_FORMAT "p"

Can be used together with GST_VAAPI_ID_ARGS to properly output an integer value in a printf()-style text message.

printf("id: %" GST_VAAPI_ID_FORMAT "\n", GST_VAAPI_ID_ARGS(id));


GST_VAAPI_ID_ARGS()

#define GST_VAAPI_ID_ARGS(id) GUINT_TO_POINTER(id)

Can be used together with GST_VAAPI_ID_FORMAT to properly output an integer value in a printf()-style text message.

id :

a GstVaapiID

GST_VAAPI_ID()

#define GST_VAAPI_ID(id) ((GstVaapiID)(id))

Macro that creates a GstVaapiID from id.

id :

an arbitrary integer value

GST_VAAPI_ID_NONE

#define GST_VAAPI_ID_NONE GST_VAAPI_ID(0)

Macro that evaluates to the default GstVaapiID value.


GstVaapiPoint

typedef struct {
    guint32 x;
    guint32 y;
} GstVaapiPoint;

A location within a surface.

guint32 x;

X coordinate

guint32 y;

Y coordinate

GstVaapiRectangle

typedef struct {
    guint32 x;
    guint32 y;
    guint32 width;
    guint32 height;
} GstVaapiRectangle;

A rectangle region within a surface.

guint32 x;

X coordinate

guint32 y;

Y coordinate

guint32 width;

region width

guint32 height;

region height