Skip to content

Commit 4ad511d

Browse files
authored
Enhance OpenAPI spec with Motion Photo attributes
Added properties for Motion Photo metadata including version and presentation timestamp.
1 parent ea2b760 commit 4ad511d

1 file changed

Lines changed: 25 additions & 0 deletions

File tree

api/openapi-spec/v1.0.yaml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5137,6 +5137,31 @@ components:
51375137
type: string
51385138
format: date-time
51395139
description: Represents the date and time the photo was taken. Read-only.
5140+
'@libre.graph.motionPhoto':
5141+
type: integer
5142+
format: int32
5143+
readOnly: true
5144+
description: |
5145+
Indicates whether the file is a Motion Photo (a still image with an embedded video clip).
5146+
1 means the file should be treated as a Motion Photo, 0 or absent means it should not.
5147+
Based on Camera:MotionPhoto from the Google Motion Photo format specification.
5148+
https://developer.android.com/media/platform/motion-photo-format
5149+
'@libre.graph.motionPhotoVersion':
5150+
type: integer
5151+
format: int32
5152+
readOnly: true
5153+
description: |
5154+
The file format version of the Motion Photo. Currently always 1.
5155+
Based on Camera:MotionPhotoVersion from the Google Motion Photo format specification.
5156+
'@libre.graph.motionPhotoPresentationTimestampUs':
5157+
type: integer
5158+
format: int64
5159+
readOnly: true
5160+
description: |
5161+
Presentation timestamp in microseconds of the video frame that corresponds to the still image.
5162+
A value of -1 indicates unspecified. If absent, readers should use a timestamp near the
5163+
middle of the video track.
5164+
Based on Camera:MotionPhotoPresentationTimestampUs from the Google Motion Photo format specification.
51405165
geoCoordinates:
51415166
type: object
51425167
readOnly: true

0 commit comments

Comments
 (0)