Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(308)

Unified Diff: media/base/audio_video_metadata_extractor.h

Issue 250143002: Media Galleries API: Audio/Video attached pictures support. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Create Blobs on browser-process, eliminating two IPC copies. Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: media/base/audio_video_metadata_extractor.h
diff --git a/media/base/audio_video_metadata_extractor.h b/media/base/audio_video_metadata_extractor.h
index 7590515e7475547c866617bb4980754801f29beb..953ece0b97239611f9b6ab17adbad7e8952e2517 100644
--- a/media/base/audio_video_metadata_extractor.h
+++ b/media/base/audio_video_metadata_extractor.h
@@ -38,7 +38,7 @@ class MEDIA_EXPORT AudioVideoMetadataExtractor {
// Returns whether or not the fields were successfully extracted. Should only
// be called once.
- bool Extract(DataSource* source);
+ bool Extract(DataSource* source, bool extract_attached_pics);
// Returns -1 if we cannot extract the duration. In seconds.
double duration() const;
@@ -67,6 +67,10 @@ class MEDIA_EXPORT AudioVideoMetadataExtractor {
// First element is the container. Subsequent elements are the child streams.
const StreamInfoVector& stream_infos() const;
+ // Empty if Extract call did not request attached images, or if no attached
+ // images were found.
+ const std::vector<std::string>& attached_images_bytes() const;
+
private:
void ExtractDictionary(AVDictionary* metadata, TagDictionary* raw_tags);
@@ -92,6 +96,8 @@ class MEDIA_EXPORT AudioVideoMetadataExtractor {
StreamInfoVector stream_infos_;
+ std::vector<std::string> attached_images_bytes_;
+
DISALLOW_COPY_AND_ASSIGN(AudioVideoMetadataExtractor);
};

Powered by Google App Engine
This is Rietveld 408576698