[MetadataExtractor] Add a StitchedContent360 metadata API (#6292)
authorHaesu Gwon <haesu.gwon@samsung.com>
Fri, 13 Sep 2024 00:44:25 +0000 (09:44 +0900)
committerGitHub <noreply@github.com>
Fri, 13 Sep 2024 00:44:25 +0000 (09:44 +0900)
* [MetadataExtractor] Add a StitchedContent360 metadata API

src/Tizen.Multimedia.Metadata/MetadataExtractor/Metadata.cs
src/Tizen.Multimedia.Metadata/MetadataExtractor/MetadataExtractorAttr.cs

index d5ca764fefc719c8661bc9fb8418f8ca2b55d829..0d10a12f376954f28daa1ec7c0b409208145f5b4 100644 (file)
@@ -215,6 +215,8 @@ namespace Tizen.Multimedia
             DateRecorded = extractor.GetMetadata(MetadataExtractorAttr.RecordingDate);
             Rotation = extractor.GetMetadata(MetadataExtractorAttr.Rotate);
             Content360 = extractor.GetMetadata(MetadataExtractorAttr.ContentFor360);
+            var stitched = ValueConverter.ToNullableInt(extractor.GetMetadata(MetadataExtractorAttr.StitchedContentFor360));
+            StitchedContent360 = stitched == 0 || stitched == null ? null : stitched;
 
             _description = new Lazy<string>(() => ObjectDescriptionBuilder.BuildWithProperties(this));
         }
@@ -402,6 +404,13 @@ namespace Tizen.Multimedia
         /// <value>A string representing the information for 360 content, or null if the information does not exist.</value>
         public string Content360 { get; }
 
+        /// <summary>
+        /// Gets the information about 360 video content being stitched or not.
+        /// </summary>
+        /// <since_tizen> 12 </since_tizen>
+        /// <value>1 : not stitched, 2 : stitched, or null if the information does not exist.</value>
+        public int? StitchedContent360 { get; }
+
         private Lazy<string> _description;
 
         /// <summary>
index c2d325c2c0041c80033505cb0de671f1ffdbdd40..148522372adc53b762dd39aae92e5129590d1ccf 100644 (file)
@@ -53,5 +53,6 @@ namespace Tizen.Multimedia
         VideoCodec,
         AudioCodec,
         ContentFor360,
+        StitchedContentFor360,
     }
 }