| Top |
Functions
| CheeseFileUtil * | cheese_fileutil_new () |
| gchar * | cheese_fileutil_get_new_media_filename () |
| const gchar * | cheese_fileutil_get_photo_path () |
| const gchar * | cheese_fileutil_get_video_path () |
| void | cheese_fileutil_reset_burst () |
Types and Values
| CheeseFileUtil | |
| #define | CHEESE_PHOTO_NAME_SUFFIX |
| #define | CHEESE_VIDEO_NAME_SUFFIX |
| enum | CheeseMediaMode |
Description
CheeseFileUtil provides some helpful utility functions for looking up paths for photos and videos.
Functions
cheese_fileutil_new ()
CheeseFileUtil *
cheese_fileutil_new (void);
Create a new CheeseFileUtil object.
cheese_fileutil_get_new_media_filename ()
gchar * cheese_fileutil_get_new_media_filename (CheeseFileUtil *fileutil,CheeseMediaMode mode);
Creates a filename for one of the three media types: photo, photo burst or
video. If a filename for a photo burst image was previously created, this
function increments the burst count automatically. To start a new burst,
first call cheese_fileutil_reset_burst().
cheese_fileutil_get_photo_path ()
const gchar *
cheese_fileutil_get_photo_path (CheeseFileUtil *fileutil);
Get the path where Cheese photo files are stored.
cheese_fileutil_get_video_path ()
const gchar *
cheese_fileutil_get_video_path (CheeseFileUtil *fileutil);
Get the path where Cheese video files are stored.
cheese_fileutil_reset_burst ()
void
cheese_fileutil_reset_burst (CheeseFileUtil *fileutil);
Resets the burst counter, so that calling
cheese_fileutil_get_new_media_filename() with a photo burst starts a new
burst of photos.
Types and Values
CHEESE_PHOTO_NAME_SUFFIX
#define CHEESE_PHOTO_NAME_SUFFIX ".jpg"
The filename suffix for photos saved by Cheese.
CHEESE_VIDEO_NAME_SUFFIX
#define CHEESE_VIDEO_NAME_SUFFIX ".webm"
The filename suffix for videos saved by Cheese.
enum CheeseMediaMode
The media type, used for generating filenames with
cheese_fileutil_get_new_media_filename().
