blob: 6f8cb3382b72841ba66304cd52b65d4ffc85011e [file] [log] [blame]
/*
* Copyright (c) 2014-2015, Freescale Semiconductor, Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
* Boston, MA 02111-1307, USA.
*/
#ifndef __GST_IMX_2D_DEVICE_ALLOCATOR_H__
#define __GST_IMX_2D_DEVICE_ALLOCATOR_H__
#include <gst/gst.h>
#include <gst/allocators/gstallocatorphymem.h>
#define GST_TYPE_IMX_2D_DEVICE_ALLOCATOR \
(gst_imx_2d_device_allocator_get_type())
#define GST_IMX_2D_DEVICE_ALLOCATOR(obj) \
(G_TYPE_CHECK_INSTANCE_CAST((obj), GST_TYPE_IMX_2D_DEVICE_ALLOCATOR,\
GstImx2DDeviceAllocator))
typedef struct _GstImx2DDeviceAllocator {
GstAllocatorPhyMem parent;
gpointer device;
} GstImx2DDeviceAllocator;
typedef struct _GstImx2DDeviceAllocatorClass {
GstAllocatorPhyMemClass parent_class;
} GstImx2DDeviceAllocatorClass;
GType gst_imx_2d_device_allocator_get_type (void);
GstAllocator *gst_imx_2d_device_allocator_new (gpointer device);
#endif /* __GST_IMX_2D_DEVICE_ALLOCATOR_H__ */