mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-13 21:01:14 +00:00
3d3cec6e7e
Original commit message from CVS: new "Electric Fence" element, that converts each buffer into an allocated region surrounded by two unmapped pages.
49 lines
977 B
C
49 lines
977 B
C
/*
|
|
* efence.h
|
|
*/
|
|
|
|
#ifndef __GST_EFENCE_H__
|
|
#define __GST_EFENCE_H__
|
|
|
|
#include <gst/gst.h>
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif /* __cplusplus */
|
|
|
|
/* #define's don't like whitespacey bits */
|
|
#define GST_TYPE_EFENCE \
|
|
(gst_gst_efence_get_type())
|
|
#define GST_EFENCE(obj) \
|
|
(G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_EFENCE,GstEFence))
|
|
#define GST_EFENCE_CLASS(klass) \
|
|
(G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_EFENCE,GstEFence))
|
|
#define GST_IS_EFENCE(obj) \
|
|
(G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_EFENCE))
|
|
#define GST_IS_EFENCE_CLASS(obj) \
|
|
(G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_EFENCE))
|
|
|
|
typedef struct _GstEFence GstEFence;
|
|
typedef struct _GstEFenceClass GstEFenceClass;
|
|
|
|
struct _GstEFence
|
|
{
|
|
GstElement element;
|
|
|
|
GstPad *sinkpad, *srcpad;
|
|
|
|
gboolean fence_top;
|
|
};
|
|
|
|
struct _GstEFenceClass
|
|
{
|
|
GstElementClass parent_class;
|
|
};
|
|
|
|
GType gst_gst_efence_get_type (void);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif /* __cplusplus */
|
|
|
|
#endif /* __GST_EFENCE_H__ */
|