OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 CHROME_GPU_ARC_VIDEO_ACCELERATOR_H_ | 5 #ifndef CHROME_GPU_ARC_VIDEO_ACCELERATOR_H_ |
6 #define CHROME_GPU_ARC_VIDEO_ACCELERATOR_H_ | 6 #define CHROME_GPU_ARC_VIDEO_ACCELERATOR_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/files/scoped_file.h" | 10 #include "base/files/scoped_file.h" |
11 | 11 |
12 namespace chromeos { | 12 namespace chromeos { |
13 namespace arc { | 13 namespace arc { |
14 | 14 |
15 enum HalPixelFormatExtension { | 15 enum HalPixelFormatExtension { |
16 // The pixel formats defined in Android but are used here. They are defined | 16 // The pixel formats defined in Android but are used here. They are defined |
17 // in "system/core/include/system/graphics.h" | 17 // in "system/core/include/system/graphics.h" |
18 HAL_PIXEL_FORMAT_BGRA_8888 = 5, | 18 HAL_PIXEL_FORMAT_BGRA_8888 = 5, |
19 HAL_PIXEL_FORMAT_YCbCr_420_888 = 0x23, | 19 HAL_PIXEL_FORMAT_YCbCr_420_888 = 0x23, |
20 | 20 |
21 // The following formats are not defined in Android, but used in | 21 // The following formats are not defined in Android, but used in |
22 // ArcVideoAccelerator to identify the input format. | 22 // ArcVideoAccelerator to identify the input format. |
23 HAL_PIXEL_FORMAT_H264 = 0x34363248, | 23 HAL_PIXEL_FORMAT_H264 = 0x34363248, |
24 HAL_PIXEL_FORMAT_VP8 = 0x00385056, | 24 HAL_PIXEL_FORMAT_VP8 = 0x00385056, |
| 25 HAL_PIXEL_FORMAT_VP9 = 0x00395056, |
25 }; | 26 }; |
26 | 27 |
27 enum PortType { | 28 enum PortType { |
28 PORT_INPUT = 0, | 29 PORT_INPUT = 0, |
29 PORT_OUTPUT = 1, | 30 PORT_OUTPUT = 1, |
30 PORT_COUNT = 2, | 31 PORT_COUNT = 2, |
31 }; | 32 }; |
32 | 33 |
33 struct BufferMetadata { | 34 struct BufferMetadata { |
34 int64_t timestamp = 0; // in microseconds | 35 int64_t timestamp = 0; // in microseconds |
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
156 // called. | 157 // called. |
157 virtual void Flush() = 0; | 158 virtual void Flush() = 0; |
158 | 159 |
159 virtual ~ArcVideoAccelerator() {} | 160 virtual ~ArcVideoAccelerator() {} |
160 }; | 161 }; |
161 | 162 |
162 } // namespace arc | 163 } // namespace arc |
163 } // namespace chromeos | 164 } // namespace chromeos |
164 | 165 |
165 #endif // CHROME_GPU_ARC_VIDEO_ACCELERATOR_H_ | 166 #endif // CHROME_GPU_ARC_VIDEO_ACCELERATOR_H_ |
OLD | NEW |