2009-10-27 15:27:45 +00:00
|
|
|
/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */
|
2009-03-13 21:14:31 +00:00
|
|
|
#ifndef __SHELL_RECORDER_H__
|
|
|
|
#define __SHELL_RECORDER_H__
|
|
|
|
|
|
|
|
#include <clutter/clutter.h>
|
|
|
|
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
|
|
|
|
/**
|
2011-11-02 16:24:49 +00:00
|
|
|
* SECTION:shell-recorder
|
|
|
|
* @short_description: Record from a #ClutterStage
|
2009-03-13 21:14:31 +00: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 18:07:44 +00:00
|
|
|
#define SHELL_TYPE_RECORDER (shell_recorder_get_type ())
|
|
|
|
G_DECLARE_FINAL_TYPE (ShellRecorder, shell_recorder, SHELL, RECORDER, GObject)
|
2009-03-13 21:14:31 +00:00
|
|
|
|
|
|
|
ShellRecorder *shell_recorder_new (ClutterStage *stage);
|
|
|
|
|
2010-02-08 20:25:58 +00:00
|
|
|
void shell_recorder_set_framerate (ShellRecorder *recorder,
|
|
|
|
int framerate);
|
2012-10-25 21:14:20 +00:00
|
|
|
void shell_recorder_set_file_template (ShellRecorder *recorder,
|
|
|
|
const char *file_template);
|
2009-03-13 21:14:31 +00:00
|
|
|
void shell_recorder_set_pipeline (ShellRecorder *recorder,
|
|
|
|
const char *pipeline);
|
2013-05-08 17:52:16 +00:00
|
|
|
void shell_recorder_set_draw_cursor (ShellRecorder *recorder,
|
|
|
|
gboolean draw_cursor);
|
2013-05-08 17:24:19 +00:00
|
|
|
void shell_recorder_set_area (ShellRecorder *recorder,
|
|
|
|
int x,
|
|
|
|
int y,
|
|
|
|
int width,
|
|
|
|
int height);
|
2013-05-06 22:11:57 +00:00
|
|
|
gboolean shell_recorder_record (ShellRecorder *recorder,
|
|
|
|
char **filename_used);
|
2009-03-13 21:14:31 +00: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__ */
|