libvdo
vdo-channel.h
Go to the documentation of this file.
1 
44 #ifdef __cplusplus
45 extern "C" {
46 #endif
47 
48 #ifndef __VDO_CHANNEL_H__
49 #define __VDO_CHANNEL_H__
50 
51 #include "vdo-types.h"
52 #include "vdo-frame.h"
53 #include "vdo-map.h"
54 
55 #include <glib-object.h>
56 
61 #define VDO_TYPE_CHANNEL (vdo_channel_get_type())
62 G_DECLARE_FINAL_TYPE(VdoChannel, vdo_channel, VDO, CHANNEL, GObject)
63 
64 
75 VdoChannel *vdo_channel_get(guint channel_nbr, GError **error);
76 
88 GList *vdo_channel_get_all(GError **error);
89 
102 GList *vdo_channel_get_filtered(VdoMap *filter, GError **error);
103 
123 VdoMap *vdo_channel_get_info(VdoChannel *self, GError **error);
124 
144 VdoMap *vdo_channel_get_settings(VdoChannel *self, GError **error);
145 
167 gboolean vdo_channel_set_settings(VdoChannel *self, VdoMap *settings, GError **error);
168 
184  const gchar *profile,
185  VdoFormat format,
186  GError **error);
187 
206 VdoResolutionSet *vdo_channel_get_resolutions(VdoChannel *self, VdoMap *filter, GError **error);
207 
214 guint vdo_channel_get_id(VdoChannel *self);
215 
237 gboolean vdo_channel_set_stream_profile(VdoChannel *self,
239  const gchar *profile,
240  VdoFormat format,
241  VdoMap *settings,
242  GError **error);
243 
258 gboolean vdo_channel_set_crop_dptz(VdoChannel *self,
260  guint x, guint y,
261  guint width, guint height,
262  GError **error);
263 
272 gboolean
274 vdo_channel_apply_alpha_blending(VdoChannel *self,
275  gint fd,
276  GError **error);
277 
292 gboolean vdo_channel_set_framerate(VdoChannel *self, gdouble framerate,
293  GError **error);
294 
304 VdoChannel* vdo_channel_new(guint id, VdoResolutionSet *resolution_set,
306  VdoMap *info, GError **error);
307 
315 gboolean vdo_channel_destroy(VdoChannel *self, GError **error);
317 #endif
318 
319 #ifdef __cplusplus
320 }
321 #endif
guint vdo_channel_get_id(VdoChannel *self)
A channel.
VdoFormat
Video formats.
Definition: vdo-types.h:43
A class representing a dictionary mapping keys to values.
Vdo common type definitions.
VdoMap * vdo_channel_get_info(VdoChannel *self, GError **error)
Get the info for this channel.
VdoResolutionSet * vdo_channel_get_resolutions(VdoChannel *self, VdoMap *filter, GError **error)
Fetch all valid resolutions for a channel with specified stream format.
gboolean vdo_channel_set_framerate(VdoChannel *self, gdouble framerate, GError **error)
Update the framerate for the specified channel.
A class representing a dictionary mapping keys to values.
VdoMap * vdo_channel_get_stream_profile(VdoChannel *self, const gchar *profile, VdoFormat format, GError **error)
Query stream profile for the specified name, format and channel.
GList * vdo_channel_get_filtered(VdoMap *filter, GError **error)
Gets all existing channels matching a filter.
VdoChannel * vdo_channel_get(guint channel_nbr, GError **error)
Get an existing channel.
GList * vdo_channel_get_all(GError **error)
Gets all existing channels.
VdoMap * vdo_channel_get_settings(VdoChannel *self, GError **error)
Get the settings for this channel.
A video frame.
A set of resolutions.
Definition: vdo-types.h:436
gboolean vdo_channel_set_settings(VdoChannel *self, VdoMap *settings, GError **error)
Update the settings for this channel.