2009-10-27 11:27:45 -04:00
|
|
|
/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */
|
2009-03-13 17:14:31 -04:00
|
|
|
#ifndef __SHELL_RECORDER_H__
|
|
|
|
#define __SHELL_RECORDER_H__
|
|
|
|
|
|
|
|
#include <clutter/clutter.h>
|
|
|
|
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
|
|
|
|
/**
|
2011-11-02 12:24:49 -04:00
|
|
|
* SECTION:shell-recorder
|
|
|
|
* @short_description: Record from a #ClutterStage
|
2009-03-13 17:14:31 -04:00
|
|
|
*
|
|
|
|
* The #ShellRecorder object is used to make recordings ("screencasts")
|
|
|
|
* of a #ClutterStage. Recording is done via #GStreamer. The default is
|
|
|
|
* to encode as a Theora movie and write it to a file in the current
|
|
|
|
* directory named after the date, but the encoding and output can
|
|
|
|
* be configured.
|
|
|
|
*/
|
2015-09-24 14:07:44 -04:00
|
|
|
#define SHELL_TYPE_RECORDER (shell_recorder_get_type ())
|
|
|
|
G_DECLARE_FINAL_TYPE (ShellRecorder, shell_recorder, SHELL, RECORDER, GObject)
|
2009-03-13 17:14:31 -04:00
|
|
|
|
|
|
|
ShellRecorder *shell_recorder_new (ClutterStage *stage);
|
|
|
|
|
2010-02-08 15:25:58 -05:00
|
|
|
void shell_recorder_set_framerate (ShellRecorder *recorder,
|
|
|
|
int framerate);
|
2012-10-25 17:14:20 -04:00
|
|
|
void shell_recorder_set_file_template (ShellRecorder *recorder,
|
|
|
|
const char *file_template);
|
2009-03-13 17:14:31 -04:00
|
|
|
void shell_recorder_set_pipeline (ShellRecorder *recorder,
|
|
|
|
const char *pipeline);
|
2013-05-08 13:52:16 -04:00
|
|
|
void shell_recorder_set_draw_cursor (ShellRecorder *recorder,
|
|
|
|
gboolean draw_cursor);
|
2013-05-08 13:24:19 -04:00
|
|
|
void shell_recorder_set_area (ShellRecorder *recorder,
|
|
|
|
int x,
|
|
|
|
int y,
|
|
|
|
int width,
|
|
|
|
int height);
|
2013-05-06 18:11:57 -04:00
|
|
|
gboolean shell_recorder_record (ShellRecorder *recorder,
|
|
|
|
char **filename_used);
|
2009-03-13 17:14:31 -04:00
|
|
|
void shell_recorder_close (ShellRecorder *recorder);
|
|
|
|
void shell_recorder_pause (ShellRecorder *recorder);
|
|
|
|
gboolean shell_recorder_is_recording (ShellRecorder *recorder);
|
|
|
|
|
|
|
|
G_END_DECLS
|
|
|
|
|
|
|
|
#endif /* __SHELL_RECORDER_H__ */
|