LiVES  2.4.1-svn
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
lives-yuv4mpeg.h
Go to the documentation of this file.
1 // yuv4mpeg.h
2 // LiVES (lives-exe)
3 // (c) G. Finch 2004 - 2013
4 // released under the GNU GPL 3 or later
5 // see file ../COPYING or www.gnu.org for licensing details
6 
7 
8 #ifndef YUV4MPEG_H
9 #define YUV4MPEG_H
10 
11 #include <yuv4mpeg.h>
12 
13 #define YUV4_TYPE_GENERIC 0
14 #define YUV4_TYPE_FW 1
15 #define YUV4_TYPE_TV 2
16 
17 
18 typedef struct {
19  int type;
20  int cardno;
21  y4m_stream_info_t streaminfo;
22  y4m_frame_info_t frameinfo;
23  y4m_ratio_t sar;
24  y4m_ratio_t dar;
25  char *name;
26  char *filename;
27  int fd;
28  int hsize;
29  int vsize;
30  void **pixel_data;
31  boolean ready;
33 
34 void weed_layer_set_from_yuv4m(weed_plant_t *layer, lives_clip_t *);
35 
36 // callbacks
37 void on_open_yuv4m_activate(LiVESMenuItem *, livespointer);
38 void on_live_tvcard_activate(LiVESMenuItem *, livespointer);
39 void on_live_fw_activate(LiVESMenuItem *, livespointer);
40 
42 
43 
45 boolean lives_yuv_stream_start_write(lives_yuv4m_t *, const char *filename, int hsize, int vsize, double fps);
46 boolean lives_yuv_stream_write_frame(lives_yuv4m_t *, void *pixel_data);
48 
49 
50 typedef struct {
51  LiVESWidget *dialog;
52  LiVESWidget *card_spin;
53  LiVESWidget *channel_spin;
54 } lives_card_w;
55 
56 
57 
58 
59 #endif
60 
61 
char * filename
Definition: lives-yuv4mpeg.h:26
y4m_frame_info_t frameinfo
Definition: lives-yuv4mpeg.h:22
void on_live_fw_activate(LiVESMenuItem *, livespointer)
Definition: lives-yuv4mpeg.c:722
Definition: lives-yuv4mpeg.h:18
int cardno
Definition: lives-yuv4mpeg.h:20
int hsize
Definition: lives-yuv4mpeg.h:28
y4m_stream_info_t streaminfo
Definition: lives-yuv4mpeg.h:21
boolean lives_yuv_stream_start_write(lives_yuv4m_t *, const char *filename, int hsize, int vsize, double fps)
not used
Definition: lives-yuv4mpeg.c:489
void lives_yuv_stream_stop_write(lives_yuv4m_t *)
Definition: lives-yuv4mpeg.c:541
void weed_layer_set_from_yuv4m(weed_plant_t *layer, lives_clip_t *)
Definition: lives-yuv4mpeg.c:274
int type
Definition: lives-yuv4mpeg.h:19
int fd
Definition: lives-yuv4mpeg.h:27
void on_open_yuv4m_activate(LiVESMenuItem *, livespointer)
Definition: lives-yuv4mpeg.c:374
int vsize
Definition: lives-yuv4mpeg.h:29
boolean ready
Definition: lives-yuv4mpeg.h:31
char * name
Definition: lives-yuv4mpeg.h:25
corresponds to one clip in the GUI
Definition: main.h:474
void lives_yuv_stream_stop_read(lives_yuv4m_t *)
Definition: lives-yuv4mpeg.c:250
boolean lives_yuv_stream_write_frame(lives_yuv4m_t *, void *pixel_data)
Definition: lives-yuv4mpeg.c:523
y4m_ratio_t dar
Definition: lives-yuv4mpeg.h:24
void on_live_tvcard_activate(LiVESMenuItem *, livespointer)
Definition: lives-yuv4mpeg.c:580
LiVESWidget * card_spin
Definition: lives-yuv4mpeg.h:52
Definition: lives-yuv4mpeg.h:50
void ** pixel_data
Definition: lives-yuv4mpeg.h:30
y4m_ratio_t sar
Definition: lives-yuv4mpeg.h:23
LiVESWidget * dialog
Definition: lives-yuv4mpeg.h:51
LiVESWidget * channel_spin
Definition: lives-yuv4mpeg.h:53