LiVES 2.4.6

- Main Page
- Namespaces
- Data Structures
- Files

- File List
- Globals

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;
32 } lives_yuv4m_t;
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
41 void lives_yuv_stream_stop_read(lives_yuv4m_t *);
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);
47 void lives_yuv_stream_stop_write(lives_yuv4m_t *);
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
lives_yuv4m_t::filename
char * filename
Definition: lives-yuv4mpeg.h:26
lives_yuv4m_t::frameinfo
y4m_frame_info_t frameinfo
Definition: lives-yuv4mpeg.h:22
lives_yuv4m_t
Definition: lives-yuv4mpeg.h:18
lives_yuv4m_t::cardno
int cardno
Definition: lives-yuv4mpeg.h:20
on_live_fw_activate
void on_live_fw_activate(LiVESMenuItem *menuitem, livespointer user_data)
Definition: lives-yuv4mpeg.c:734
lives_yuv4m_t::hsize
int hsize
Definition: lives-yuv4mpeg.h:28
on_open_yuv4m_activate
void on_open_yuv4m_activate(LiVESMenuItem *menuitem, livespointer user_data)
Definition: lives-yuv4mpeg.c:386
lives_yuv4m_t::streaminfo
y4m_stream_info_t streaminfo
Definition: lives-yuv4mpeg.h:21
lives_yuv4m_t::type
int type
Definition: lives-yuv4mpeg.h:19
lives_yuv4m_t::fd
int fd
Definition: lives-yuv4mpeg.h:27
lives_yuv_stream_stop_read
void lives_yuv_stream_stop_read(lives_yuv4m_t *yuv4mpeg)
Definition: lives-yuv4mpeg.c:261
lives_yuv_stream_stop_write
void lives_yuv_stream_stop_write(lives_yuv4m_t *yuv4mpeg)
Definition: lives-yuv4mpeg.c:553
on_live_tvcard_activate
void on_live_tvcard_activate(LiVESMenuItem *menuitem, livespointer user_data)
Definition: lives-yuv4mpeg.c:592
lives_yuv4m_t::vsize
int vsize
Definition: lives-yuv4mpeg.h:29
lives_yuv4m_t::ready
boolean ready
Definition: lives-yuv4mpeg.h:31
lives_yuv4m_t::name
char * name
Definition: lives-yuv4mpeg.h:25
weed_layer_set_from_yuv4m
void weed_layer_set_from_yuv4m(weed_plant_t *layer, lives_clip_t *sfile)
Definition: lives-yuv4mpeg.c:285
lives_clip_t
corresponds to one clip in the GUI
Definition: main.h:484
lives_yuv_stream_start_write
boolean lives_yuv_stream_start_write(lives_yuv4m_t *yuv4mpeg, const char *filename, int hsize, int vsize, double fps)
not used
Definition: lives-yuv4mpeg.c:501
lives_yuv4m_t::dar
y4m_ratio_t dar
Definition: lives-yuv4mpeg.h:24
lives_card_w::card_spin
LiVESWidget * card_spin
Definition: lives-yuv4mpeg.h:52
lives_card_w
Definition: lives-yuv4mpeg.h:50
lives_yuv4m_t::pixel_data
void ** pixel_data
Definition: lives-yuv4mpeg.h:30
lives_yuv4m_t::sar
y4m_ratio_t sar
Definition: lives-yuv4mpeg.h:23
lives_card_w::dialog
LiVESWidget * dialog
Definition: lives-yuv4mpeg.h:51
lives_yuv_stream_write_frame
boolean lives_yuv_stream_write_frame(lives_yuv4m_t *yuv4mpeg, void *pixel_data)
Definition: lives-yuv4mpeg.c:535
lives_card_w::channel_spin
LiVESWidget * channel_spin
Definition: lives-yuv4mpeg.h:53