![]() |
![]() |
![]() |
![]() |
CheeseFileUtil | |
#define | CHEESE_PHOTO_NAME_SUFFIX |
#define | CHEESE_VIDEO_NAME_SUFFIX |
enum | CheeseMediaMode |
CheeseFileUtil provides some helpful utility functions for looking up paths for photos and videos.
CheeseFileUtil *
cheese_fileutil_new (void
);
Create a new CheeseFileUtil object.
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()
.
const gchar *
cheese_fileutil_get_photo_path (CheeseFileUtil *fileutil
);
Get the path where Cheese photo files are stored.
const gchar *
cheese_fileutil_get_video_path (CheeseFileUtil *fileutil
);
Get the path where Cheese video files are stored.
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.
#define CHEESE_PHOTO_NAME_SUFFIX ".jpg"
The filename suffix for photos saved by Cheese.
#define CHEESE_VIDEO_NAME_SUFFIX ".webm"
The filename suffix for videos saved by Cheese.
The media type, used for generating filenames with
cheese_fileutil_get_new_media_filename()
.