[pinpoint] core: Add the serialization of camera-framerate/resolution
- From: Damien Lespiau <dlespiau src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pinpoint] core: Add the serialization of camera-framerate/resolution
- Date: Sat, 23 Jul 2011 14:59:17 +0000 (UTC)
commit c073adb2b997fb6876a3b078a0ece25fa626ca8e
Author: Damien Lespiau <damien lespiau intel com>
Date: Sat Jul 23 15:48:34 2011 +0100
core: Add the serialization of camera-framerate/resolution
pinpoint.c | 13 ++++++++++++-
1 files changed, 12 insertions(+), 1 deletions(-)
---
diff --git a/pinpoint.c b/pinpoint.c
index 4d15d8d..36dd52c 100644
--- a/pinpoint.c
+++ b/pinpoint.c
@@ -230,7 +230,6 @@ main (int argc,
pp_rehearse_init ();
printf ("Running in rehearsal mode, press ctrl+C to abort without saving timings back to %s\n", pinfile);
}
-
renderer->run (renderer);
renderer->finalize (renderer);
if (renderer->source)
@@ -557,6 +556,9 @@ static void serialize_slide_config (GString *str,
#define STRING(v,n) \
if (point->v != reference->v) \
g_string_append_printf (str, "%s[" n "%s]", separator, point->v)
+#define INT(v,n) \
+ if (point->v != reference->v) \
+ g_string_append_printf (str, "%s[" n "%d]", separator, point->v)
#define FLOAT(v,n) \
if (point->v != reference->v) \
g_string_append_printf (str, "%s[" n "%f]", separator, point->v)
@@ -623,6 +625,14 @@ static void serialize_slide_config (GString *str,
if (point->duration != 0.0)
FLOAT(duration, "duration="); /* XXX: probably needs special treatment */
+ INT(camera_framerate, "camera-framerate=");
+ if (point->camera_resolution.width != reference->camera_resolution.width &&
+ point->camera_resolution.height != reference->camera_resolution.height)
+ {
+ g_string_append_printf (str, "[camera-resolution=%dx%d]",
+ point->camera_resolution.width,
+ point->camera_resolution.height);
+ }
if (point->use_markup != reference->use_markup)
{
@@ -634,6 +644,7 @@ static void serialize_slide_config (GString *str,
}
#undef FLOAT
+#undef INT
#undef STRING
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]