VLC  3.0.15
Data Structures | Functions
snapshot.h File Reference
Include dependency graph for snapshot.h:

Go to the source code of this file.

Data Structures

struct  vout_snapshot_t
 
struct  vout_snapshot_save_cfg_t
 

Functions

void vout_snapshot_Init (vout_snapshot_t *)
 
void vout_snapshot_Clean (vout_snapshot_t *)
 
void vout_snapshot_End (vout_snapshot_t *)
 
picture_tvout_snapshot_Get (vout_snapshot_t *, mtime_t timeout)
 
bool vout_snapshot_IsRequested (vout_snapshot_t *)
 It tells if they are pending snapshot request. More...
 
void vout_snapshot_Set (vout_snapshot_t *, const video_format_t *, picture_t *)
 It set the picture used to create the snapshots. More...
 
char * vout_snapshot_GetDirectory (void)
 This function will return the directory used for snapshots. More...
 
int vout_snapshot_SaveImage (char **name, int *sequential, const block_t *image, vout_thread_t *p_vout, const vout_snapshot_save_cfg_t *cfg)
 This function will write an image to the disk an return the file name created. More...
 

Function Documentation

◆ vout_snapshot_Clean()

void vout_snapshot_Clean ( vout_snapshot_t )

◆ vout_snapshot_End()

void vout_snapshot_End ( vout_snapshot_t )

◆ vout_snapshot_Get()

picture_t* vout_snapshot_Get ( vout_snapshot_t ,
mtime_t  timeout 
)

◆ vout_snapshot_GetDirectory()

char* vout_snapshot_GetDirectory ( void  )

This function will return the directory used for snapshots.

References config_GetUserDir(), and VLC_PICTURES_DIR.

◆ vout_snapshot_Init()

void vout_snapshot_Init ( vout_snapshot_t )

◆ vout_snapshot_IsRequested()

bool vout_snapshot_IsRequested ( vout_snapshot_t )

It tells if they are pending snapshot request.

References vout_snapshot_t::lock, vout_snapshot_t::request_count, vlc_mutex_trylock(), and vlc_mutex_unlock().

◆ vout_snapshot_SaveImage()

int vout_snapshot_SaveImage ( char **  name,
int *  sequential,
const block_t image,
vout_thread_t p_vout,
const vout_snapshot_save_cfg_t cfg 
)

◆ vout_snapshot_Set()

void vout_snapshot_Set ( vout_snapshot_t ,
const video_format_t ,
picture_t  
)

It set the picture used to create the snapshots.

The given picture is cloned. If p_fmt is non NULL it will override the format of the p_picture (mainly used because of aspect/crop problems).