103 #ifndef __VDO_STREAM_H__ 104 #define __VDO_STREAM_H__ 111 #include <glib-object.h> 115 #define VDO_GETFRAME_NONBLOCK (0) 121 #define VDO_TYPE_STREAM (vdo_stream_get_type()) 122 G_DECLARE_FINAL_TYPE(
VdoStream, vdo_stream, VDO, STREAM, GObject)
498 gboolean vdo_stream_encode(
VdoStream *
self, VdoBuffer **in_buf,
VdoMap *settings, GError **error);
565 gboolean vdo_stream_enqueue_buffer(
VdoStream *
self,
VdoMap * vdo_stream_get_info(VdoStream *self, GError **error)
Get the info for this video stream.
gboolean vdo_stream_force_key_frame(VdoStream *self, GError **error)
Forces this video stream to insert a key frame.
VdoStream * vdo_stream_new(VdoMap *settings, VdoBufferFinalizer fin, GError **error)
Create a new VdoStream.
A class representing a dictionary mapping keys to values.
Vdo common type definitions.
gboolean vdo_stream_buffer_enqueue(VdoStream *self, VdoBuffer *buffer, GError **error)
Enqueue a buffer for this video stream.
gint vdo_stream_get_fd(VdoStream *self, GError **error)
Returns a file descriptor representing the underlying socket connection.
VdoMap * vdo_stream_get_event(VdoStream *self, GError **error)
Fetches the next Event.
gboolean vdo_stream_attach(VdoStream *self, VdoMap *intent, GError **error)
Attach to a Stream.
VdoMap * vdo_stream_get_settings(VdoStream *self, GError **error)
Get the settings for this video stream.
VdoBuffer * vdo_stream_buffer_alloc(VdoStream *self, gpointer opaque, GError **error)
Allocates a new buffer for this stream.
gboolean vdo_stream_start(VdoStream *self, GError **error)
Start this video stream.
gboolean vdo_stream_set_framerate(VdoStream *self, gdouble framerate, GError **error)
Update the framerate for this video stream.
VdoStream * vdo_stream_get(guint id, GError **error)
Get an existing video stream.
gboolean vdo_stream_buffer_unref(VdoStream *self, VdoBuffer **buffer, GError **error)
Decreases the reference count for the specified buffer.
GList * vdo_stream_get_all(GError **error)
Gets all existing video streams.
guint vdo_stream_get_id(VdoStream *self)
Returns the id of this video stream.
A class representing a dictionary mapping keys to values.
gint vdo_stream_get_event_fd(VdoStream *self, GError **error)
Returns a file descriptor for prioritized events.
gboolean vdo_stream_set_settings(VdoStream *self, VdoMap *settings, GError **error)
Update the settings for this video stream.
VdoStream * vdo_stream_to_fd(VdoMap *settings, int data_fd, int meta_fd, GError **error)
Create and start a new stream to already existing file descriptors.
VdoBuffer * vdo_stream_snapshot(VdoMap *settings, GError **error)
Fetches a single VdoBuffer containing a frame.
void vdo_stream_stop(VdoStream *self)
Stop this video stream.
VdoBuffer * vdo_stream_get_buffer(VdoStream *self, GError **error)
Fetches a VdoBuffer containing a frame.