| 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.mojom; | 8 module arc.mojom; |
| 9 | 9 |
| 10 [Extensible] | 10 [Extensible] |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 uint32 num_input_buffers; | 48 uint32 num_input_buffers; |
| 49 uint32 input_pixel_format; | 49 uint32 input_pixel_format; |
| 50 }; | 50 }; |
| 51 | 51 |
| 52 interface VideoAcceleratorService { | 52 interface VideoAcceleratorService { |
| 53 Initialize@0(ArcVideoAcceleratorConfig config) => (bool result); | 53 Initialize@0(ArcVideoAcceleratorConfig config) => (bool result); |
| 54 | 54 |
| 55 BindSharedMemory@1(PortType port, uint32 index, handle ashmem_fd, | 55 BindSharedMemory@1(PortType port, uint32 index, handle ashmem_fd, |
| 56 uint32 offset, uint32 length); | 56 uint32 offset, uint32 length); |
| 57 | 57 |
| 58 BindDmabuf@2(PortType port, uint32 index, handle dmabuf_fd); | 58 BindDmabuf@2(PortType port, uint32 index, handle dmabuf_fd, int32 stride); |
| 59 | 59 |
| 60 UseBuffer@3(PortType port, uint32 index, BufferMetadata metadata); | 60 UseBuffer@3(PortType port, uint32 index, BufferMetadata metadata); |
| 61 | 61 |
| 62 SetNumberOfOutputBuffers@4(uint32 number); | 62 SetNumberOfOutputBuffers@4(uint32 number); |
| 63 | 63 |
| 64 Reset@5(); | 64 Reset@5(); |
| 65 | 65 |
| 66 Flush@6(); | 66 Flush@6(); |
| 67 }; | 67 }; |
| 68 | 68 |
| (...skipping 11 matching lines...) Expand all Loading... |
| 80 OnError@1(Error error); | 80 OnError@1(Error error); |
| 81 | 81 |
| 82 OnBufferDone@2(PortType port, uint32 index, BufferMetadata metadata); | 82 OnBufferDone@2(PortType port, uint32 index, BufferMetadata metadata); |
| 83 | 83 |
| 84 OnResetDone@3(); | 84 OnResetDone@3(); |
| 85 | 85 |
| 86 OnOutputFormatChanged@4(VideoFormat format); | 86 OnOutputFormatChanged@4(VideoFormat format); |
| 87 | 87 |
| 88 OnFlushDone@5(); | 88 OnFlushDone@5(); |
| 89 }; | 89 }; |
| OLD | NEW |