Author: bnickel
Date: 2007-05-06 23:25:10 -0400 (Sun, 06 May 2007)
New Revision: 76805

Modified:
   trunk/taglib-sharp/ChangeLog
   trunk/taglib-sharp/docs/en/TagLib.Id3v2/FrameFactory+FrameCreator.xml
   trunk/taglib-sharp/docs/en/TagLib.Id3v2/TextIdentificationFrame.xml
   trunk/taglib-sharp/docs/en/TagLib.Mpeg4/Box.xml
   trunk/taglib-sharp/docs/en/TagLib.Mpeg4/BoxFactory.xml
   trunk/taglib-sharp/docs/en/TagLib.Mpeg4/BoxTypes.xml
   trunk/taglib-sharp/docs/en/TagLib.Ogg/Codec+CodecProvider.xml
   trunk/taglib-sharp/docs/en/TagLib.xml
   trunk/taglib-sharp/docs/en/TagLib/ByteVector.xml
   trunk/taglib-sharp/docs/en/TagLib/File+FileTypeResolver.xml
   trunk/taglib-sharp/docs/en/TagLib/FileTypes.xml
   trunk/taglib-sharp/docs/en/TagLib/Genres.xml
   trunk/taglib-sharp/src/TagLib/ByteVector.cs
   trunk/taglib-sharp/src/TagLib/Id3v2/Frames/AttachedPictureFrame.cs
   trunk/taglib-sharp/src/TagLib/Id3v2/Frames/GeneralEncapsulatedObjectFrame.cs
   trunk/taglib-sharp/src/TagLib/Id3v2/Frames/PrivateFrame.cs
   trunk/taglib-sharp/src/TagLib/Id3v2/Frames/RelativeVolumeFrame.cs
   trunk/taglib-sharp/src/TagLib/Id3v2/Frames/TextIdentificationFrame.cs
   trunk/taglib-sharp/src/TagLib/Id3v2/Frames/UniqueFileIdentifierFrame.cs
   trunk/taglib-sharp/src/TagLib/Riff/BitmapInfoHeader.cs
Log:
2007-05-04  Brian Nickel <[EMAIL PROTECTED]>

        * src/TagLib/Id3v2/Frames/RelativeVolumeFrame.cs:
        * src/TagLib/Id3v2/Frames/AttachedPictureFrame.cs:
        * src/TagLib/Id3v2/Frames/UniqueFileIdentifierFrame.cs:
        * src/TagLib/Id3v2/Frames/PrivateFrame.cs:
        * src/TagLib/Id3v2/Frames/GeneralEncapsulatedObjectFrame.cs:
        * src/TagLib/Id3v2/Frames/TextIdentificationFrame.cs: Added better type
        checking in "Get"
        * src/TagLib/ByteVector.cs: Fixed ToStrings align problem from previous
        revision.
        * docs/en/*/*.xml: Updated.


Modified: trunk/taglib-sharp/ChangeLog
===================================================================
--- trunk/taglib-sharp/ChangeLog        2007-05-06 23:27:26 UTC (rev 76804)
+++ trunk/taglib-sharp/ChangeLog        2007-05-07 03:25:10 UTC (rev 76805)
@@ -1,5 +1,18 @@
 2007-05-04  Brian Nickel <[EMAIL PROTECTED]>
 
+       * src/TagLib/Id3v2/Frames/RelativeVolumeFrame.cs:
+       * src/TagLib/Id3v2/Frames/AttachedPictureFrame.cs:
+       * src/TagLib/Id3v2/Frames/UniqueFileIdentifierFrame.cs:
+       * src/TagLib/Id3v2/Frames/PrivateFrame.cs:
+       * src/TagLib/Id3v2/Frames/GeneralEncapsulatedObjectFrame.cs:
+       * src/TagLib/Id3v2/Frames/TextIdentificationFrame.cs: Added better type
+       checking in "Get"
+       * src/TagLib/ByteVector.cs: Fixed ToStrings align problem from previous
+       revision.
+       * docs/en/*/*.xml: Updated.
+
+2007-05-04  Brian Nickel <[EMAIL PROTECTED]>
+
        * src/TagLib/Riff/AviStream.cs:
        * src/TagLib/Riff/BitmapInfoHeader.cs:
        * src/TagLib/Riff/WaveFormatEx.cs:

Modified: trunk/taglib-sharp/docs/en/TagLib/ByteVector.xml
===================================================================
--- trunk/taglib-sharp/docs/en/TagLib/ByteVector.xml    2007-05-06 23:27:26 UTC 
(rev 76804)
+++ trunk/taglib-sharp/docs/en/TagLib/ByteVector.xml    2007-05-07 03:25:10 UTC 
(rev 76805)
@@ -1,5 +1,5 @@
 <Type Name="ByteVector" FullName="TagLib.ByteVector">
-  <TypeSignature Language="C#" Value="public class ByteVector : 
System.Collections.Generic.IList&lt;byte&gt;, 
System.IComparable&lt;TagLib.ByteVector&gt;" />
+  <TypeSignature Language="C#" Value="public class ByteVector : 
IComparable&lt;TagLib.ByteVector&gt;, 
System.Collections.Generic.IList&lt;byte&gt;" />
   <AssemblyInfo>
     <AssemblyName>taglib-sharp</AssemblyName>
     <AssemblyVersion>1.9.0.0</AssemblyVersion>

Modified: trunk/taglib-sharp/docs/en/TagLib/File+FileTypeResolver.xml
===================================================================
--- trunk/taglib-sharp/docs/en/TagLib/File+FileTypeResolver.xml 2007-05-06 
23:27:26 UTC (rev 76804)
+++ trunk/taglib-sharp/docs/en/TagLib/File+FileTypeResolver.xml 2007-05-07 
03:25:10 UTC (rev 76805)
@@ -1,5 +1,5 @@
 <Type Name="File+FileTypeResolver" FullName="TagLib.File+FileTypeResolver">
-  <TypeSignature Language="C#" Value="public delegate TagLib.File 
File.FileTypeResolver(string path, TagLib.ReadStyle style);" />
+  <TypeSignature Language="C#" Value="public delegate TagLib.File 
File.FileTypeResolver(string path, ReadStyle style);" />
   <AssemblyInfo>
     <AssemblyName>taglib-sharp</AssemblyName>
     <AssemblyVersion>1.9.0.0</AssemblyVersion>

Modified: trunk/taglib-sharp/docs/en/TagLib/FileTypes.xml
===================================================================
--- trunk/taglib-sharp/docs/en/TagLib/FileTypes.xml     2007-05-06 23:27:26 UTC 
(rev 76804)
+++ trunk/taglib-sharp/docs/en/TagLib/FileTypes.xml     2007-05-07 03:25:10 UTC 
(rev 76805)
@@ -1,5 +1,5 @@
 <Type Name="FileTypes" FullName="TagLib.FileTypes">
-  <TypeSignature Language="C#" Value="public abstract sealed class FileTypes" 
/>
+  <TypeSignature Language="C#" Value="public static class FileTypes" />
   <AssemblyInfo>
     <AssemblyName>taglib-sharp</AssemblyName>
     <AssemblyVersion>1.9.0.0</AssemblyVersion>

Modified: trunk/taglib-sharp/docs/en/TagLib/Genres.xml
===================================================================
--- trunk/taglib-sharp/docs/en/TagLib/Genres.xml        2007-05-06 23:27:26 UTC 
(rev 76804)
+++ trunk/taglib-sharp/docs/en/TagLib/Genres.xml        2007-05-07 03:25:10 UTC 
(rev 76805)
@@ -1,5 +1,5 @@
 <Type Name="Genres" FullName="TagLib.Genres">
-  <TypeSignature Language="C#" Value="public abstract sealed class Genres" />
+  <TypeSignature Language="C#" Value="public static class Genres" />
   <AssemblyInfo>
     <AssemblyName>taglib-sharp</AssemblyName>
     <AssemblyVersion>1.9.0.0</AssemblyVersion>

Modified: trunk/taglib-sharp/docs/en/TagLib.Id3v2/FrameFactory+FrameCreator.xml
===================================================================
--- trunk/taglib-sharp/docs/en/TagLib.Id3v2/FrameFactory+FrameCreator.xml       
2007-05-06 23:27:26 UTC (rev 76804)
+++ trunk/taglib-sharp/docs/en/TagLib.Id3v2/FrameFactory+FrameCreator.xml       
2007-05-07 03:25:10 UTC (rev 76805)
@@ -1,5 +1,5 @@
 <Type Name="FrameFactory+FrameCreator" 
FullName="TagLib.Id3v2.FrameFactory+FrameCreator">
-  <TypeSignature Language="C#" Value="public delegate TagLib.Id3v2.Frame 
FrameFactory.FrameCreator(TagLib.ByteVector data, int offset, 
TagLib.Id3v2.FrameHeader header, uint version);" />
+  <TypeSignature Language="C#" Value="public delegate TagLib.Id3v2.Frame 
FrameFactory.FrameCreator(ByteVector data, int offset, FrameHeader header, uint 
version);" />
   <AssemblyInfo>
     <AssemblyName>taglib-sharp</AssemblyName>
     <AssemblyVersion>1.9.0.0</AssemblyVersion>

Modified: trunk/taglib-sharp/docs/en/TagLib.Id3v2/TextIdentificationFrame.xml
===================================================================
--- trunk/taglib-sharp/docs/en/TagLib.Id3v2/TextIdentificationFrame.xml 
2007-05-06 23:27:26 UTC (rev 76804)
+++ trunk/taglib-sharp/docs/en/TagLib.Id3v2/TextIdentificationFrame.xml 
2007-05-07 03:25:10 UTC (rev 76805)
@@ -40,7 +40,7 @@
       <ReturnValue><ReturnType>TagLib.StringType</ReturnType></ReturnValue>
       <Docs><summary>To be added.</summary><value>To be 
added.</value><remarks>To be added.</remarks></Docs>
     </Member>
-  </Members>
+  <Member MemberName="Get"><MemberSignature Language="C#" Value="public static 
TagLib.Id3v2.TextIdentificationFrame Get (TagLib.Id3v2.Tag tag, 
TagLib.ByteVector type, TagLib.StringType encoding, bool create);" 
/><MemberType>Method</MemberType><ReturnValue><ReturnType>TagLib.Id3v2.TextIdentificationFrame</ReturnType></ReturnValue><Parameters><Parameter
 Name="tag" Type="TagLib.Id3v2.Tag" /><Parameter Name="type" 
Type="TagLib.ByteVector" /><Parameter Name="encoding" Type="TagLib.StringType" 
/><Parameter Name="create" Type="System.Boolean" /></Parameters><Docs><param 
name="tag">To be added.</param><param name="type">To be added.</param><param 
name="encoding">To be added.</param><param name="create">To be 
added.</param><summary>To be added.</summary><returns>To be 
added.</returns><remarks>To be added.</remarks></Docs></Member><Member 
MemberName="Get"><MemberSignature Language="C#" Value="public static 
TagLib.Id3v2.TextIdentificationFrame Get (TagLib.Id3v2.Tag tag, TagLib.ByteVect
 or type, bool create);" 
/><MemberType>Method</MemberType><ReturnValue><ReturnType>TagLib.Id3v2.TextIdentificationFrame</ReturnType></ReturnValue><Parameters><Parameter
 Name="tag" Type="TagLib.Id3v2.Tag" /><Parameter Name="type" 
Type="TagLib.ByteVector" /><Parameter Name="create" Type="System.Boolean" 
/></Parameters><Docs><param name="tag">To be added.</param><param 
name="type">To be added.</param><param name="create">To be 
added.</param><summary>To be added.</summary><returns>To be 
added.</returns><remarks>To be added.</remarks></Docs></Member><Member 
MemberName="Get"><MemberSignature Language="C#" Value="public static 
TagLib.Id3v2.TextIdentificationFrame Get (TagLib.Id3v2.Tag tag, 
TagLib.ByteVector type);" 
/><MemberType>Method</MemberType><ReturnValue><ReturnType>TagLib.Id3v2.TextIdentificationFrame</ReturnType></ReturnValue><Parameters><Parameter
 Name="tag" Type="TagLib.Id3v2.Tag" /><Parameter Name="type" 
Type="TagLib.ByteVector" /></Parameters><Docs><param name="tag">To b
 e added.</param><param name="type">To be added.</param><summary>To be 
added.</summary><returns>To be added.</returns><remarks>To be 
added.</remarks></Docs></Member></Members>
   <Docs>
     <summary>To be added.</summary>
     <remarks>To be added.</remarks>

Modified: trunk/taglib-sharp/docs/en/TagLib.Mpeg4/Box.xml
===================================================================
--- trunk/taglib-sharp/docs/en/TagLib.Mpeg4/Box.xml     2007-05-06 23:27:26 UTC 
(rev 76804)
+++ trunk/taglib-sharp/docs/en/TagLib.Mpeg4/Box.xml     2007-05-07 03:25:10 UTC 
(rev 76805)
@@ -1,5 +1,5 @@
 <Type Name="Box" FullName="TagLib.Mpeg4.Box">
-  <TypeSignature Language="C#" Value="public class Box : 
System.IComparable&lt;TagLib.Mpeg4.Box&gt;" />
+  <TypeSignature Language="C#" Value="public class Box : 
IComparable&lt;TagLib.Mpeg4.Box&gt;" />
   <AssemblyInfo>
     <AssemblyName>taglib-sharp</AssemblyName>
     <AssemblyVersion>1.9.0.0</AssemblyVersion>

Modified: trunk/taglib-sharp/docs/en/TagLib.Mpeg4/BoxFactory.xml
===================================================================
--- trunk/taglib-sharp/docs/en/TagLib.Mpeg4/BoxFactory.xml      2007-05-06 
23:27:26 UTC (rev 76804)
+++ trunk/taglib-sharp/docs/en/TagLib.Mpeg4/BoxFactory.xml      2007-05-07 
03:25:10 UTC (rev 76805)
@@ -1,5 +1,5 @@
 <Type Name="BoxFactory" FullName="TagLib.Mpeg4.BoxFactory">
-  <TypeSignature Language="C#" Value="public abstract sealed class BoxFactory" 
/>
+  <TypeSignature Language="C#" Value="public static class BoxFactory" />
   <AssemblyInfo>
     <AssemblyName>taglib-sharp</AssemblyName>
     <AssemblyVersion>1.9.0.0</AssemblyVersion>

Modified: trunk/taglib-sharp/docs/en/TagLib.Mpeg4/BoxTypes.xml
===================================================================
--- trunk/taglib-sharp/docs/en/TagLib.Mpeg4/BoxTypes.xml        2007-05-06 
23:27:26 UTC (rev 76804)
+++ trunk/taglib-sharp/docs/en/TagLib.Mpeg4/BoxTypes.xml        2007-05-07 
03:25:10 UTC (rev 76805)
@@ -1,5 +1,5 @@
 <Type Name="BoxTypes" FullName="TagLib.Mpeg4.BoxTypes">
-  <TypeSignature Language="C#" Value="public abstract sealed class BoxTypes" />
+  <TypeSignature Language="C#" Value="public static class BoxTypes" />
   <AssemblyInfo>
     <AssemblyName>taglib-sharp</AssemblyName>
     <AssemblyVersion>1.9.0.0</AssemblyVersion>

Modified: trunk/taglib-sharp/docs/en/TagLib.Ogg/Codec+CodecProvider.xml
===================================================================
--- trunk/taglib-sharp/docs/en/TagLib.Ogg/Codec+CodecProvider.xml       
2007-05-06 23:27:26 UTC (rev 76804)
+++ trunk/taglib-sharp/docs/en/TagLib.Ogg/Codec+CodecProvider.xml       
2007-05-07 03:25:10 UTC (rev 76805)
@@ -1,5 +1,5 @@
 <Type Name="Codec+CodecProvider" FullName="TagLib.Ogg.Codec+CodecProvider">
-  <TypeSignature Language="C#" Value="public delegate TagLib.Ogg.Codec 
Codec.CodecProvider(TagLib.ByteVector packet);" />
+  <TypeSignature Language="C#" Value="public delegate TagLib.Ogg.Codec 
Codec.CodecProvider(ByteVector packet);" />
   <AssemblyInfo>
     <AssemblyName>taglib-sharp</AssemblyName>
     <AssemblyVersion>1.9.0.0</AssemblyVersion>

Modified: trunk/taglib-sharp/docs/en/TagLib.xml
===================================================================
--- trunk/taglib-sharp/docs/en/TagLib.xml       2007-05-06 23:27:26 UTC (rev 
76804)
+++ trunk/taglib-sharp/docs/en/TagLib.xml       2007-05-07 03:25:10 UTC (rev 
76805)
@@ -1,6 +1,6 @@
 <Namespace Name="TagLib">
   <Docs>
-    <summary>To be added.</summary>
-    <remarks>To be added.</remarks>
+    <summary>TagLib provides a generic interface for reading media properties 
and editing tags on different audio and video files.</summary>
+    <remarks>The most straightforward way to read a file is through <see 
cref="M:TagLib.File.Create(System.String)" />, which does type detection to 
create the correct <see cref="T:TagLib.File" />.</remarks>
   </Docs>
 </Namespace>

Modified: trunk/taglib-sharp/src/TagLib/ByteVector.cs
===================================================================
--- trunk/taglib-sharp/src/TagLib/ByteVector.cs 2007-05-06 23:27:26 UTC (rev 
76804)
+++ trunk/taglib-sharp/src/TagLib/ByteVector.cs 2007-05-07 03:25:10 UTC (rev 
76805)
@@ -510,7 +510,7 @@
                   l.Add (s);
                }
                
-               pos += 2;
+               pos += align;
             }
             return l.ToArray ();
         }

Modified: trunk/taglib-sharp/src/TagLib/Id3v2/Frames/AttachedPictureFrame.cs
===================================================================
--- trunk/taglib-sharp/src/TagLib/Id3v2/Frames/AttachedPictureFrame.cs  
2007-05-06 23:27:26 UTC (rev 76804)
+++ trunk/taglib-sharp/src/TagLib/Id3v2/Frames/AttachedPictureFrame.cs  
2007-05-07 03:25:10 UTC (rev 76805)
@@ -79,9 +79,9 @@
       
       public static AttachedPictureFrame Get (Tag tag, string description, 
bool create)
       {
-         foreach (AttachedPictureFrame f in tag.GetFrames ("APIC"))
-            if (f != null && f.Description == description)
-               return f;
+         foreach (Frame f in tag.GetFrames ("APIC"))
+            if (f is AttachedPictureFrame && (f as 
AttachedPictureFrame).Description == description)
+               return f as AttachedPictureFrame;
          
          if (!create) return null;
          

Modified: 
trunk/taglib-sharp/src/TagLib/Id3v2/Frames/GeneralEncapsulatedObjectFrame.cs
===================================================================
--- 
trunk/taglib-sharp/src/TagLib/Id3v2/Frames/GeneralEncapsulatedObjectFrame.cs    
    2007-05-06 23:27:26 UTC (rev 76804)
+++ 
trunk/taglib-sharp/src/TagLib/Id3v2/Frames/GeneralEncapsulatedObjectFrame.cs    
    2007-05-07 03:25:10 UTC (rev 76805)
@@ -73,9 +73,9 @@
       
       public static GeneralEncapsulatedObjectFrame Get (Tag tag, string 
description, bool create)
       {
-         foreach (GeneralEncapsulatedObjectFrame f in tag.GetFrames ("GEOB"))
-            if (f != null && f.Description == description)
-               return f;
+         foreach (Frame f in tag.GetFrames ("GEOB"))
+            if (f is GeneralEncapsulatedObjectFrame && (f as 
GeneralEncapsulatedObjectFrame).Description == description)
+               return f as GeneralEncapsulatedObjectFrame;
          
          if (!create) return null;
          

Modified: trunk/taglib-sharp/src/TagLib/Id3v2/Frames/PrivateFrame.cs
===================================================================
--- trunk/taglib-sharp/src/TagLib/Id3v2/Frames/PrivateFrame.cs  2007-05-06 
23:27:26 UTC (rev 76804)
+++ trunk/taglib-sharp/src/TagLib/Id3v2/Frames/PrivateFrame.cs  2007-05-07 
03:25:10 UTC (rev 76805)
@@ -61,9 +61,9 @@
       
       public static PrivateFrame Get (Tag tag, string owner, bool create)
       {
-         foreach (PrivateFrame f in tag.GetFrames ("PRIV"))
-            if (f != null && f.Owner == owner)
-               return f;
+         foreach (Frame f in tag.GetFrames ("PRIV"))
+            if (f is PrivateFrame && (f as PrivateFrame).Owner == owner)
+               return f as PrivateFrame;
          
          if (!create) return null;
          

Modified: trunk/taglib-sharp/src/TagLib/Id3v2/Frames/RelativeVolumeFrame.cs
===================================================================
--- trunk/taglib-sharp/src/TagLib/Id3v2/Frames/RelativeVolumeFrame.cs   
2007-05-06 23:27:26 UTC (rev 76804)
+++ trunk/taglib-sharp/src/TagLib/Id3v2/Frames/RelativeVolumeFrame.cs   
2007-05-07 03:25:10 UTC (rev 76805)
@@ -128,9 +128,9 @@
       
       public static RelativeVolumeFrame Get (Tag tag, string identification, 
bool create)
       {
-         foreach (RelativeVolumeFrame f in tag.GetFrames ("RVA2"))
-            if (f != null && f.Identification == identification)
-               return f;
+         foreach (Frame f in tag.GetFrames ("RVA2"))
+            if (f is RelativeVolumeFrame && (f as 
RelativeVolumeFrame).Identification == identification)
+               return f as RelativeVolumeFrame;
          
          if (!create) return null;
          

Modified: trunk/taglib-sharp/src/TagLib/Id3v2/Frames/TextIdentificationFrame.cs
===================================================================
--- trunk/taglib-sharp/src/TagLib/Id3v2/Frames/TextIdentificationFrame.cs       
2007-05-06 23:27:26 UTC (rev 76804)
+++ trunk/taglib-sharp/src/TagLib/Id3v2/Frames/TextIdentificationFrame.cs       
2007-05-07 03:25:10 UTC (rev 76805)
@@ -68,6 +68,30 @@
       }
       
       
+      public static TextIdentificationFrame Get (Tag tag, ByteVector type, 
StringType encoding, bool create)
+      {
+         foreach (Frame f in tag.GetFrames (type))
+            if (f is TextIdentificationFrame)
+               return f as TextIdentificationFrame;
+         
+         if (!create)
+            return null;
+         
+         TextIdentificationFrame frame = new TextIdentificationFrame (type, 
encoding);
+         tag.AddFrame (frame);
+         return frame;
+      }
+      
+      public static TextIdentificationFrame Get (Tag tag, ByteVector type, 
bool create)
+      {
+         return Get (tag, type, Tag.DefaultEncoding, create);
+      }
+      
+      public static TextIdentificationFrame Get (Tag tag, ByteVector type)
+      {
+         return Get (tag, type, false);
+      }
+      
       
//////////////////////////////////////////////////////////////////////////
       // public properties
       
//////////////////////////////////////////////////////////////////////////
@@ -92,8 +116,8 @@
          text_encoding = (StringType) data [0];
          field_list.Clear ();
          
-         if (version > 3)
-            field_list.Add (data.ToString (text_encoding, 1).Split (new char 
[]{'\0'}));
+         if (version > 3 || FrameId == "TXXX")
+            field_list.Add (data.ToStrings (text_encoding, 1));
          else
          {
             string value = data.ToString (text_encoding, 1);
@@ -217,9 +241,9 @@
       
       public static UserTextIdentificationFrame Get (Tag tag, string 
description, StringType type, bool create)
       {
-         foreach (UserTextIdentificationFrame f in tag.GetFrames ("TXXX"))
-            if (f != null && f.Description == description)
-               return f;
+         foreach (Frame f in tag.GetFrames ("TXXX"))
+            if (f is UserTextIdentificationFrame && (f as 
UserTextIdentificationFrame).Description == description)
+               return f as UserTextIdentificationFrame;
          
          if (!create)
             return null;

Modified: 
trunk/taglib-sharp/src/TagLib/Id3v2/Frames/UniqueFileIdentifierFrame.cs
===================================================================
--- trunk/taglib-sharp/src/TagLib/Id3v2/Frames/UniqueFileIdentifierFrame.cs     
2007-05-06 23:27:26 UTC (rev 76804)
+++ trunk/taglib-sharp/src/TagLib/Id3v2/Frames/UniqueFileIdentifierFrame.cs     
2007-05-07 03:25:10 UTC (rev 76805)
@@ -53,9 +53,9 @@
       
       public static UniqueFileIdentifierFrame Get (Tag tag, string owner, bool 
create)
       {
-         foreach (UniqueFileIdentifierFrame f in tag.GetFrames ("UFID"))
-            if (f != null && f.Owner == owner)
-               return f;
+         foreach (Frame f in tag.GetFrames ("UFID"))
+            if (f is UniqueFileIdentifierFrame && (f as 
UniqueFileIdentifierFrame).Owner == owner)
+               return f as UniqueFileIdentifierFrame;
          
          if (!create) return null;
          

Modified: trunk/taglib-sharp/src/TagLib/Riff/BitmapInfoHeader.cs
===================================================================
--- trunk/taglib-sharp/src/TagLib/Riff/BitmapInfoHeader.cs      2007-05-06 
23:27:26 UTC (rev 76804)
+++ trunk/taglib-sharp/src/TagLib/Riff/BitmapInfoHeader.cs      2007-05-07 
03:25:10 UTC (rev 76805)
@@ -204,29 +204,6 @@
 MVC2   Nokia Mobile Phones     Nokia MVC video codec.  06-Jan-99
 MVC9   Nokia Mobile Phones     Nokia MVC video codec.  06-Jan-99
 NTN1   Nogatech Ltd.   Nogatech video compression 1.   06-Jan-98
-NVDS   NVIDIA Corporation      Not specified.  17-Sep-01
-NVHS   NVIDIA Corporation      Not specified.  02-Apr-01
-NVHU   NVIDIA Corporation      Not specified.  02-Apr-01
-NVS0   NVIDIA Corporation      Not specified.  29-Apr-99
-NVS1   NVIDIA Corporation      Not specified.  29-Apr-99
-NVS2   NVIDIA Corporation      Not specified.  29-Apr-99
-NVS3   NVIDIA Corporation      Not specified.  29-Apr-99
-NVS4   NVIDIA Corporation      Not specified.  29-Apr-99
-NVS5   NVIDIA Corporation      Not specified.  29-Apr-99
-NVS6   NVIDIA Corporation      Not specified.  29-Apr-99
-NVS7   NVIDIA Corporation      Not specified.  29-Apr-99
-NVS8   NVIDIA Corporation      Not specified.  29-Apr-99
-NVS9   NVIDIA Corporation      Not specified.  29-Apr-99
-NVT0   NVIDIA Corporation      Not specified.  29-Apr-99
-NVT1   NVIDIA Corporation      Not specified.  23-Mar-99
-NVT2   NVIDIA Corporation      Not specified.  23-Mar-99
-NVT3   NVIDIA Corporation      Not specified.  23-Mar-99
-NVT4   NVIDIA Corporation      Not specified.  23-Mar-99
-NVT5   NVIDIA Corporation      Not specified.  23-Mar-99
-NVT6   NVIDIA Corporation      Not specified.  23-Mar-99
-NVT7   NVIDIA Corporation      Not specified.  23-Mar-99
-NVT8   NVIDIA Corporation      Not specified.  23-Mar-99
-NVT9   NVIDIA Corporation      Not specified.  23-Mar-99
 NY12   Nogatech Ltd.   Nogatech YUV 12 format.         28-Jun-99
 NYUV   Nogatech Ltd.   Nogatech YUV 422 format.        28-Jun-99
 pcl2   Pinnacle Systems, Inc.  Pinnacle RL video codec.        08-Dec-98
@@ -263,14 +240,6 @@
 V422   VITEC Multimedia        24-bit YUV 4:2:2 format (CCIR 601). For this 
format, 2 consecutive pixels are represented by a 32-bit (4-byte) Y1UY2V color 
value.      13-Dec-93
 V655   VITEC Multimedia        16-bit YUV 4:2:2 format.        13-Dec-93
 VCR1   ATI Technologies Inc.   ATI VCR 1.0.    23-Oct-97
-VCR2   ATI Technologies Inc.   Not specified.  23-Oct-97
-VCR3   ATI Technologies Inc.   Not specified.  23-Oct-97
-VCR4   ATI Technologies Inc.   Not specified.  23-Oct-97
-VCR5   ATI Technologies Inc.   Not specified.  23-Oct-97
-VCR6   ATI Technologies Inc.   Not specified.  23-Oct-97
-VCR7   ATI Technologies Inc.   Not specified.  23-Oct-97
-VCR8   ATI Technologies Inc.   Not specified.  23-Oct-97
-VCR9   ATI Technologies Inc.   Not specified.  23-Oct-97
 VCWV   VideoCon        VideoCon wavelet.       06-Jun-00
 VDCT   VITEC Multimedia        Video Maker Pro DIB.    Not specified.
 VIDS   VITEC Multimedia        YUV 4:2:2 CCIR 601 for v422.    Not specified.
@@ -283,15 +252,6 @@
 VQC2   ViewQuest Technologies Inc.     0x32435156.     13-Nov-98
 VQJP   ViewQuest Technologies Inc.     VQ630 dual-mode digital camera.         
28-Nov-00
 VQS4   ViewQuest Technologies Inc.     VQ110 digital video camera.     
28-Nov-00
-VTC1   NVIDIA Corporation      Not specified.  12-Oct-00
-VTC2   NVIDIA Corporation      Not specified.  12-Oct-00
-VTC3   NVIDIA Corporation      Not specified.  12-Oct-00
-VTC4   NVIDIA Corporation      Not specified.  12-Oct-00
-VTC5   NVIDIA Corporation      Not specified.  12-Oct-00
-VTC6   NVIDIA Corporation      Not specified.  12-Oct-00
-VTC7   NVIDIA Corporation      Not specified.  12-Oct-00
-VTC8   NVIDIA Corporation      Not specified.  12-Oct-00
-VTC9   NVIDIA Corporation      Not specified.  12-Oct-00
 VX1K   Lucent Technologies     Lucent  VX1000S video codec.    17-Feb-99
 VX2K   Lucent Technologies     Lucent VX2000S video codec.     17-Feb-99
 VXSP   Lucent Technologies     Lucent VX1000SP video codec.    17-Feb-99
@@ -311,32 +271,21 @@
 WZDC   CORE Co. Ltd.   iSnap.  20-Jun-00
 XJPG   Xirlink, Inc.   Xirlink JPEG-like compressor.   14-Feb-01
 XLV0   NetXL, Inc.     XL video decoder.       18-Sep-97
-XWV0   Wavelet Holdings plc    Not specified.  26-Jul-00
-XWV1   Wavelet Holdings plc    Not specified.  26-Jul-00
-XWV2   Wavelet Holdings plc    Not specified.  26-Jul-00
-XWV3   Wavelet Holdings plc    Not specified.  26-Jul-00
-XWV4   Wavelet Holdings plc    Not specified.  26-Jul-00
-XWV5   Wavelet Holdings plc    Not specified.  26-Jul-00
-XWV6   Wavelet Holdings plc    Not specified.  26-Jul-00
-XWV7   Wavelet Holdings plc    Not specified.  26-Jul-00
-XWV8   Wavelet Holdings plc    Not specified.  26-Jul-00
-XWV9   Wavelet Holdings plc    Not specified.  26-Jul-00
 */
             case "XVID": return "XviD Video";
-/*
-YC12   Intel Corporation       Intel YUV12 codec.      12-Jun-96
-YCCK   B.U.G., Inc.    Uncompressed YCbCr video with key data.         
10-Nov-00
-YU92   Intel Corporation       YUV format.     Not specified.
-YUV8   Winnov, Inc.    MM_WINNOV_CAVIAR_YUV8.  05-Sep-93
-YUV9   Intel Corporation       YUV9.   01-Aug-93
-YUYP   Evans & Sutherland      YCbCr 4:2:2 extended precision, 10 bits per 
component (Y0U0Y1V0).       15-Nov-00
-YUYV   Canopus, Co., Ltd.      Canopus YUYV compressor.        08-Jun-93
-ZPEG   Metheus Corporation     Video Zipper.   24-Aug-93
-ZPG1   VoDeo Solutions, Inc.   Not specified.  13-Apr-02
-ZPG2   VoDeo Solutions, Inc.   Not specified.  15-Apr-02
-ZPG3   VoDeo Solutions, Inc.   Not specified.  15-Apr-02
-ZPG4   VoDeo Solutions, Inc.   Not specified.  15-Apr-02
-*/
+            case "YC12": return "Intel YUV12 Video";
+            case "YCCK": return "Uncompressed YCbCr Video with key data";
+            case "YU92": return "Intel YUV Video";
+            case "YUV8": return "Winnov Caviar YUV8 Video";
+            case "YUV9": return "Intel YUV Video";
+            case "YUYP": return "Evans & Sutherland YCbCr 4:2:2 extended 
precision, 10 bits per component Video";
+            case "YUYV": return "Canopus YUYV Compressor Video";
+            case "ZPEG": return "Metheus Corporation Video Zipper";
+            case "ZPG1":
+            case "ZPG2":
+            case "ZPG3":
+            case "ZPG4":
+               return "VoDeo Solutions Video";
             default: return "Unknown Image (" + CompressionId.ToString () + 
")";
             }
          }

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to