LiVES  1.6.4-svn
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
stream.h
Go to the documentation of this file.
1 // stream.h
2 // LiVES
3 // (c) G. Finch 2008 <salsaman@xs4all.nl,salsaman@gmail.com>
4 // released under the GNU GPL 3 or later
5 // see file ../COPYING for licensing details
6 
7 #ifndef HAS_LIVES_STREAM_H
8 #define HAS_LIVES_STREAM_H
9 
10 
11 typedef struct {
12  guint32 stream_id;
13  guint32 flags;
14 
15  int64_t timecode;
16  int hsize;
17  int vsize;
18  double fps;
19  int palette;
24 
25  // TODO - use lives_stream_control_t for these
26  size_t dsize;
27  gboolean data_ready;
28  void *handle;
29 
30  volatile gboolean reading;
31  void *buffer;
32  volatile size_t bufoffs;
34 
35 // stream packet tpyes
36 #define LIVES_STREAM_TYPE_VIDEO 1
37 
38 // video stream flags
39 #define LIVES_VSTREAM_FLAGS_IS_CONTINUATION 1<<0
40 
41 // video compression types
42 #define LIVES_VSTREAM_COMPRESSION_NONE 0
43 
44 
45 void lives2lives_read_stream (const gchar *host, int port);
46 void weed_layer_set_from_lives2lives (weed_plant_t *layer, gint clip, lives_vstream_t *lstream);
47 void on_open_lives2lives_activate (GtkMenuItem *, gpointer);
48 void on_send_lives2lives_activate (GtkMenuItem *, gpointer);
49 
50 typedef struct {
51  GtkWidget *dialog;
52  GtkWidget *entry1;
53  GtkWidget *entry2;
54  GtkWidget *entry3;
55  GtkWidget *entry4;
56  GtkWidget *port_spin;
57  GtkWidget *rb_anyhost;
59 
61 
62 
63 
64 
65 #endif // HAS_LIVES_STREAM_H