LiVES  3.2.0
Functions
lives-yuv4mpeg.c File Reference
#include "main.h"
#include "interface.h"
#include "lives-yuv4mpeg.h"
#include "effects-weed.h"

Go to the source code of this file.

Functions

void lives_yuv_stream_stop_read (lives_yuv4m_t *yuv4mpeg)
 
void weed_layer_set_from_yuv4m (weed_layer_t *layer, lives_clip_t *sfile)
 
void on_open_yuv4m_activate (LiVESMenuItem *menuitem, livespointer user_data)
 
boolean lives_yuv_stream_start_write (lives_yuv4m_t *yuv4mpeg, const char *filename, int hsize, int vsize, double fps)
 not used More...
 
boolean lives_yuv_stream_write_frame (lives_yuv4m_t *yuv4mpeg, void *pixel_data)
 
void lives_yuv_stream_stop_write (lives_yuv4m_t *yuv4mpeg)
 
void on_live_tvcard_activate (LiVESMenuItem *menuitem, livespointer user_data)
 add live input peripherals More...
 
void on_live_fw_activate (LiVESMenuItem *menuitem, livespointer user_data)
 

Function Documentation

◆ 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 at line 457 of file lives-yuv4mpeg.c.

◆ lives_yuv_stream_stop_read()

void lives_yuv_stream_stop_read ( lives_yuv4m_t yuv4mpeg)

Definition at line 233 of file lives-yuv4mpeg.c.

Referenced by close_current_file().

◆ lives_yuv_stream_stop_write()

void lives_yuv_stream_stop_write ( lives_yuv4m_t yuv4mpeg)

Definition at line 509 of file lives-yuv4mpeg.c.

◆ lives_yuv_stream_write_frame()

boolean lives_yuv_stream_write_frame ( lives_yuv4m_t yuv4mpeg,
void *  pixel_data 
)

Definition at line 491 of file lives-yuv4mpeg.c.

◆ on_live_fw_activate()

void on_live_fw_activate ( LiVESMenuItem *  menuitem,
livespointer  user_data 
)

Definition at line 683 of file lives-yuv4mpeg.c.

◆ on_live_tvcard_activate()

void on_live_tvcard_activate ( LiVESMenuItem *  menuitem,
livespointer  user_data 
)

add live input peripherals

some time in the future it would be nice to implement these via videojack

advantages would be: - no longer necessary to have mjpegtools

  • multiple copies of LiVES could share the same input at (almost) zero cost

for each of these functions:

  • prompt user for name of device, etc.

check if device already opened, if so exit

create clip with default values; clip type is YUV4MPEG

create a fifo file set mplayer reading from device and writing yuv4mpeg

start reading - update clip values

note: we add the clip to the menu and to mainw->cliplist beware when handling mainw->cliplist

Definition at line 541 of file lives-yuv4mpeg.c.

◆ on_open_yuv4m_activate()

void on_open_yuv4m_activate ( LiVESMenuItem *  menuitem,
livespointer  user_data 
)

Definition at line 353 of file lives-yuv4mpeg.c.

◆ weed_layer_set_from_yuv4m()

void weed_layer_set_from_yuv4m ( weed_layer_t layer,
lives_clip_t sfile 
)

Definition at line 253 of file lives-yuv4mpeg.c.