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

Unified Diff: media/gpu/h264_dpb.h

Issue 2926593002: V4L2SVDA/VAAPIVDA: use visible size from decoder and pass to client (Closed)
Patch Set: V4L2SVDA/VAAPIVDA: use visible size from decoder and pass to client Created 3 years, 6 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/gpu/h264_decoder.cc ('k') | media/gpu/v4l2_slice_video_decode_accelerator.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/gpu/h264_dpb.h
diff --git a/media/gpu/h264_dpb.h b/media/gpu/h264_dpb.h
index aef39a1bc5d517dcb86209b290671a856571ca0c..e8f119f6f6a1dd3983a3ff3e63b4ff0168b57073 100644
--- a/media/gpu/h264_dpb.h
+++ b/media/gpu/h264_dpb.h
@@ -15,6 +15,7 @@
#include "base/macros.h"
#include "base/memory/ref_counted.h"
#include "media/filters/h264_parser.h"
+#include "ui/gfx/geometry/rect.h"
namespace media {
@@ -84,6 +85,10 @@ class H264Picture : public base::RefCounted<H264Picture> {
// Position in DPB (i.e. index in DPB).
int dpb_position;
+ // The visible size of picture. This could be either parsed from SPS, or set
+ // to gfx::Rect(0, 0) for indicating invalid values or not available.
+ gfx::Rect visible_rect;
+
protected:
friend class base::RefCounted<H264Picture>;
virtual ~H264Picture();
« no previous file with comments | « media/gpu/h264_decoder.cc ('k') | media/gpu/v4l2_slice_video_decode_accelerator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698