LiVES 3.2.0
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
18typedef 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
35
36// callbacks
37void on_open_yuv4m_activate(LiVESMenuItem *, livespointer);
38void on_live_tvcard_activate(LiVESMenuItem *, livespointer);
39void on_live_fw_activate(LiVESMenuItem *, livespointer);
40
42
43
45boolean lives_yuv_stream_start_write(lives_yuv4m_t *, const char *filename, int hsize, int vsize, double fps);
46boolean lives_yuv_stream_write_frame(lives_yuv4m_t *, void *pixel_data);
48
49
50typedef struct {
51 LiVESWidget *dialog;
52 LiVESWidget *card_spin;
53 LiVESWidget *channel_spin;
55
56
57
58
59#endif
60
61
weed_plant_t weed_layer_t
Definition: colourspace.h:71
void on_open_yuv4m_activate(LiVESMenuItem *, livespointer)
boolean lives_yuv_stream_write_frame(lives_yuv4m_t *, void *pixel_data)
void on_live_fw_activate(LiVESMenuItem *, livespointer)
void lives_yuv_stream_stop_read(lives_yuv4m_t *)
void weed_layer_set_from_yuv4m(weed_layer_t *layer, lives_clip_t *)
boolean lives_yuv_stream_start_write(lives_yuv4m_t *, const char *filename, int hsize, int vsize, double fps)
not used
void on_live_tvcard_activate(LiVESMenuItem *, livespointer)
add live input peripherals
void lives_yuv_stream_stop_write(lives_yuv4m_t *)
LiVESWidget * channel_spin
LiVESWidget * dialog
LiVESWidget * card_spin
corresponds to one clip in the GUI
Definition: main.h:877
void ** pixel_data
y4m_frame_info_t frameinfo
y4m_ratio_t dar
y4m_ratio_t sar
y4m_stream_info_t streaminfo