OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROMECAST_PUBLIC_VIDEO_PLANE_H_ | 5 #ifndef CHROMECAST_PUBLIC_VIDEO_PLANE_H_ |
6 #define CHROMECAST_PUBLIC_VIDEO_PLANE_H_ | 6 #define CHROMECAST_PUBLIC_VIDEO_PLANE_H_ |
7 | 7 |
8 namespace chromecast { | 8 namespace chromecast { |
9 struct RectF; | 9 struct RectF; |
10 struct Size; | |
11 | 10 |
12 namespace media { | 11 namespace media { |
13 | 12 |
14 class VideoPlane { | 13 class VideoPlane { |
15 public: | 14 public: |
16 // List of possible hardware transforms that can be applied to video. | 15 // List of possible hardware transforms that can be applied to video. |
17 // Rotations are anticlockwise. | 16 // Rotations are anticlockwise. |
18 enum Transform { | 17 enum Transform { |
19 TRANSFORM_NONE, | 18 TRANSFORM_NONE, |
20 ROTATE_90, | 19 ROTATE_90, |
(...skipping 10 matching lines...) Expand all Loading... |
31 // in screen resolution coordinates. | 30 // in screen resolution coordinates. |
32 // |transform| specifies how the video should be transformed within that | 31 // |transform| specifies how the video should be transformed within that |
33 // rectangle. | 32 // rectangle. |
34 virtual void SetGeometry(const RectF& screen_rect, Transform transform) = 0; | 33 virtual void SetGeometry(const RectF& screen_rect, Transform transform) = 0; |
35 }; | 34 }; |
36 | 35 |
37 } // namespace media | 36 } // namespace media |
38 } // namespace chromecast | 37 } // namespace chromecast |
39 | 38 |
40 #endif // CHROMECAST_PUBLIC_VIDEO_PLANE_H_ | 39 #endif // CHROMECAST_PUBLIC_VIDEO_PLANE_H_ |
OLD | NEW |