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

Unified Diff: chromecast/media/cma/backend/video_plane.h

Issue 802833002: Chromecast: media interfaces for hardware-backed video plane. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years 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 | « no previous file | chromecast/media/cma/backend/video_plane.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromecast/media/cma/backend/video_plane.h
diff --git a/chromecast/media/cma/backend/video_plane.h b/chromecast/media/cma/backend/video_plane.h
new file mode 100644
index 0000000000000000000000000000000000000000..a5aa86c6e9320006eb31b93dc11d39aabb365965
--- /dev/null
+++ b/chromecast/media/cma/backend/video_plane.h
@@ -0,0 +1,54 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROMECAST_MEDIA_CMA_BACKEND_VIDEO_PLANE_H_
+#define CHROMECAST_MEDIA_CMA_BACKEND_VIDEO_PLANE_H_
+
+#include "base/macros.h"
+
+namespace gfx {
+class QuadF;
+class Size;
+}
+
+namespace chromecast {
+namespace media {
+
+class VideoPlane {
+ public:
+ enum CoordinateType {
+ // Graphics plane as coordinate type.
+ COORDINATE_TYPE_GRAPHICS_PLANE = 0,
damienv1 2014/12/13 01:51:00 nit: blank line
gunsch 2014/12/13 02:01:29 Done.
+ // Output display screen as coordinate type.
+ COORDINATE_TYPE_SCREEN_RESOLUTION = 1,
damienv1 2014/12/13 01:51:00 Should be renamed to COORDINATE_TYPE_VIDEO_PLANE_R
gunsch 2014/12/13 02:01:29 Done.
+ };
+
+ public:
damienv1 2014/12/13 01:51:00 nit: not needed, already in the public section...
gunsch 2014/12/13 02:01:29 Done.
+ VideoPlane();
+ virtual ~VideoPlane();
+
+ // Gets output screen resolution.
+ virtual gfx::Size GetScreenResolution() = 0;
damienv1 2014/12/13 01:51:00 Either remove this function (if the intent is to g
gunsch 2014/12/13 02:01:29 Done.
+
+ // Updates the video plane geometry.
+ // |quad.p1()| corresponds to the top left of the original video,
+ // |quad.p2()| to the top right of the original video,
+ // and so on.
+ // Depending on the underlying hardware, the exact geometry
+ // might not be honored.
+ // |coordinate_type| indicates what coordinate type |quad| refers to.
+ virtual void SetGeometry(const gfx::QuadF& quad,
+ CoordinateType coordinate_type) = 0;
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(VideoPlane);
+};
+
+// Global accessor to the video plane.
+VideoPlane* GetVideoPlane();
+
+} // namespace media
+} // namespace chromecast
+
+#endif // CHROMECAST_MEDIA_CMA_BACKEND_VIDEO_PLANE_H_
« no previous file with comments | « no previous file | chromecast/media/cma/backend/video_plane.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698