blob: e9f0b763df1dc15a11c884ab2bcb2685bd45b3f7 [file] [log] [blame]
Pawin Vongmasa6ec37b92016-10-06 19:01:51 -07001/*
2 * Copyright (C) 2016 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17package android.hardware.media.omx@1.0;
18
19import android.hardware.media@1.0::types;
20
21import IOmxNode;
22import IOmxObserver;
23
24/**
25 * Ref: frameworks/av/include/media/IOMX.h: IOMX
26 *
27 * IOmx is the main entry point for communicating with OMX components.
28 */
29interface IOmx {
30
31 /**
32 * Information for an IOmxNode component.
33 */
34 struct ComponentInfo {
35 string mName; //< Name of the component.
36 vec<string> mRoles; //< Roles of the component.
37 };
38
39 /**
40 * List available components.
41 *
42 * @param[out] status will be the status of the call.
43 * @param[out] nodeList will be a list of ComponentInfo.
44 */
45 listNodes(
46 ) generates (
47 Status status,
48 vec<ComponentInfo> nodeList
49 );
50
51 /**
52 * Allocate an IOmxNode instance with the specified component name.
53 *
54 * @param[in] name is the name of the component to create.
55 * @param[in] observer is an observer object that will receive messages from
56 * the created instance.
57 * @param[out] status will be the status of the call.
58 * @param[out] omxNode will be the allocated instance of IOmxNode.
59 */
60 allocateNode(
61 string name,
62 IOmxObserver observer
63 ) generates (
64 Status status,
65 IOmxNode omxNode
66 );
67
68};
69