20 #ifndef _GST_APP_SINK_H_
21 #define _GST_APP_SINK_H_
24 #include <gst/base/gstbasesink.h>
32 #define GST_TYPE_APP_SINK \
33 (gst_app_sink_get_type())
34 #define GST_APP_SINK(obj) \
35 (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_APP_SINK,GstAppSink))
36 #define GST_APP_SINK_CLASS(klass) \
37 (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_APP_SINK,GstAppSinkClass))
38 #define GST_IS_APP_SINK(obj) \
39 (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_APP_SINK))
40 #define GST_IS_APP_SINK_CLASS(klass) \
41 (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_APP_SINK))
63 GstBaseSinkClass basesink_class;
71 GstBuffer * (*pull_preroll) (
GstAppSink *sink);
75 GType gst_app_sink_get_type(
void);
77 GST_DEBUG_CATEGORY_EXTERN (app_sink_debug);
79 void gst_app_sink_set_caps (
GstAppSink *appsink,
const GstCaps *caps);
80 GstCaps * gst_app_sink_get_caps (
GstAppSink *appsink);
82 gboolean gst_app_sink_is_eos (
GstAppSink *appsink);
84 GstBuffer * gst_app_sink_pull_preroll (
GstAppSink *appsink);
85 GstBuffer * gst_app_sink_pull_buffer (
GstAppSink *appsink);
86 GstBuffer * gst_app_sink_peek_buffer (
GstAppSink *appsink);
88 guint gst_app_sink_get_queue_length (
GstAppSink *appsink);
90 gboolean appsink_plugin_init (GstPlugin * plugin);
static bool MatchMessage(player_msghdr_t *hdr, int type, int subtype, player_devaddr_t addr)
Helper for message processing.
Definition: message.h:159
Generic message header.
Definition: player.h:162
virtual int MainSetup(void)
Sets up the resources needed by the driver thread.
Definition: driver.h:658
virtual void MainQuit(void)
Cleanup method for driver thread (called when main exits)
Definition: driver.h:664
Encapsulates a device (i.e., a driver bound to an interface)
Definition: device.h:75
const char * ReadString(int section, const char *name, const char *value)
Read a string value.
Definition: gstappsink.h:47
Definition: gstappsink.h:62
virtual void Main(void)=0
Main method for driver thread.
int ReadInt(int section, const char *name, int value)
Read an integer value.
#define PLAYER_MSGTYPE_DATA
A data message.
Definition: player.h:95
virtual int ProcessMessage(QueuePointer &resp_queue, player_msghdr *hdr, void *data)
Message handler.
int ReadDeviceAddr(player_devaddr_t *addr, int section, const char *name, int code, int index, const char *key)
Read a device id.
Class for loading configuration file information.
Definition: configfile.h:197
A device address.
Definition: player.h:146
An autopointer for the message queue.
Definition: message.h:74
#define PLAYER_ERROR(msg)
Definition: error.h:81
Base class for drivers which oeprate with a thread.
Definition: driver.h:553
#define PLAYER_MSGTYPE_CMD
A command message.
Definition: player.h:99
Base class for all drivers.
Definition: driver.h:109
#define PLAYER_MSGQUEUE_DEFAULT_MAXLEN
Default maximum length for a message queue.
Definition: player.h:76