mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-28 19:20:35 +00:00
Rename to GST_VAAPI_OBJECT_DISPLAY().
This commit is contained in:
parent
9961c03c6a
commit
2ecadd45b8
6 changed files with 20 additions and 20 deletions
|
@ -147,7 +147,7 @@ vaapi_image_is_linear(const VAImage *va_image)
|
|||
static void
|
||||
gst_vaapi_image_destroy(GstVaapiImage *image)
|
||||
{
|
||||
GstVaapiDisplay * const display = GST_VAAPI_OBJECT_GET_DISPLAY(image);
|
||||
GstVaapiDisplay * const display = GST_VAAPI_OBJECT_DISPLAY(image);
|
||||
VAImageID image_id;
|
||||
VAStatus status;
|
||||
|
||||
|
@ -170,7 +170,7 @@ gst_vaapi_image_destroy(GstVaapiImage *image)
|
|||
static gboolean
|
||||
_gst_vaapi_image_create(GstVaapiImage *image, GstVaapiImageFormat format)
|
||||
{
|
||||
GstVaapiDisplay * const display = GST_VAAPI_OBJECT_GET_DISPLAY(image);
|
||||
GstVaapiDisplay * const display = GST_VAAPI_OBJECT_DISPLAY(image);
|
||||
GstVaapiImagePrivate * const priv = image->priv;
|
||||
const VAImageFormat *va_format;
|
||||
VAStatus status;
|
||||
|
@ -736,7 +736,7 @@ _gst_vaapi_image_map(GstVaapiImage *image)
|
|||
if (_gst_vaapi_image_is_mapped(image))
|
||||
return TRUE;
|
||||
|
||||
display = GST_VAAPI_OBJECT_GET_DISPLAY(image);
|
||||
display = GST_VAAPI_OBJECT_DISPLAY(image);
|
||||
if (!display)
|
||||
return FALSE;
|
||||
|
||||
|
@ -781,7 +781,7 @@ _gst_vaapi_image_unmap(GstVaapiImage *image)
|
|||
if (!_gst_vaapi_image_is_mapped(image))
|
||||
return FALSE;
|
||||
|
||||
display = GST_VAAPI_OBJECT_GET_DISPLAY(image);
|
||||
display = GST_VAAPI_OBJECT_DISPLAY(image);
|
||||
if (!display)
|
||||
return FALSE;
|
||||
|
||||
|
|
|
@ -33,13 +33,13 @@ G_BEGIN_DECLS
|
|||
#define GST_VAAPI_OBJECT_CAST(object) ((GstVaapiObject *)(object))
|
||||
|
||||
/**
|
||||
* GST_VAAPI_OBJECT_GET_DISPLAY:
|
||||
* GST_VAAPI_OBJECT_DISPLAY:
|
||||
* @object: a #GstVaapiObject
|
||||
*
|
||||
* Macro that evaluates to the #GstVaapiDisplay the @object is bound to.
|
||||
* This is an internal macro that does not do any run-time type check.
|
||||
*/
|
||||
#define GST_VAAPI_OBJECT_GET_DISPLAY(object) \
|
||||
#define GST_VAAPI_OBJECT_DISPLAY(object) \
|
||||
GST_VAAPI_OBJECT_CAST(object)->priv->display
|
||||
|
||||
/**
|
||||
|
|
|
@ -53,7 +53,7 @@ enum {
|
|||
static void
|
||||
gst_vaapi_subpicture_destroy(GstVaapiSubpicture *subpicture)
|
||||
{
|
||||
GstVaapiDisplay * const display = GST_VAAPI_OBJECT_GET_DISPLAY(subpicture);
|
||||
GstVaapiDisplay * const display = GST_VAAPI_OBJECT_DISPLAY(subpicture);
|
||||
GstVaapiSubpicturePrivate * const priv = subpicture->priv;
|
||||
VASubpictureID subpicture_id;
|
||||
VAStatus status;
|
||||
|
@ -86,7 +86,7 @@ gst_vaapi_subpicture_destroy(GstVaapiSubpicture *subpicture)
|
|||
static gboolean
|
||||
gst_vaapi_subpicture_create(GstVaapiSubpicture *subpicture)
|
||||
{
|
||||
GstVaapiDisplay * const display = GST_VAAPI_OBJECT_GET_DISPLAY(subpicture);
|
||||
GstVaapiDisplay * const display = GST_VAAPI_OBJECT_DISPLAY(subpicture);
|
||||
GstVaapiSubpicturePrivate * const priv = subpicture->priv;
|
||||
VASubpictureID subpicture_id;
|
||||
VAStatus status;
|
||||
|
@ -211,7 +211,7 @@ gst_vaapi_subpicture_new(GstVaapiImage *image)
|
|||
GST_VAAPI_ID_ARGS(GST_VAAPI_OBJECT_ID(image)));
|
||||
|
||||
return g_object_new(GST_VAAPI_TYPE_SUBPICTURE,
|
||||
"display", GST_VAAPI_OBJECT_GET_DISPLAY(image),
|
||||
"display", GST_VAAPI_OBJECT_DISPLAY(image),
|
||||
"id", GST_VAAPI_ID(VA_INVALID_ID),
|
||||
"image", image,
|
||||
NULL);
|
||||
|
|
|
@ -79,7 +79,7 @@ destroy_subpicture_cb(gpointer subpicture, gpointer surface)
|
|||
static void
|
||||
gst_vaapi_surface_destroy(GstVaapiSurface *surface)
|
||||
{
|
||||
GstVaapiDisplay * const display = GST_VAAPI_OBJECT_GET_DISPLAY(surface);
|
||||
GstVaapiDisplay * const display = GST_VAAPI_OBJECT_DISPLAY(surface);
|
||||
GstVaapiSurfacePrivate * const priv = surface->priv;
|
||||
VASurfaceID surface_id;
|
||||
VAStatus status;
|
||||
|
@ -110,7 +110,7 @@ gst_vaapi_surface_destroy(GstVaapiSurface *surface)
|
|||
static gboolean
|
||||
gst_vaapi_surface_create(GstVaapiSurface *surface)
|
||||
{
|
||||
GstVaapiDisplay * const display = GST_VAAPI_OBJECT_GET_DISPLAY(surface);
|
||||
GstVaapiDisplay * const display = GST_VAAPI_OBJECT_DISPLAY(surface);
|
||||
GstVaapiSurfacePrivate * const priv = surface->priv;
|
||||
VASurfaceID surface_id;
|
||||
VAStatus status;
|
||||
|
@ -410,7 +410,7 @@ gst_vaapi_surface_derive_image(GstVaapiSurface *surface)
|
|||
|
||||
g_return_val_if_fail(GST_VAAPI_IS_SURFACE(surface), NULL);
|
||||
|
||||
display = GST_VAAPI_OBJECT_GET_DISPLAY(surface);
|
||||
display = GST_VAAPI_OBJECT_DISPLAY(surface);
|
||||
va_image.image_id = VA_INVALID_ID;
|
||||
va_image.buf = VA_INVALID_ID;
|
||||
|
||||
|
@ -450,7 +450,7 @@ gst_vaapi_surface_get_image(GstVaapiSurface *surface, GstVaapiImage *image)
|
|||
g_return_val_if_fail(GST_VAAPI_IS_SURFACE(surface), FALSE);
|
||||
g_return_val_if_fail(GST_VAAPI_IS_IMAGE(image), FALSE);
|
||||
|
||||
display = GST_VAAPI_OBJECT_GET_DISPLAY(surface);
|
||||
display = GST_VAAPI_OBJECT_DISPLAY(surface);
|
||||
if (!display)
|
||||
return FALSE;
|
||||
|
||||
|
@ -497,7 +497,7 @@ gst_vaapi_surface_put_image(GstVaapiSurface *surface, GstVaapiImage *image)
|
|||
g_return_val_if_fail(GST_VAAPI_IS_SURFACE(surface), FALSE);
|
||||
g_return_val_if_fail(GST_VAAPI_IS_IMAGE(image), FALSE);
|
||||
|
||||
display = GST_VAAPI_OBJECT_GET_DISPLAY(surface);
|
||||
display = GST_VAAPI_OBJECT_DISPLAY(surface);
|
||||
if (!display)
|
||||
return FALSE;
|
||||
|
||||
|
@ -591,7 +591,7 @@ _gst_vaapi_surface_associate_subpicture(
|
|||
VASurfaceID surface_id;
|
||||
VAStatus status;
|
||||
|
||||
display = GST_VAAPI_OBJECT_GET_DISPLAY(surface);
|
||||
display = GST_VAAPI_OBJECT_DISPLAY(surface);
|
||||
if (!display)
|
||||
return FALSE;
|
||||
|
||||
|
@ -684,7 +684,7 @@ _gst_vaapi_surface_deassociate_subpicture(
|
|||
VASurfaceID surface_id;
|
||||
VAStatus status;
|
||||
|
||||
display = GST_VAAPI_OBJECT_GET_DISPLAY(surface);
|
||||
display = GST_VAAPI_OBJECT_DISPLAY(surface);
|
||||
if (!display)
|
||||
return FALSE;
|
||||
|
||||
|
@ -722,7 +722,7 @@ gst_vaapi_surface_sync(GstVaapiSurface *surface)
|
|||
|
||||
g_return_val_if_fail(GST_VAAPI_IS_SURFACE(surface), FALSE);
|
||||
|
||||
display = GST_VAAPI_OBJECT_GET_DISPLAY(surface);
|
||||
display = GST_VAAPI_OBJECT_DISPLAY(surface);
|
||||
if (!display)
|
||||
return FALSE;
|
||||
|
||||
|
|
|
@ -67,7 +67,7 @@ gst_vaapi_window_ensure_size(GstVaapiWindow *window)
|
|||
klass->get_geometry(window, NULL, NULL, &priv->width, &priv->height);
|
||||
|
||||
gst_vaapi_display_get_size(
|
||||
GST_VAAPI_OBJECT_GET_DISPLAY(window),
|
||||
GST_VAAPI_OBJECT_DISPLAY(window),
|
||||
&display_width,
|
||||
&display_height
|
||||
);
|
||||
|
@ -241,7 +241,7 @@ gst_vaapi_window_get_display(GstVaapiWindow *window)
|
|||
{
|
||||
g_return_val_if_fail(GST_VAAPI_IS_WINDOW(window), NULL);
|
||||
|
||||
return GST_VAAPI_OBJECT_GET_DISPLAY(window);
|
||||
return GST_VAAPI_OBJECT_DISPLAY(window);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -405,7 +405,7 @@ gst_vaapi_window_x11_render(
|
|||
VASurfaceID surface_id;
|
||||
VAStatus status;
|
||||
|
||||
display = GST_VAAPI_OBJECT_GET_DISPLAY(surface);
|
||||
display = GST_VAAPI_OBJECT_DISPLAY(surface);
|
||||
if (!display)
|
||||
return FALSE;
|
||||
|
||||
|
|
Loading…
Reference in a new issue