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 // This file defined the mojo interface between Android and Chromium for video | 5 // This file defined the mojo interface between Android and Chromium for video |
6 // decoding and encoding. See comments of ArcVideoAccelerator for more info. | 6 // decoding and encoding. See comments of ArcVideoAccelerator for more info. |
7 | 7 |
8 module arc; | 8 module arc.mojom; |
9 | 9 |
10 [Extensible] | 10 [Extensible] |
11 enum HalPixelFormatExtension { | 11 enum HalPixelFormatExtension { |
12 HAL_PIXEL_FORMAT_YCbCr_420_888 = 0x23, | 12 HAL_PIXEL_FORMAT_YCbCr_420_888 = 0x23, |
13 HAL_PIXEL_FORMAT_H264 = 0x34363248, | 13 HAL_PIXEL_FORMAT_H264 = 0x34363248, |
14 HAL_PIXEL_FORMAT_VP8 = 0x00385056, | 14 HAL_PIXEL_FORMAT_VP8 = 0x00385056, |
15 }; | 15 }; |
16 | 16 |
17 enum PortType { | 17 enum PortType { |
18 PORT_INPUT = 0, | 18 PORT_INPUT = 0, |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 Init@0(VideoAcceleratorService service_ptr); | 82 Init@0(VideoAcceleratorService service_ptr); |
83 | 83 |
84 OnError@1(Error error); | 84 OnError@1(Error error); |
85 | 85 |
86 OnBufferDone@2(PortType port, uint32 index, BufferMetadata metadata); | 86 OnBufferDone@2(PortType port, uint32 index, BufferMetadata metadata); |
87 | 87 |
88 OnResetDone@3(); | 88 OnResetDone@3(); |
89 | 89 |
90 OnOutputFormatChanged@4(VideoFormat format); | 90 OnOutputFormatChanged@4(VideoFormat format); |
91 }; | 91 }; |
OLD | NEW |