Skip to content

Commit

Permalink
[MetadataExtractor] Add a StitchedContent360 metadata API (#6292)
Browse files Browse the repository at this point in the history
* [MetadataExtractor] Add a StitchedContent360 metadata API
  • Loading branch information
hsgwon authored and bshsqa committed Sep 25, 2024
1 parent f3f622d commit 73d0f35
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/Tizen.Multimedia.Metadata/MetadataExtractor/Metadata.cs
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,8 @@ internal Metadata(MetadataExtractor extractor)
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));
}
Expand Down Expand Up @@ -402,6 +404,13 @@ internal Metadata(MetadataExtractor extractor)
/// <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>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,5 +53,6 @@ internal enum MetadataExtractorAttr
VideoCodec,
AudioCodec,
ContentFor360,
StitchedContentFor360,
}
}

0 comments on commit 73d0f35

Please sign in to comment.