From 5c6ec5f8b72428411459a98db39dcef67149037c Mon Sep 17 00:00:00 2001 From: Haesu Gwon Date: Fri, 13 Sep 2024 09:44:25 +0900 Subject: [PATCH] [MetadataExtractor] Add a StitchedContent360 metadata API (#6292) * [MetadataExtractor] Add a StitchedContent360 metadata API --- .../MetadataExtractor/Metadata.cs | 9 +++++++++ .../MetadataExtractor/MetadataExtractorAttr.cs | 1 + 2 files changed, 10 insertions(+) diff --git a/src/Tizen.Multimedia.Metadata/MetadataExtractor/Metadata.cs b/src/Tizen.Multimedia.Metadata/MetadataExtractor/Metadata.cs index d5ca764fe..0d10a12f3 100644 --- a/src/Tizen.Multimedia.Metadata/MetadataExtractor/Metadata.cs +++ b/src/Tizen.Multimedia.Metadata/MetadataExtractor/Metadata.cs @@ -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(() => ObjectDescriptionBuilder.BuildWithProperties(this)); } @@ -402,6 +404,13 @@ namespace Tizen.Multimedia /// A string representing the information for 360 content, or null if the information does not exist. public string Content360 { get; } + /// + /// Gets the information about 360 video content being stitched or not. + /// + /// 12 + /// 1 : not stitched, 2 : stitched, or null if the information does not exist. + public int? StitchedContent360 { get; } + private Lazy _description; /// diff --git a/src/Tizen.Multimedia.Metadata/MetadataExtractor/MetadataExtractorAttr.cs b/src/Tizen.Multimedia.Metadata/MetadataExtractor/MetadataExtractorAttr.cs index c2d325c2c..148522372 100644 --- a/src/Tizen.Multimedia.Metadata/MetadataExtractor/MetadataExtractorAttr.cs +++ b/src/Tizen.Multimedia.Metadata/MetadataExtractor/MetadataExtractorAttr.cs @@ -53,5 +53,6 @@ namespace Tizen.Multimedia VideoCodec, AudioCodec, ContentFor360, + StitchedContentFor360, } } -- 2.34.1