[longomatch] Expose title-size and set the default size to 14px
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [longomatch] Expose title-size and set the default size to 14px
- Date: Fri, 14 Dec 2012 20:18:01 +0000 (UTC)
commit f16ec7a24decbfc4c10b38297b052696e6195c18
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date: Thu Dec 6 19:59:56 2012 +0100
Expose title-size and set the default size to 14px
LongoMatch.Multimedia/Editor/GstVideoSplitter.cs | 16 ++++++++++++++++
libcesarplayer/gst-video-editor.c | 3 +--
2 files changed, 17 insertions(+), 2 deletions(-)
---
diff --git a/LongoMatch.Multimedia/Editor/GstVideoSplitter.cs b/LongoMatch.Multimedia/Editor/GstVideoSplitter.cs
index af9ea5e..090e328 100644
--- a/LongoMatch.Multimedia/Editor/GstVideoSplitter.cs
+++ b/LongoMatch.Multimedia/Editor/GstVideoSplitter.cs
@@ -157,6 +157,21 @@ namespace LongoMatch.Video.Editor {
val.Dispose();
}
}
+
+ [GLib.Property("title-size")]
+ public int TitleSize {
+ get {
+ GLib.Value val = GetProperty("title-size");
+ int ret = (int) val;
+ val.Dispose();
+ return ret;
+ }
+ set {
+ GLib.Value val = new GLib.Value(value);
+ SetProperty("title-size", val);
+ val.Dispose();
+ }
+ }
#endregion
@@ -379,6 +394,7 @@ namespace LongoMatch.Video.Editor {
OutputFile = value.OutputFile;
EnableAudio = false;
VideoMuxer = value.EncodingProfile.Muxer;
+ TitleSize = 14;
}
}
diff --git a/libcesarplayer/gst-video-editor.c b/libcesarplayer/gst-video-editor.c
index d1f92e1..12a9050 100644
--- a/libcesarplayer/gst-video-editor.c
+++ b/libcesarplayer/gst-video-editor.c
@@ -29,7 +29,6 @@
#define DEFAULT_VIDEO_ENCODER "vp8enc"
#define DEFAULT_AUDIO_ENCODER "vorbisenc"
#define DEFAULT_VIDEO_MUXER "matroskamux"
-#define FONT_SIZE_FACTOR 0.05
#define LAME_CAPS "audio/x-raw-int, rate=44100, channels=2, endianness=1234, signed=true, width=16, depth=16"
#define VORBIS_CAPS "audio/x-raw-float, rate=44100, channels=2, endianness=1234, signed=true, width=32, depth=32"
#define FAAC_CAPS "audio/x-raw-int, rate=44100, channels=2, endianness=1234, signed=true, width=16, depth=16"
@@ -245,7 +244,7 @@ gst_video_editor_class_init (GstVideoEditorClass * klass)
g_object_class_install_property (object_class, PROP_TITLE_SIZE,
g_param_spec_int ("title-size", NULL, NULL,
- 10, 100, 20, G_PARAM_READWRITE));
+ 1, 100, 20, G_PARAM_READWRITE));
g_object_class_install_property (object_class, PROP_OUTPUT_FILE,
g_param_spec_string ("output_file", NULL, NULL, "", G_PARAM_READWRITE));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]