1 /* 2 * Copyright (C) 2021 Huawei Device Co., Ltd. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 */ 15 16 #ifndef GST_VIDEO_SHMEM_POOL_H 17 #define GST_VIDEO_SHMEM_POOL_H 18 19 #include <gst/gst.h> 20 #include <gst/video/gstvideopool.h> 21 22 G_BEGIN_DECLS 23 24 #define GST_TYPE_VIDEO_SHMEM_POOL (gst_video_shmem_pool_get_type()) 25 #define GST_VIDEO_SHMEM_POOL(obj) \ 26 (G_TYPE_CHECK_INSTANCE_CAST((obj), GST_TYPE_VIDEO_SHMEM_POOL, GstVideoShMemPool)) 27 #define GST_VIDEO_SHMEM_POOL_CLASS(klass) \ 28 (G_TYPE_CHECK_CLASS_CAST((klass), GST_TYPE_VIDEO_SHMEM_POOL, GstVideoShMemPoolClass)) 29 #define GST_IS_VIDEO_SHMEM_POOL(obj) \ 30 (G_TYPE_CHECK_INSTANCE_TYPE((obj), GST_TYPE_VIDEO_SHMEM_POOL)) 31 #define GST_IS_VIDEO_SHMEM_POOL_CLASS(klass) \ 32 (G_TYPE_CHECK_CLASS_TYPE((klass), GST_TYPE_VIDEO_SHMEM_POOL)) 33 #define GST_VIDEO_SHMEM_POOL_CAST(obj) ((GstVideoShMemPool*)(obj)) 34 35 typedef struct _GstVideoShMemPool GstVideoShMemPool; 36 typedef struct _GstVideoShMemPoolClass GstVideoShMemPoolClass; 37 38 struct _GstVideoShMemPool { 39 GstVideoBufferPool basepool; 40 }; 41 42 struct _GstVideoShMemPoolClass { 43 GstVideoBufferPoolClass basepool_class; 44 }; 45 46 GType gst_video_shmem_pool_get_type(void); 47 48 GstBufferPool *gst_video_shmem_pool_new(); 49 50 G_END_DECLS 51 52 #endif 53