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

Unified Diff: media/video/picture.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/video/picture.h
diff --git a/media/video/picture.h b/media/video/picture.h
index 1da3fdaa41fff864f348d343586e2858f49eda8e..56d47609fdde6f35a848b067a97110373b5c1020 100644
--- a/media/video/picture.h
+++ b/media/video/picture.h
@@ -11,6 +11,7 @@
#include "gpu/command_buffer/common/mailbox.h"
#include "media/base/media_export.h"
+#include "ui/gfx/color_space.h"
#include "ui/gfx/geometry/rect.h"
#include "ui/gfx/geometry/size.h"
@@ -73,6 +74,7 @@ class MEDIA_EXPORT Picture {
Picture(int32_t picture_buffer_id,
int32_t bitstream_buffer_id,
const gfx::Rect& visible_rect,
+ const gfx::ColorSpace& color_space,
bool allow_overlay);
// Returns the id of the picture buffer where this picture is contained.
@@ -85,6 +87,9 @@ class MEDIA_EXPORT Picture {
bitstream_buffer_id_ = bitstream_buffer_id;
}
+ // Returns the color space of the picture.
+ const gfx::ColorSpace& color_space() const { return color_space_; }
+
// Returns the visible rectangle of the picture. Its size may be smaller
// than the size of the PictureBuffer, as it is the only visible part of the
// Picture contained in the PictureBuffer.
@@ -104,6 +109,7 @@ class MEDIA_EXPORT Picture {
int32_t picture_buffer_id_;
int32_t bitstream_buffer_id_;
gfx::Rect visible_rect_;
+ gfx::ColorSpace color_space_;
bool allow_overlay_;
bool size_changed_;
};

Powered by Google App Engine
This is Rietveld 408576698