mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-19 08:11:16 +00:00
videopool: re-indent all GstVaapiVideoPool related source code.
This commit is contained in:
parent
f5af9d150e
commit
e4e43cd842
7 changed files with 289 additions and 284 deletions
|
@ -39,7 +39,8 @@
|
|||
*
|
||||
* A pool of lazily allocated #GstVaapiImage objects.
|
||||
*/
|
||||
struct _GstVaapiImagePool {
|
||||
struct _GstVaapiImagePool
|
||||
{
|
||||
/*< private >*/
|
||||
GstVaapiVideoPool parent_instance;
|
||||
|
||||
|
@ -74,7 +75,6 @@ gst_vaapi_image_pool_class(void)
|
|||
static const GstVaapiVideoPoolClass GstVaapiImagePoolClass = {
|
||||
{sizeof (GstVaapiImagePool),
|
||||
(GDestroyNotify) gst_vaapi_video_pool_finalize},
|
||||
|
||||
.alloc_object = gst_vaapi_image_pool_alloc_object
|
||||
};
|
||||
return GST_VAAPI_MINI_OBJECT_CLASS (&GstVaapiImagePoolClass);
|
||||
|
|
|
@ -39,7 +39,8 @@
|
|||
*
|
||||
* A pool of lazily allocated #GstVaapiSurface objects.
|
||||
*/
|
||||
struct _GstVaapiSurfacePool {
|
||||
struct _GstVaapiSurfacePool
|
||||
{
|
||||
/*< private >*/
|
||||
GstVaapiVideoPool parent_instance;
|
||||
|
||||
|
@ -75,8 +76,9 @@ gst_vaapi_surface_pool_alloc_object(GstVaapiVideoPool *base_pool)
|
|||
|
||||
/* Try to allocate a surface with an explicit pixel format first */
|
||||
if (pool->format != GST_VIDEO_FORMAT_ENCODED) {
|
||||
GstVaapiSurface * const surface = gst_vaapi_surface_new_with_format(
|
||||
base_pool->display, pool->format, pool->width, pool->height);
|
||||
GstVaapiSurface *const surface =
|
||||
gst_vaapi_surface_new_with_format (base_pool->display, pool->format,
|
||||
pool->width, pool->height);
|
||||
if (surface)
|
||||
return surface;
|
||||
}
|
||||
|
@ -92,7 +94,6 @@ gst_vaapi_surface_pool_class(void)
|
|||
static const GstVaapiVideoPoolClass GstVaapiSurfacePoolClass = {
|
||||
{sizeof (GstVaapiSurfacePool),
|
||||
(GDestroyNotify) gst_vaapi_video_pool_finalize},
|
||||
|
||||
.alloc_object = gst_vaapi_surface_pool_alloc_object
|
||||
};
|
||||
return GST_VAAPI_MINI_OBJECT_CLASS (&GstVaapiSurfacePoolClass);
|
||||
|
|
|
@ -37,7 +37,8 @@ G_BEGIN_DECLS
|
|||
typedef struct _GstVaapiSurfacePool GstVaapiSurfacePool;
|
||||
|
||||
GstVaapiVideoPool *
|
||||
gst_vaapi_surface_pool_new(GstVaapiDisplay *display, const GstVideoInfo *vip);
|
||||
gst_vaapi_surface_pool_new (GstVaapiDisplay * display,
|
||||
const GstVideoInfo * vip);
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
|
|
|
@ -43,7 +43,8 @@ typedef struct _GstVaapiVideoPool GstVaapiVideoPool;
|
|||
*
|
||||
* The set of all supported #GstVaapiVideoPool object types.
|
||||
*/
|
||||
typedef enum {
|
||||
typedef enum
|
||||
{
|
||||
GST_VAAPI_VIDEO_POOL_OBJECT_TYPE_IMAGE = 1,
|
||||
GST_VAAPI_VIDEO_POOL_OBJECT_TYPE_SURFACE,
|
||||
GST_VAAPI_VIDEO_POOL_OBJECT_TYPE_CODED_BUFFER
|
||||
|
@ -75,7 +76,8 @@ gboolean
|
|||
gst_vaapi_video_pool_add_object (GstVaapiVideoPool * pool, gpointer object);
|
||||
|
||||
gboolean
|
||||
gst_vaapi_video_pool_add_objects(GstVaapiVideoPool *pool, GPtrArray *objects);
|
||||
gst_vaapi_video_pool_add_objects (GstVaapiVideoPool * pool,
|
||||
GPtrArray * objects);
|
||||
|
||||
guint
|
||||
gst_vaapi_video_pool_get_size (GstVaapiVideoPool * pool);
|
||||
|
|
|
@ -31,7 +31,6 @@ G_BEGIN_DECLS
|
|||
|
||||
#define GST_VAAPI_VIDEO_POOL_CLASS(klass) \
|
||||
((GstVaapiVideoPoolClass *)(klass))
|
||||
|
||||
#define GST_VAAPI_IS_VIDEO_POOL_CLASS(klass) \
|
||||
((klass) != NULL)
|
||||
|
||||
|
@ -42,7 +41,8 @@ typedef struct _GstVaapiVideoPoolClass GstVaapiVideoPoolClass;
|
|||
*
|
||||
* A pool of lazily allocated video objects. e.g. surfaces, images.
|
||||
*/
|
||||
struct _GstVaapiVideoPool {
|
||||
struct _GstVaapiVideoPool
|
||||
{
|
||||
/*< private >*/
|
||||
GstVaapiMiniObject parent_instance;
|
||||
|
||||
|
@ -61,7 +61,8 @@ struct _GstVaapiVideoPool {
|
|||
*
|
||||
* A pool base class used to hold video objects. e.g. surfaces, images.
|
||||
*/
|
||||
struct _GstVaapiVideoPoolClass {
|
||||
struct _GstVaapiVideoPoolClass
|
||||
{
|
||||
/*< private >*/
|
||||
GstVaapiMiniObjectClass parent_class;
|
||||
|
||||
|
|
Loading…
Reference in a new issue