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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
54 uint32 num_input_buffers; | 54 uint32 num_input_buffers; |
55 uint32 input_pixel_format; | 55 uint32 input_pixel_format; |
56 }; | 56 }; |
57 | 57 |
58 interface VideoAcceleratorService { | 58 interface VideoAcceleratorService { |
59 Initialize@0(ArcVideoAcceleratorConfig config) => (bool result); | 59 Initialize@0(ArcVideoAcceleratorConfig config) => (bool result); |
60 | 60 |
61 BindSharedMemory@1(PortType port, uint32 index, handle ashmem_fd, | 61 BindSharedMemory@1(PortType port, uint32 index, handle ashmem_fd, |
62 uint32 offset, uint32 length); | 62 uint32 offset, uint32 length); |
63 | 63 |
64 BindDmabuf@2(PortType port, uint32 index, handle dmabuf_fd); | 64 BindDmabuf@2(PortType port, uint32 index, handle dmabuf_fd, int32 stride); |
kcwu
2016/05/05 10:10:05
uint32
Owen Lin
2016/05/06 05:38:34
But it is int32_t in where it's used:
https://cod
| |
65 | 65 |
66 UseBuffer@3(PortType port, uint32 index, BufferMetadata metadata); | 66 UseBuffer@3(PortType port, uint32 index, BufferMetadata metadata); |
67 | 67 |
68 SetNumberOfOutputBuffers@4(uint32 number); | 68 SetNumberOfOutputBuffers@4(uint32 number); |
69 | 69 |
70 Reset@5(); | 70 Reset@5(); |
71 }; | 71 }; |
72 | 72 |
73 interface VideoAcceleratorServiceClient { | 73 interface VideoAcceleratorServiceClient { |
74 enum Error { | 74 enum Error { |
75 NO_ERROR = 0, | 75 NO_ERROR = 0, |
76 ILLEGAL_STATE = 1, | 76 ILLEGAL_STATE = 1, |
77 INVALID_ARGUMENT = 2, | 77 INVALID_ARGUMENT = 2, |
78 UNREADABLE_INPUT = 3, | 78 UNREADABLE_INPUT = 3, |
79 PLATFORM_FAILURE = 4, | 79 PLATFORM_FAILURE = 4, |
80 }; | 80 }; |
81 | 81 |
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 |