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

Unified Diff: media/filters/h264_parser.h

Issue 2345123002: Attach color space information to hardware decoded NV12 video frames. (Closed)
Patch Set: minor bugfix Created 4 years, 2 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/filters/gpu_video_decoder.cc ('k') | media/filters/h264_parser.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/filters/h264_parser.h
diff --git a/media/filters/h264_parser.h b/media/filters/h264_parser.h
index e7f4bc4c4eb4a4ce7fca5cfab103a5ca9ca064eb..e45adef6bd753f7545192efcd33de7b8420d5316 100644
--- a/media/filters/h264_parser.h
+++ b/media/filters/h264_parser.h
@@ -21,6 +21,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;
@@ -157,6 +158,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;
@@ -179,6 +188,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 {
« no previous file with comments | « media/filters/gpu_video_decoder.cc ('k') | media/filters/h264_parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698