michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this file, michael@0: * You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #if !defined(GStreamerAllocator_h_) michael@0: #define GStreamerAllocator_h_ michael@0: michael@0: #include "GStreamerReader.h" michael@0: michael@0: #define GST_TYPE_MOZ_GFX_MEMORY_ALLOCATOR (moz_gfx_memory_allocator_get_type()) michael@0: #define GST_IS_MOZ_GFX_MEMORY_ALLOCATOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GST_TYPE_MOZ_GFX_MEMORY_ALLOCATOR)) michael@0: #define GST_TYPE_MOZ_GFX_BUFFER_POOL (moz_gfx_buffer_pool_get_type()) michael@0: #define GST_IS_MOZ_GFX_BUFFER_POOL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GST_TYPE_MOZ_GFX_BUFFER_POOL)) michael@0: michael@0: namespace mozilla { michael@0: michael@0: GType moz_gfx_memory_allocator_get_type(); michael@0: void moz_gfx_memory_allocator_set_reader(GstAllocator *aAllocator, GStreamerReader* aReader); michael@0: nsRefPtr moz_gfx_memory_get_image(GstMemory *aMemory); michael@0: michael@0: GType moz_gfx_buffer_pool_get_type(); michael@0: michael@0: } // namespace mozilla michael@0: michael@0: #endif