2006-07-12 Aaron Bockover <aaron@abock.org>
authorAaron Bockover <aaron@abock.org>
Wed, 12 Jul 2006 21:49:32 +0000 (21:49 +0000)
committerAaron Bockover <aaron@abock.org>
Wed, 12 Jul 2006 21:49:32 +0000 (21:49 +0000)
    * gstreamer-sharp.mds:
    * gstreamer-sharp.mdp: Updated MonoDevelo project/solution

    * source/gstreamer-sharp-source.xml: Cleaned up a bit

    * sample/DecodeBinTranscoder.cs: Updated to reflect renaming of
    Clock.GstSecond to Clock.Second, etc.

    * gstreamer-sharp/glue/clock.c: Added gstsharp_gst_clock_get_time_none
    and gstsharp_gst_clock_time_is_valid

    * gstreamer-sharp/Clock.custom: Added bindings for new clock glue
    and renamed GstNSecond to NSecond (and friends)

git-svn-id: svn://anonsvn.mono-project.com/source/branches/abock/gstreamer-sharp@62535 e3ebcda4-bce8-0310-ba0a-eca2169e7518

ChangeLog
gstreamer-sharp.mdp
gstreamer-sharp.mds
gstreamer-sharp/Clock.custom
gstreamer-sharp/glue/clock.c
sample/DecodeBinTranscoder.cs
source/gstreamer-sharp-source.xml

index e05fd257d2ac1936ecea17e93fb4b30449c20a17..c2584e468c4fc5a28e448f55d43fcf86b04d3e99 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,19 @@
+2006-07-12  Aaron Bockover  <aaron@abock.org>
+
+       * gstreamer-sharp.mds:
+       * gstreamer-sharp.mdp: Updated MonoDevelo project/solution
+
+       * source/gstreamer-sharp-source.xml: Cleaned up a bit
+
+       * sample/DecodeBinTranscoder.cs: Updated to reflect renaming of
+       Clock.GstSecond to Clock.Second, etc.
+
+       * gstreamer-sharp/glue/clock.c: Added gstsharp_gst_clock_get_time_none
+       and gstsharp_gst_clock_time_is_valid
+
+       * gstreamer-sharp/Clock.custom: Added bindings for new clock glue
+       and renamed GstNSecond to NSecond (and friends)
+
 2006-06-21  Khaled Mohammed <khaled.mohammed@gmail.com>
 
        * gstreamer-sharp/DynamicSignalHandlerGenerator.cs: This class is 
index e37560b394c632c81552c1165b50bc438028013b..08c59063da020645e16b7e383d6ec521703887a2 100644 (file)
@@ -1,18 +1,19 @@
-<Project name="gstreamer-sharp" fileversion="2.0" language="C#" ctype="DotNetProject">
+<Project name="gstreamer-sharp" fileversion="2.0" language="C#" clr-version="Net_1_1" ctype="DotNetProject">
   <Configurations active="Debug">
     <Configuration name="Debug" ctype="DotNetProjectConfiguration">
       <Output directory="./bin/Debug" assembly="gstreamer-sharp" />
       <Build debugmode="True" target="Exe" />
-      <Execution runwithwarnings="True" consolepause="True" runtime="MsNet" />
+      <Execution runwithwarnings="True" consolepause="True" runtime="MsNet" clr-version="Net_1_1" />
       <CodeGeneration compiler="Csc" warninglevel="4" optimize="True" unsafecodeallowed="False" generateoverflowchecks="True" generatexmldocumentation="False" ctype="CSharpCompilerParameters" />
     </Configuration>
     <Configuration name="Release" ctype="DotNetProjectConfiguration">
       <Output directory="./bin/Release" assembly="gstreamer-sharp" />
       <Build debugmode="False" target="Exe" />
-      <Execution runwithwarnings="True" consolepause="True" runtime="MsNet" />
+      <Execution runwithwarnings="True" consolepause="True" runtime="MsNet" clr-version="Net_1_1" />
       <CodeGeneration compiler="Csc" warninglevel="4" optimize="True" unsafecodeallowed="False" generateoverflowchecks="True" generatexmldocumentation="False" ctype="CSharpCompilerParameters" />
     </Configuration>
   </Configurations>
+  <DeployTargets />
   <DeploymentInformation strategy="File">
     <excludeFiles />
   </DeploymentInformation>
@@ -38,6 +39,8 @@
     <File name="./gstreamer-sharp/plugins-base/DecodeBin.cs" subtype="Code" buildaction="Compile" />
     <File name="./sample/PlayBinPlayer.cs" subtype="Code" buildaction="Compile" />
     <File name="./sample/DecodeBinTranscoder.cs" subtype="Code" buildaction="Compile" />
+    <File name="./gstreamer-sharp/DynamicSignalHandlerGenerator.cs" subtype="Code" buildaction="Compile" />
+    <File name="./gstreamer-sharp/DynamicSignalMarshalHandler.cs" subtype="Code" buildaction="Compile" />
   </Contents>
   <References />
 </Project>
\ No newline at end of file
index 60fb1bac66da0097b62d2a1d29ef56ccf8590b08..a91a1e054e0961eb7b23c949617d814d96ae851c 100644 (file)
@@ -1,12 +1,13 @@
 <Combine name="gstreamer-sharp" fileversion="2.0">
   <Configurations active="Debug">
     <Configuration name="Debug" ctype="CombineConfiguration">
-      <Entry configuration="Debug" build="True" name="gstreamer-sharp" />
+      <Entry build="True" name="gstreamer-sharp" configuration="Debug" />
     </Configuration>
     <Configuration name="Release" ctype="CombineConfiguration">
-      <Entry configuration="Debug" build="True" name="gstreamer-sharp" />
+      <Entry build="True" name="gstreamer-sharp" configuration="Debug" />
     </Configuration>
   </Configurations>
+  <DeployTargets />
   <StartMode startupentry="gstreamer-sharp" single="True">
     <Execute type="None" entry="gstreamer-sharp" />
   </StartMode>
index 71d568be7c432762c70f6fdd258ba5dcaa8430b9..e547ee8e2e43a6a2c8e4af1a167b550e8fd8c1ea 100644 (file)
@@ -2,19 +2,33 @@
     [DllImport("gstsharpglue-0.10")]
     private extern static ulong gstsharp_gst_clock_get_gst_second();
 
-    public static readonly ulong GstSecond = gstsharp_gst_clock_get_gst_second();
+    public static readonly ulong Second = gstsharp_gst_clock_get_gst_second();
 
     [DllImport("gstsharpglue-0.10")]
     private extern static ulong gstsharp_gst_clock_get_gst_msecond();
 
-    public static readonly ulong GstMSecond = gstsharp_gst_clock_get_gst_second();
+    public static readonly ulong MSecond = gstsharp_gst_clock_get_gst_second();
 
     [DllImport("gstsharpglue-0.10")]
     private extern static ulong gstsharp_gst_clock_get_gst_usecond();
 
-    public static readonly ulong GstUSecond = gstsharp_gst_clock_get_gst_second();
+    public static readonly ulong USecond = gstsharp_gst_clock_get_gst_second();
 
     [DllImport("gstsharpglue-0.10")]
     private extern static ulong gstsharp_gst_clock_get_gst_nsecond();
 
-    public static readonly ulong GstNSecond = gstsharp_gst_clock_get_gst_second();
+    public static readonly ulong NSecond = gstsharp_gst_clock_get_gst_second();
+
+    [DllImport("gstsharpglue-0.10")]
+    private extern static ulong gstsharp_gst_clock_get_clock_time_none();
+    
+    public static readonly ulong TimeNone = gstsharp_gst_clock_get_clock_time_none();
+    
+    [DllImport("gstsharpglue-0.10")]
+    private extern static bool gstsharp_gst_clock_time_is_valid(ulong time);
+    
+    public static bool TimeIsValid(ulong time)
+    {
+        return gstsharp_gst_clock_time_is_valid(time);
+    }
+    
index 83f89eef96dd9527d4c3ae3f6c4fb6ed8914983d..d6bf7046cbc47726e8d3f80728afdb4323e6c01a 100644 (file)
@@ -20,3 +20,14 @@ guint64 gstsharp_gst_clock_get_gst_nsecond()
 {
     return GST_NSECOND;
 }
+
+guint64 gstsharp_gst_clock_get_time_none()
+{
+       return GST_CLOCK_TIME_NONE;
+}
+
+gboolean gstsharp_gst_clock_time_is_valid(GstClockTime time)
+{
+       return GST_CLOCK_TIME_IS_VALID(time);
+}
+
index b12285e4bcf838eb02524af60051c76b94c62d35..ba14c20188e03cb2f6f3b929cfbb9c95b8266757 100644 (file)
@@ -184,8 +184,8 @@ public class DecodeBinTranscoder : IDisposable
         
         transcoder.Progress += delegate(object o, ProgressArgs args) {
             Console.Write("\rEncoding: {0} / {1} ({2:00.00}%) ", 
-                new TimeSpan((args.Position / (long) Clock.GstSecond) * TimeSpan.TicksPerSecond), 
-                new TimeSpan((args.Duration / (long) Clock.GstSecond) * TimeSpan.TicksPerSecond),
+                new TimeSpan((args.Position / (long) Clock.Second) * TimeSpan.TicksPerSecond), 
+                new TimeSpan((args.Duration / (long) Clock.Second) * TimeSpan.TicksPerSecond),
                 ((double)args.Position / (double)args.Duration) * 100.0);
         };
         
index 2ca15aab5deaa56ebb49a0389e8f899c3c8d1c42..ab516766942fe24d3b35d847c621eff33dbf68ad 100644 (file)
@@ -3,29 +3,16 @@
     <library name="gstreamer-0.10.dll">
       <namespace name="Gst">
         <dir>gstreamer-0.10.3/gst</dir>
-       <!--
-        <dir>gstreamer-0.10.3/gst/autoplug</dir>
-       -->
         <exclude>gstreamer-0.10.3/gst/gstinterface.h</exclude>
         <exclude>gstreamer-0.10.3/gst/gsturi.h</exclude>
       </namespace>
-    </library>
-    <!--
-    <library name="gstplay-0.8">
-      <namespace name="Gst">
-        <dir>gst-plugins-0.8.7/gst-libs/gst/play</dir>
-      </namespace>
-    </library>
-    <library name="gstinterfaces-0.8">
+<!--  
       <namespace name="Gst">
-        <dir>gst-plugins-0.8.7/gst-libs/gst/colorbalance</dir>
-        <dir>gst-plugins-0.8.7/gst-libs/gst/mixer/</dir>
-        <dir>gst-plugins-0.8.7/gst-libs/gst/navigation</dir>
-        <dir>gst-plugins-0.8.7/gst-libs/gst/propertyprobe</dir>
-        <dir>gst-plugins-0.8.7/gst-libs/gst/tuner</dir>
-        <dir>gst-plugins-0.8.7/gst-libs/gst/xoverlay</dir>
+        <file>gst-plugins-base-0.10.3/gst-libs/gst/interfaces/xoverlay.h</file>
+        <dir>gst-plugins-base-0.10.3/gst-libs/gst/video</dir>
+        <exclude>gst-plugins-base-0.10.3/gst-libs/gst/video/video.h</exclude>
       </namespace>
+-->
     </library>
-    -->
   </api>
 </gapi-parser-input>