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

Unified Diff: media/filters/h264_parser.h

Issue 2345123002: Attach color space information to hardware decoded NV12 video frames. (Closed)
Patch Set: comments addressed + compile fixes 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
Index: media/filters/h264_parser.h
diff --git a/media/filters/h264_parser.h b/media/filters/h264_parser.h
index 64519e8fd7a95eed0bd4fa2f00ddb36c7735c70f..9c7c1c0a003a0ebdc43cc1979c48c2d9947c7cab 100644
--- a/media/filters/h264_parser.h
+++ b/media/filters/h264_parser.h
@@ -20,6 +20,7 @@
#include "media/base/ranges.h"
#include "media/base/video_codecs.h"
#include "media/filters/h264_bit_reader.h"
+#include "ui/gfx/color_space.h"
namespace gfx {
class Rect;
@@ -156,6 +157,14 @@ struct MEDIA_EXPORT H264SPS {
int time_scale;
bool fixed_frame_rate_flag;
+ bool video_signal_type_present_flag;
+ int video_format;
+ bool video_full_range_flag;
+ bool colour_description_present_flag;
+ int colour_primaries;
+ int transfer_characteristics;
+ int matrix_coefficients;
+
// TODO(posciak): actually parse these instead of ParseAndIgnoreHRDParameters.
bool nal_hrd_parameters_present_flag;
int cpb_cnt_minus1;
@@ -178,6 +187,7 @@ struct MEDIA_EXPORT H264SPS {
// the results are in-spec for the given profile or level.
base::Optional<gfx::Size> GetCodedSize() const;
base::Optional<gfx::Rect> GetVisibleRect() const;
+ gfx::ColorSpace GetColorSpace() const;
};
struct MEDIA_EXPORT H264PPS {

Powered by Google App Engine
This is Rietveld 408576698