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

Unified Diff: media/formats/webm/webm_video_client.h

Issue 2333663003: Add color metadata info to VideoDecoderConfig. (Closed)
Patch Set: Commented the RangeID comment as suggested Created 4 years, 3 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
« no previous file with comments | « media/formats/webm/webm_stream_parser_unittest.cc ('k') | media/formats/webm/webm_video_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/formats/webm/webm_video_client.h
diff --git a/media/formats/webm/webm_video_client.h b/media/formats/webm/webm_video_client.h
index d746df9166459d2ec70c0f4189ba55c408d6dcad..abcd9281bd273e88374e4ad8b410f8c4e50f6c5c 100644
--- a/media/formats/webm/webm_video_client.h
+++ b/media/formats/webm/webm_video_client.h
@@ -12,6 +12,7 @@
#include "base/macros.h"
#include "media/base/media_log.h"
+#include "media/formats/webm/webm_colour_parser.h"
#include "media/formats/webm/webm_parser.h"
namespace media {
@@ -41,6 +42,8 @@ class WebMVideoClient : public WebMParserClient {
private:
// WebMParserClient implementation.
+ WebMParserClient* OnListStart(int id) override;
+ bool OnListEnd(int id) override;
bool OnUInt(int id, int64_t val) override;
bool OnBinary(int id, const uint8_t* data, int size) override;
bool OnFloat(int id, double val) override;
@@ -57,6 +60,9 @@ class WebMVideoClient : public WebMParserClient {
int64_t display_unit_;
int64_t alpha_mode_;
+ WebMColourParser colour_parser_;
+ bool colour_parsed_ = false;
+
DISALLOW_COPY_AND_ASSIGN(WebMVideoClient);
};
« no previous file with comments | « media/formats/webm/webm_stream_parser_unittest.cc ('k') | media/formats/webm/webm_video_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698