Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(44)

Side by Side Diff: components/arc/common/video_decode_accelerator.mojom

Issue 2919193002: ArcBridge: Rename VideoAcceleratorService to VideoDecodeAccelerator. (Closed)
Patch Set: Address review comments Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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. See comments of VideoDecodeAccelerator for more info.
7 7
8 module arc.mojom; 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
(...skipping 14 matching lines...) Expand all
31 // minimal number of buffers required to process the video. 31 // minimal number of buffers required to process the video.
32 uint32 min_num_buffers; 32 uint32 min_num_buffers;
33 uint32 coded_width; 33 uint32 coded_width;
34 uint32 coded_height; 34 uint32 coded_height;
35 uint32 crop_left; 35 uint32 crop_left;
36 uint32 crop_width; 36 uint32 crop_width;
37 uint32 crop_top; 37 uint32 crop_top;
38 uint32 crop_height; 38 uint32 crop_height;
39 }; 39 };
40 40
41 struct ArcVideoAcceleratorConfig { 41 struct VideoDecodeAcceleratorConfig {
42 enum DeviceType { 42 // Deprecated. This config struct is used for decoder only.
43 enum DeviceTypeDeprecated {
43 DEVICE_ENCODER = 0, 44 DEVICE_ENCODER = 0,
44 DEVICE_DECODER = 1, 45 DEVICE_DECODER = 1,
45 }; 46 };
46 47
47 DeviceType device_type; 48 // Deprecated. Only decoder will be supported.
49 DeviceTypeDeprecated device_type_deprecated;
48 uint32 num_input_buffers; 50 uint32 num_input_buffers;
49 uint32 input_pixel_format; 51 uint32 input_pixel_format;
50 }; 52 };
51 53
52 struct ArcVideoAcceleratorDmabufPlane { 54 struct ArcVideoAcceleratorDmabufPlane {
53 int32 offset; 55 int32 offset;
54 int32 stride; 56 int32 stride;
55 }; 57 };
56 58
57 // Next MinVersion: 4 59 // Next MinVersion: 4
58 // Deprecated method IDs: 2, 7 60 // Deprecated method IDs: 2, 7
59 // Next method ID: 10 61 // Next method ID: 10
60 interface VideoAcceleratorService { 62 interface VideoDecodeAccelerator {
61 enum Result { 63 enum Result {
62 SUCCESS = 0, 64 SUCCESS = 0,
63 ILLEGAL_STATE = 1, 65 ILLEGAL_STATE = 1,
64 INVALID_ARGUMENT = 2, 66 INVALID_ARGUMENT = 2,
65 UNREADABLE_INPUT = 3, 67 UNREADABLE_INPUT = 3,
66 PLATFORM_FAILURE = 4, 68 PLATFORM_FAILURE = 4,
67 INSUFFICIENT_RESOURCES = 5, 69 INSUFFICIENT_RESOURCES = 5,
68 }; 70 };
69 71
70 [MinVersion=2] 72 [MinVersion=2]
71 Initialize@8(ArcVideoAcceleratorConfig config, 73 Initialize@8(VideoDecodeAcceleratorConfig config,
72 VideoAcceleratorServiceClient client) => (Result result); 74 VideoDecodeClient client) => (Result result);
73 75
74 BindSharedMemory@1(PortType port, uint32 index, handle ashmem_fd, 76 BindSharedMemory@1(PortType port, uint32 index, handle ashmem_fd,
75 uint32 offset, uint32 length); 77 uint32 offset, uint32 length);
76 78
77 [MinVersion=3] 79 [MinVersion=3]
78 BindDmabuf@9(PortType port, uint32 index, handle dmabuf_fd, 80 BindDmabuf@9(PortType port, uint32 index, handle dmabuf_fd,
79 array<ArcVideoAcceleratorDmabufPlane> dmabuf_planes); 81 array<ArcVideoAcceleratorDmabufPlane> dmabuf_planes);
80 82
81 UseBuffer@3(PortType port, uint32 index, BufferMetadata metadata); 83 UseBuffer@3(PortType port, uint32 index, BufferMetadata metadata);
82 84
83 SetNumberOfOutputBuffers@4(uint32 number); 85 SetNumberOfOutputBuffers@4(uint32 number);
84 86
85 Reset@5(); 87 Reset@5();
86 88
87 Flush@6(); 89 Flush@6();
88 }; 90 };
89 91
90 // Deprecated method IDs: 0 92 // Deprecated method IDs: 0
91 // Next method ID: 6 93 // Next method ID: 6
92 interface VideoAcceleratorServiceClient { 94 interface VideoDecodeClient {
93 OnError@1(VideoAcceleratorService.Result error); 95 OnError@1(VideoDecodeAccelerator.Result error);
94 96
95 OnBufferDone@2(PortType port, uint32 index, BufferMetadata metadata); 97 OnBufferDone@2(PortType port, uint32 index, BufferMetadata metadata);
96 98
97 OnResetDone@3(); 99 OnResetDone@3();
98 100
99 OnOutputFormatChanged@4(VideoFormat format); 101 OnOutputFormatChanged@4(VideoFormat format);
100 102
101 OnFlushDone@5(); 103 OnFlushDone@5();
102 }; 104 };
OLDNEW
« no previous file with comments | « components/arc/common/video_accelerator.typemap ('k') | components/arc/video_accelerator/video_accelerator_struct_traits.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698