mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-16 12:25:50 +00:00
surfaceproxy: re-indent all GstVaapiSurfaceProxy related source code.
This commit is contained in:
parent
74a080a8da
commit
1810a41c68
3 changed files with 158 additions and 157 deletions
|
@ -103,7 +103,6 @@ error:
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* gst_vaapi_surface_proxy_copy:
|
* gst_vaapi_surface_proxy_copy:
|
||||||
* @proxy: the parent #GstVaapiSurfaceProxy
|
* @proxy: the parent #GstVaapiSurfaceProxy
|
||||||
|
@ -129,8 +128,7 @@ gst_vaapi_surface_proxy_copy(GstVaapiSurfaceProxy *proxy)
|
||||||
if (!copy)
|
if (!copy)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
GST_VAAPI_SURFACE_PROXY_FLAGS(copy) =
|
GST_VAAPI_SURFACE_PROXY_FLAGS (copy) = GST_VAAPI_SURFACE_PROXY_FLAGS (proxy);
|
||||||
GST_VAAPI_SURFACE_PROXY_FLAGS(proxy);
|
|
||||||
|
|
||||||
copy->parent = gst_vaapi_surface_proxy_ref (proxy->parent ?
|
copy->parent = gst_vaapi_surface_proxy_ref (proxy->parent ?
|
||||||
proxy->parent : proxy);
|
proxy->parent : proxy);
|
||||||
|
@ -159,8 +157,9 @@ gst_vaapi_surface_proxy_ref(GstVaapiSurfaceProxy *proxy)
|
||||||
{
|
{
|
||||||
g_return_val_if_fail (proxy != NULL, NULL);
|
g_return_val_if_fail (proxy != NULL, NULL);
|
||||||
|
|
||||||
return GST_VAAPI_SURFACE_PROXY(gst_vaapi_mini_object_ref(
|
return
|
||||||
GST_VAAPI_MINI_OBJECT(proxy)));
|
GST_VAAPI_SURFACE_PROXY (gst_vaapi_mini_object_ref (GST_VAAPI_MINI_OBJECT
|
||||||
|
(proxy)));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -42,7 +42,8 @@ G_BEGIN_DECLS
|
||||||
*
|
*
|
||||||
* Flags for #GstVaapiDecoderFrame.
|
* Flags for #GstVaapiDecoderFrame.
|
||||||
*/
|
*/
|
||||||
typedef enum {
|
typedef enum
|
||||||
|
{
|
||||||
GST_VAAPI_SURFACE_PROXY_FLAG_INTERLACED = (1 << 0),
|
GST_VAAPI_SURFACE_PROXY_FLAG_INTERLACED = (1 << 0),
|
||||||
GST_VAAPI_SURFACE_PROXY_FLAG_TFF = (1 << 1),
|
GST_VAAPI_SURFACE_PROXY_FLAG_TFF = (1 << 1),
|
||||||
GST_VAAPI_SURFACE_PROXY_FLAG_RFF = (1 << 2),
|
GST_VAAPI_SURFACE_PROXY_FLAG_RFF = (1 << 2),
|
||||||
|
|
|
@ -33,7 +33,8 @@
|
||||||
#define GST_VAAPI_SURFACE_PROXY(obj) \
|
#define GST_VAAPI_SURFACE_PROXY(obj) \
|
||||||
((GstVaapiSurfaceProxy *) (obj))
|
((GstVaapiSurfaceProxy *) (obj))
|
||||||
|
|
||||||
struct _GstVaapiSurfaceProxy {
|
struct _GstVaapiSurfaceProxy
|
||||||
|
{
|
||||||
/*< private >*/
|
/*< private >*/
|
||||||
GstVaapiMiniObject parent_instance;
|
GstVaapiMiniObject parent_instance;
|
||||||
GstVaapiSurfaceProxy *parent;
|
GstVaapiSurfaceProxy *parent;
|
||||||
|
@ -63,7 +64,7 @@ struct _GstVaapiSurfaceProxy {
|
||||||
*/
|
*/
|
||||||
#undef GST_VAAPI_SURFACE_PROXY_SURFACE
|
#undef GST_VAAPI_SURFACE_PROXY_SURFACE
|
||||||
#define GST_VAAPI_SURFACE_PROXY_SURFACE(proxy) \
|
#define GST_VAAPI_SURFACE_PROXY_SURFACE(proxy) \
|
||||||
GST_VAAPI_SURFACE_PROXY(proxy)->surface
|
(GST_VAAPI_SURFACE_PROXY (proxy)->surface)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* GST_VAAPI_SURFACE_PROXY_SURFACE_ID:
|
* GST_VAAPI_SURFACE_PROXY_SURFACE_ID:
|
||||||
|
@ -76,7 +77,7 @@ struct _GstVaapiSurfaceProxy {
|
||||||
*/
|
*/
|
||||||
#undef GST_VAAPI_SURFACE_PROXY_SURFACE_ID
|
#undef GST_VAAPI_SURFACE_PROXY_SURFACE_ID
|
||||||
#define GST_VAAPI_SURFACE_PROXY_SURFACE_ID(proxy) \
|
#define GST_VAAPI_SURFACE_PROXY_SURFACE_ID(proxy) \
|
||||||
GST_VAAPI_OBJECT_ID(GST_VAAPI_SURFACE_PROXY(proxy)->surface)
|
(GST_VAAPI_OBJECT_ID (GST_VAAPI_SURFACE_PROXY (proxy)->surface))
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* GST_VAAPI_SURFACE_PROXY_VIEW_ID:
|
* GST_VAAPI_SURFACE_PROXY_VIEW_ID:
|
||||||
|
@ -89,7 +90,7 @@ struct _GstVaapiSurfaceProxy {
|
||||||
*/
|
*/
|
||||||
#undef GST_VAAPI_SURFACE_PROXY_VIEW_ID
|
#undef GST_VAAPI_SURFACE_PROXY_VIEW_ID
|
||||||
#define GST_VAAPI_SURFACE_PROXY_VIEW_ID(proxy) \
|
#define GST_VAAPI_SURFACE_PROXY_VIEW_ID(proxy) \
|
||||||
GST_VAAPI_SURFACE_PROXY(proxy)->view_id
|
(GST_VAAPI_SURFACE_PROXY (proxy)->view_id)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* GST_VAAPI_SURFACE_PROXY_TIMESTAMP:
|
* GST_VAAPI_SURFACE_PROXY_TIMESTAMP:
|
||||||
|
@ -102,7 +103,7 @@ struct _GstVaapiSurfaceProxy {
|
||||||
*/
|
*/
|
||||||
#undef GST_VAAPI_SURFACE_PROXY_TIMESTAMP
|
#undef GST_VAAPI_SURFACE_PROXY_TIMESTAMP
|
||||||
#define GST_VAAPI_SURFACE_PROXY_TIMESTAMP(proxy) \
|
#define GST_VAAPI_SURFACE_PROXY_TIMESTAMP(proxy) \
|
||||||
GST_VAAPI_SURFACE_PROXY(proxy)->timestamp
|
(GST_VAAPI_SURFACE_PROXY (proxy)->timestamp)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* GST_VAAPI_SURFACE_PROXY_DURATION:
|
* GST_VAAPI_SURFACE_PROXY_DURATION:
|
||||||
|
@ -115,7 +116,7 @@ struct _GstVaapiSurfaceProxy {
|
||||||
*/
|
*/
|
||||||
#undef GST_VAAPI_SURFACE_PROXY_DURATION
|
#undef GST_VAAPI_SURFACE_PROXY_DURATION
|
||||||
#define GST_VAAPI_SURFACE_PROXY_DURATION(proxy) \
|
#define GST_VAAPI_SURFACE_PROXY_DURATION(proxy) \
|
||||||
GST_VAAPI_SURFACE_PROXY(proxy)->duration
|
(GST_VAAPI_SURFACE_PROXY (proxy)->duration)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* GST_VAAPI_SURFACE_PROXY_CROP_RECT:
|
* GST_VAAPI_SURFACE_PROXY_CROP_RECT:
|
||||||
|
|
Loading…
Reference in a new issue