-
Notifications
You must be signed in to change notification settings - Fork 82
feat: add Reader::manifest_source
#1150
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Reader::manifest_location
Reader::manifest_location
and `c2pa::manifest_locations_from_stream)
Reader::manifest_location
and `c2pa::manifest_locations_from_stream)Reader::manifest_location
and c2pa::manifest_locations_from_stream
Please do not proceed with these changes in the Rust SDK until I've had a chance to think about it. Right now I would not approve. |
Reader::manifest_location
and c2pa::manifest_locations_from_stream
Reader::manifest_location
/// The manifest is stored remotely. | ||
Remote, | ||
/// The manifest is stored separately in a sidecar. | ||
Sidecar, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Where is Sidecar used?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I should clarify the docs here, Sidecar
is returned when the manifest is passed explicitly via a method such as from_manifest_data_and_stream
. If there's a better name to describe this variant let me know.
Reader::manifest_location
Reader::manifest_source
Changes in this pull request
Implements:
Store::source
(low-level)Reader::manifest_source
(high-level)which returns the source of the manifest used during reading:
ManifestSource::Embedded
ManifestSource::Remote
ManifestSource::Sidecar
A manifest source is considered a sidecar if the manifest bytes were given explicitly, rather than obtained via embedded or remote (XMP).
These APIs are also implemented for the C bindings.
Checklist
TO DO
items (or similar) have been entered as GitHub issues and the link to that issue has been included in a comment.