blob: 494d0cb822ee7182c7704de6b9ad919870884588 [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.graphics.common@1.0::Dataspace;
20
21import android.hardware.media@1.0::types;
22
23import IOmxNode;
24
25/**
26 * Ref: frameworks/av/media/libmedia/aidl/android/IGraphicBufferSource.aidl
27 *
28 * TODO: Add documentations.
29 */
30interface IGraphicBufferSource {
31
Robert Shiha2787502017-03-11 01:22:12 +000032 configure(IOmxNode omxNode, Dataspace dataspace) generates (Status status);
Pawin Vongmasa6ec37b92016-10-06 19:01:51 -070033
Robert Shiha2787502017-03-11 01:22:12 +000034 setSuspend(bool suspend, int64_t timeUs) generates (Status status);
Pawin Vongmasa6ec37b92016-10-06 19:01:51 -070035
Robert Shiha2787502017-03-11 01:22:12 +000036 setRepeatPreviousFrameDelayUs(int64_t repeatAfterUs) generates (Status status);
Pawin Vongmasa6ec37b92016-10-06 19:01:51 -070037
Robert Shiha2787502017-03-11 01:22:12 +000038 setMaxFps(float maxFps) generates (Status status);
Pawin Vongmasa6ec37b92016-10-06 19:01:51 -070039
Pawin Vongmasa0048c962017-04-20 05:08:15 -070040 setTimeLapseConfig(double fps, double captureFps) generates (Status status);
Pawin Vongmasa6ec37b92016-10-06 19:01:51 -070041
Robert Shiha2787502017-03-11 01:22:12 +000042 setStartTimeUs(int64_t startTimeUs) generates (Status status);
Pawin Vongmasa6ec37b92016-10-06 19:01:51 -070043
Robert Shiha2787502017-03-11 01:22:12 +000044 setStopTimeUs(int64_t stopTimeUs) generates (Status status);
Hangyu Kuang9ad0d002017-02-01 18:40:40 -080045
Hangyu Kuang171bbf52017-04-05 11:32:31 -070046 getStopTimeOffsetUs() generates (Status status, int64_t stopTimeOffsetUs);
47
Robert Shiha2787502017-03-11 01:22:12 +000048 setColorAspects(ColorAspects aspects) generates (Status status);
Pawin Vongmasa6ec37b92016-10-06 19:01:51 -070049
Robert Shiha2787502017-03-11 01:22:12 +000050 setTimeOffsetUs(int64_t timeOffsetUs) generates (Status status);
Pawin Vongmasa6ec37b92016-10-06 19:01:51 -070051
Robert Shiha2787502017-03-11 01:22:12 +000052 signalEndOfInputStream() generates (Status status);
Pawin Vongmasa6ec37b92016-10-06 19:01:51 -070053
54};
55