|
VLC
2.1.0-git
|

Functions | |
| void | vout_snapshot_Init (vout_snapshot_t *snap) |
| void | vout_snapshot_Clean (vout_snapshot_t *snap) |
| void | vout_snapshot_End (vout_snapshot_t *snap) |
| picture_t * | vout_snapshot_Get (vout_snapshot_t *snap, mtime_t timeout) |
| bool | vout_snapshot_IsRequested (vout_snapshot_t *snap) |
| It tells if they are pending snapshot request. | |
| void | vout_snapshot_Set (vout_snapshot_t *snap, const video_format_t *fmt, const picture_t *picture) |
| It set the picture used to create the snapshots. | |
| char * | vout_snapshot_GetDirectory (void) |
| This function will return the directory used for snapshots. | |
| int | vout_snapshot_SaveImage (char **name, int *sequential, const block_t *image, vlc_object_t *object, const vout_snapshot_save_cfg_t *cfg) |
| This function will write an image to the disk an return the file name created. | |
| void vout_snapshot_Clean | ( | vout_snapshot_t * | snap | ) |
References vout_snapshot_t::lock, picture_t::p_next, vout_snapshot_t::picture, picture_Release(), vlc_cond_destroy(), vlc_mutex_destroy(), and vout_snapshot_t::wait.
Referenced by VoutDestructor().
| void vout_snapshot_End | ( | vout_snapshot_t * | snap | ) |
References vout_snapshot_t::is_available, vout_snapshot_t::lock, vlc_cond_broadcast(), vlc_mutex_lock(), vlc_mutex_unlock(), and vout_snapshot_t::wait.
Referenced by vout_Close().
| picture_t* vout_snapshot_Get | ( | vout_snapshot_t * | snap, |
| mtime_t | timeout | ||
| ) |
| char* vout_snapshot_GetDirectory | ( | void | ) |
This function will return the directory used for snapshots.
References config_GetUserDir(), and VLC_PICTURES_DIR.
Referenced by VoutSaveSnapshot().
| void vout_snapshot_Init | ( | vout_snapshot_t * | snap | ) |
References vout_snapshot_t::is_available, vout_snapshot_t::lock, vout_snapshot_t::picture, vout_snapshot_t::request_count, vlc_cond_init(), vlc_mutex_init(), and vout_snapshot_t::wait.
Referenced by VoutCreate().
| bool vout_snapshot_IsRequested | ( | vout_snapshot_t * | snap | ) |
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().
Referenced by ThreadDisplayRenderPicture().
| int vout_snapshot_SaveImage | ( | char ** | name, |
| int * | sequential, | ||
| const block_t * | image, | ||
| vlc_object_t * | object, | ||
| const vout_snapshot_save_cfg_t * | cfg | ||
| ) |
This function will write an image to the disk an return the file name created.
< No error
< Unspecified error
References asprintf(), DIR_SEP, filename_sanitize(), vout_snapshot_save_cfg_t::format, block_t::i_buffer, block_t::i_pts, vout_snapshot_save_cfg_t::is_sequential, localtime_r(), msg_Err, msg_Warn, block_t::p_buffer, vout_snapshot_save_cfg_t::path, path_sanitize(), vout_snapshot_save_cfg_t::prefix_fmt, vout_snapshot_save_cfg_t::sequence, str_format_time(), strdup(), VLC_EGENERIC, vlc_fopen(), vlc_opendir(), vlc_stat(), and VLC_SUCCESS.
Referenced by VoutSaveSnapshot().
| void vout_snapshot_Set | ( | vout_snapshot_t * | , |
| const video_format_t * | , | ||
| const picture_t * | |||
| ) |
It set the picture used to create the snapshots.
The given picture is only copied and not released. If p_fmt is non NULL it will override the format of the p_picture (mainly used because of aspect/crop problems).
References picture_t::format, vout_snapshot_t::lock, picture_t::p_next, vout_snapshot_t::picture, picture_Copy(), picture_NewFromFormat(), vout_snapshot_t::request_count, vlc_cond_broadcast(), vlc_mutex_lock(), vlc_mutex_unlock(), and vout_snapshot_t::wait.
Referenced by ThreadDisplayRenderPicture().
1.8.1.2