From b76c5a76b077fba4ed7cf3a7b24adb6df760776c Mon Sep 17 00:00:00 2001 From: Jiyong Min Date: Tue, 4 Jul 2017 11:45:52 +0900 Subject: [PATCH] Add C# level description in metadata Change-Id: If3875610010e9262c209dfcb8011c390bdf67877 Signed-off-by: Jiyong Min --- .../MetadataEditor/MetadataEditor.cs | 19 +++++++++++ .../MetadataExtractor/Artwork.cs | 3 ++ .../MetadataExtractor/Metadata.cs | 37 ++++++++++++++++++++++ .../MetadataExtractor/MetadataExtractor.cs | 8 +++++ .../MetadataExtractor/SyncLyrics.cs | 3 ++ 5 files changed, 70 insertions(+) mode change 100644 => 100755 src/Tizen.Multimedia.Metadata/MetadataEditor/MetadataEditor.cs mode change 100644 => 100755 src/Tizen.Multimedia.Metadata/MetadataExtractor/Artwork.cs mode change 100644 => 100755 src/Tizen.Multimedia.Metadata/MetadataExtractor/Metadata.cs mode change 100644 => 100755 src/Tizen.Multimedia.Metadata/MetadataExtractor/MetadataExtractor.cs mode change 100644 => 100755 src/Tizen.Multimedia.Metadata/MetadataExtractor/SyncLyrics.cs diff --git a/src/Tizen.Multimedia.Metadata/MetadataEditor/MetadataEditor.cs b/src/Tizen.Multimedia.Metadata/MetadataEditor/MetadataEditor.cs old mode 100644 new mode 100755 index d27d196..18bdaf6 --- a/src/Tizen.Multimedia.Metadata/MetadataEditor/MetadataEditor.cs +++ b/src/Tizen.Multimedia.Metadata/MetadataEditor/MetadataEditor.cs @@ -55,6 +55,7 @@ namespace Tizen.Multimedia /// /// Initializes a new instance of the class with the specified path. /// + /// 3 /// The path of the media file to edit metadata /// is null. /// The file is unsupported format. @@ -108,6 +109,7 @@ namespace Tizen.Multimedia /// /// Artist of media /// + /// 3 public string Artist { get @@ -124,6 +126,7 @@ namespace Tizen.Multimedia /// /// Title of media /// + /// 3 public string Title { get @@ -140,6 +143,7 @@ namespace Tizen.Multimedia /// /// Album name of media /// + /// 3 public string Album { get @@ -156,6 +160,7 @@ namespace Tizen.Multimedia /// /// Genre of media /// + /// 3 public string Genre { get @@ -172,6 +177,7 @@ namespace Tizen.Multimedia /// /// Author of media /// + /// 3 public string Author { get @@ -188,6 +194,7 @@ namespace Tizen.Multimedia /// /// Copyright of media /// + /// 3 public string Copyright { get @@ -204,6 +211,7 @@ namespace Tizen.Multimedia /// /// Date of media /// + /// 3 /// /// If the added media contains ID3 tag, This parameter refers to the recording time. /// If the added media is a mp4 format, This parameter refers to the year. @@ -224,6 +232,7 @@ namespace Tizen.Multimedia /// /// Description of media /// + /// 3 public string Description { get @@ -240,6 +249,7 @@ namespace Tizen.Multimedia /// /// Comment of media /// + /// 3 public string Comment { get @@ -256,6 +266,7 @@ namespace Tizen.Multimedia /// /// Track number of media /// + /// 3 public string TrackNumber { get @@ -272,6 +283,7 @@ namespace Tizen.Multimedia /// /// Album art count of media /// + /// 3 public string PictureCount { get @@ -283,6 +295,7 @@ namespace Tizen.Multimedia /// /// Conductor of media /// + /// 3 public string Conductor { get @@ -299,6 +312,7 @@ namespace Tizen.Multimedia /// /// Unsynchronized lyric of media /// + /// 3 public string UnsyncLyrics { get @@ -315,6 +329,7 @@ namespace Tizen.Multimedia /// /// Writes the modified metadata to a media file /// + /// 3 /// When internal process error is occured public void Commit() { @@ -325,6 +340,7 @@ namespace Tizen.Multimedia /// /// Gets the artwork image in a media file /// + /// 3 /// Index of picture to import /// Artwork included in the media file /// When internal process error is occured @@ -372,6 +388,7 @@ namespace Tizen.Multimedia /// /// Appends the picture to the media file. /// + /// 3 /// The path of picture for adding to the metadata. /// Internal error occurs. /// is null. @@ -389,6 +406,7 @@ namespace Tizen.Multimedia /// /// Removes the picture from the media file. /// + /// 3 /// Index of picture to remove /// When internal process error is occured /// Wrong index number @@ -406,6 +424,7 @@ namespace Tizen.Multimedia /// /// Metadata Editor destructor /// + /// 3 ~MetadataEditor() { Dispose(false); diff --git a/src/Tizen.Multimedia.Metadata/MetadataExtractor/Artwork.cs b/src/Tizen.Multimedia.Metadata/MetadataExtractor/Artwork.cs old mode 100644 new mode 100755 index 4dba9cf..e1fcb83 --- a/src/Tizen.Multimedia.Metadata/MetadataExtractor/Artwork.cs +++ b/src/Tizen.Multimedia.Metadata/MetadataExtractor/Artwork.cs @@ -24,6 +24,7 @@ namespace Tizen.Multimedia /// /// Initializes a new instance of the Artwork class with the specified data and mimeType. /// + /// 3 /// The data of the artwork to set metadata. /// The mime type of the data of the artwork. public Artwork(byte[] data, string mimeType) @@ -35,11 +36,13 @@ namespace Tizen.Multimedia /// /// The encoded artwork image. /// + /// 3 public byte[] Data { get; } /// /// The mime type of artwork. /// + /// 3 public string MimeType { get; } } } diff --git a/src/Tizen.Multimedia.Metadata/MetadataExtractor/Metadata.cs b/src/Tizen.Multimedia.Metadata/MetadataExtractor/Metadata.cs old mode 100644 new mode 100755 index c9eb9f8..561bb8b --- a/src/Tizen.Multimedia.Metadata/MetadataExtractor/Metadata.cs +++ b/src/Tizen.Multimedia.Metadata/MetadataExtractor/Metadata.cs @@ -51,36 +51,42 @@ namespace Tizen.Multimedia /// /// Gets the bitrate. /// + /// 3 /// A string representing the bitrate, or null if the information does not exists. public string Bitrate { get; } /// /// Gets the video FPS. /// + /// 3 /// A string representing the fps, or null if the information does not exists. public string Fps { get; } /// /// Gets the width of the video. /// + /// 3 /// A string representing the width, or null if the information does not exists. public string Width { get; } /// /// Gets the height of the video. /// + /// 3 /// A string representing the height, or null if the information does not exists. public string Height { get; } /// /// Get the codec type of the video. /// + /// 3 /// A string representing the codec type, or null if the information does not exists. public string Codec { get; } /// /// Gets the video stream count. /// + /// 3 /// A string representing the video stream count, or null if the information does not exists. public string StreamCount { get; } @@ -124,36 +130,42 @@ namespace Tizen.Multimedia /// /// Gets the audio bitrate. /// + /// 3 /// A string representing the bitrate, or null if the information does not exists. public string Bitrate { get; } /// /// Gets the audio channels. /// + /// 3 /// A string representing the audio channels, or null if the information does not exists. public string Channels { get; } /// /// Gets the audio sample rate. /// + /// 3 /// A string representing the sample rate, or null if the information does not exists. public string Samplerate { get; } /// /// Gets the bit per sample of the audio. /// + /// 3 /// A string representing the bit oer sample, or null if the information does not exists. public string BitPerSample { get; } /// /// Gets the audio stream count. /// + /// 3 /// A string representing the audio stream count, or null if the information does not exists. public string StreamCount { get; } /// /// Gets the audio codec type. /// + /// 3 public string Codec { get; } private Lazy _description; @@ -211,148 +223,173 @@ namespace Tizen.Multimedia /// /// Gets the duration of the media. /// + /// 3 /// A string representing the duration, or null if the information does not exists. public string Duration { get; } /// /// Gets the video metadata. /// + /// 3 public VideoMetadata Video { get; } /// /// Gets the audio metadata. /// + /// 3 public AudioMetadata Audio { get; } /// /// Gets the artist of the media. /// + /// 3 /// A string representing the artist, or null if the information does not exists. public string Artist { get; } /// /// Gets the title of the media. /// + /// 3 /// A string representing the title, or null if the information does not exists. public string Title { get; } /// /// Gets the album name of the media. /// + /// 3 /// A string representing the album name, or null if the information does not exists. public string Album { get; } /// /// Gets the album artist of the media. /// + /// 3 /// A string representing the album artist, or null if the information does not exists. public string AlbumArtist { get; } /// /// Gets the genre of the media. /// + /// 3 /// A string representing the genre, or null if the information does not exists. public string Genre { get; } /// /// Gets the author of the media. /// + /// 3 /// A string representing the author, or null if the information does not exists. public string Author { get; } /// /// Gets the copyright of the media. /// + /// 3 /// A string representing the copyright, or null if the information does not exists. public string Copyright { get; } /// /// Gets the release date of the media. /// + /// 3 /// A string representing the release date, or null if the information does not exists. public string ReleaseDate { get; } /// /// Gets the description of the media. /// + /// 3 /// A string representing the description, or null if the information does not exists. public string Description { get; } /// /// Gets the comment of the media. /// + /// 3 /// A string representing the comment, or null if the information does not exists. public string Comment { get; } /// /// Gets the track number of the media. /// + /// 3 /// A string representing the track number, or null if the information does not exists. public string TrackNumber { get; } /// /// Gets the classification of the media. /// + /// 3 /// A string representing the classification, or null if the information does not exists. public string Classification { get; } /// /// Gets the rating of the media. /// + /// 3 /// A string representing the rating, or null if the information does not exists. public string Rating { get; } /// /// Gets the longitude of the media. /// + /// 3 /// A string representing the longitude, or null if the information does not exists. public string Longitude { get; } /// /// Gets the latitude of the media. /// + /// 3 /// A string representing the latitude, or null if the information does not exists. public string Latitude { get; } /// /// Gets the altitude of the media. /// + /// 3 /// A string representing the altitude, or null if the information does not exists. public string Altitude { get; } /// /// Gets the conductor of the media. /// + /// 3 /// A string representing the conductor, or null if the information does not exists. public string Conductor { get; } /// /// Gets the unsynchronized lyrics of the media. /// + /// 3 /// A string representing the unsynchronized lyrics, or null if the information does not exists. public string UnsyncLyric { get; } /// /// Gets the number of synchronized lyrics of the media. /// + /// 3 /// A string representing the number of the synchronized lyrics, or null if the information does not exists. public string SyncLyricCount { get; } /// /// Gets the recording date of the media. /// + /// 3 /// A string representing the recording date, or null if the information does not exists. public string RecordingDate { get; } /// /// Gets the rotate(orientation) information of the media. /// + /// 3 /// A string representing the rotation information, or null if the information does not exists. public string Rotation { get; } /// /// Gets the information for 360 content of the media. /// + /// 3 /// A string representing the information for 360 content, or null if the information does not exists. public string Content360 { get; } diff --git a/src/Tizen.Multimedia.Metadata/MetadataExtractor/MetadataExtractor.cs b/src/Tizen.Multimedia.Metadata/MetadataExtractor/MetadataExtractor.cs old mode 100644 new mode 100755 index 2c0dc00..7b49cdf --- a/src/Tizen.Multimedia.Metadata/MetadataExtractor/MetadataExtractor.cs +++ b/src/Tizen.Multimedia.Metadata/MetadataExtractor/MetadataExtractor.cs @@ -54,6 +54,7 @@ namespace Tizen.Multimedia /// /// Initializes a new instance of the MetadataExtractor class with the specified path. /// + /// 3 /// The path for the file to extract metadata. /// is null. /// is not exist. @@ -70,6 +71,7 @@ namespace Tizen.Multimedia /// /// Initializes a new instance of the MetadataExtractor class with the specified buffer. /// + /// 3 /// The buffer to extract metadata. /// is null. /// The length of is zero. @@ -117,6 +119,7 @@ namespace Tizen.Multimedia /// /// Retrieves the . /// + /// 3 /// A for the given source. /// Internal process error is occurred. /// The has been already disposed of. @@ -133,6 +136,7 @@ namespace Tizen.Multimedia /// /// Gets the artwork image in the source. /// + /// 3 /// A if it exists, otherwise null. /// Internal process error is occurred. /// The has been already disposed of. @@ -168,6 +172,7 @@ namespace Tizen.Multimedia /// /// Gets the sync lyrics of the source. /// + /// 3 /// The index of lyrics to retrieve. /// A object if is valid, otherwise null. /// Internal process error is occurred. @@ -199,6 +204,7 @@ namespace Tizen.Multimedia /// /// Gets the frame of a video media. /// + /// 3 /// The raw thumbnail data in RGB888 if it exists, otherwise null. /// Internal process error is occurred. /// The has been already disposed of. @@ -232,6 +238,7 @@ namespace Tizen.Multimedia /// /// Gets the frame of a video media. /// + /// 3 /// The timestamp in milliseconds. /// true to get an accurate frame for the given timestamp, /// otherwise false to get the nearest i-frame of the video rapidly. @@ -268,6 +275,7 @@ namespace Tizen.Multimedia /// /// Metadata Extractor destructor /// + /// 3 ~MetadataExtractor() { Dispose(false); diff --git a/src/Tizen.Multimedia.Metadata/MetadataExtractor/SyncLyrics.cs b/src/Tizen.Multimedia.Metadata/MetadataExtractor/SyncLyrics.cs old mode 100644 new mode 100755 index 7d9b68f..a12d730 --- a/src/Tizen.Multimedia.Metadata/MetadataExtractor/SyncLyrics.cs +++ b/src/Tizen.Multimedia.Metadata/MetadataExtractor/SyncLyrics.cs @@ -24,6 +24,7 @@ namespace Tizen.Multimedia /// /// Initialize a new instance of the MetadataExtractor class with the specified lyrics and timestamp. /// + /// 3 /// The text of synclyrics to set. /// The timestamp of synclyrics to set. public SyncLyrics(string lyrics, uint timestamp) @@ -35,11 +36,13 @@ namespace Tizen.Multimedia /// /// The text representation of the lyrics. /// + /// 3 public string Lyrics { get; } /// /// The time information of the lyrics. /// + /// 3 public uint Timestamp { get; } } } -- 2.7.4