• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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_SHARED_MEM_SINK_H
17 #define GST_SHARED_MEM_SINK_H
18 
19 #include "gst_mem_sink.h"
20 
21 G_BEGIN_DECLS
22 
23 #define GST_TYPE_SHARED_MEM_SINK (gst_shared_mem_sink_get_type())
24 #define GST_SHARED_MEM_SINK(obj) \
25     (G_TYPE_CHECK_INSTANCE_CAST((obj), GST_TYPE_SHARED_MEM_SINK, GstSharedMemSink))
26 #define GST_SHARED_MEM_SINK_CLASS(klass) \
27     (G_TYPE_CHECK_CLASS_CAST((klass), GST_TYPE_SHARED_MEM_SINK, GstSharedMemSinkClass))
28 #define GST_IS_SHARED_MEM_SINK(obj) \
29     (G_TYPE_CHECK_INSTANCE_TYPE((obj), GST_TYPE_SHARED_MEM_SINK))
30 #define GST_IS_SHARED_MEM_SINK_CLASS(klass) \
31     (G_TYPE_CHECK_CLASS_TYPE((klass), GST_TYPE_SHARED_MEM_SINK))
32 #define GST_SHARED_MEM_SINK_CAST(obj) ((GstSharedMemSink*)(obj))
33 
34 typedef struct _GstSharedMemSink GstSharedMemSink;
35 typedef struct _GstSharedMemSinkClass GstSharedMemSinkClass;
36 typedef struct _GstSharedMemSinkPrivate GstSharedMemSinkPrivate;
37 
38 struct _GstSharedMemSink {
39     GstMemSink memsink;
40 
41     /* < private > */
42     GstSharedMemSinkPrivate *priv;
43 };
44 
45 struct _GstSharedMemSinkClass {
46     GstMemSinkClass basesink_class;
47 };
48 
49 GST_API_EXPORT GType gst_shared_mem_sink_get_type(void);
50 
51 #ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
52 G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstSharedMemSink, gst_object_unref)
53 #endif
54 
55 G_END_DECLS
56 #endif
57