Pawin Vongmasa | 6ec37b9 | 2016-10-06 19:01:51 -0700 | [diff] [blame] | 1 | /* |
| 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 | |
| 17 | package android.hardware.media.omx@1.0; |
| 18 | |
| 19 | import android.hardware.graphics.common@1.0::Dataspace; |
| 20 | |
| 21 | import android.hardware.media@1.0::types; |
| 22 | |
| 23 | import IOmxNode; |
| 24 | |
| 25 | /** |
| 26 | * Ref: frameworks/av/media/libmedia/aidl/android/IGraphicBufferSource.aidl |
| 27 | * |
| 28 | * TODO: Add documentations. |
| 29 | */ |
| 30 | interface IGraphicBufferSource { |
| 31 | |
Pawin Vongmasa | 38585c2 | 2016-12-06 03:03:14 -0800 | [diff] [blame] | 32 | configure(IOmxNode omxNode, Dataspace dataspace); |
Pawin Vongmasa | 6ec37b9 | 2016-10-06 19:01:51 -0700 | [diff] [blame] | 33 | |
Hangyu Kuang | 9ad0d00 | 2017-02-01 18:40:40 -0800 | [diff] [blame^] | 34 | setSuspend(bool suspend, int64_t timeUs); |
Pawin Vongmasa | 6ec37b9 | 2016-10-06 19:01:51 -0700 | [diff] [blame] | 35 | |
Pawin Vongmasa | 38585c2 | 2016-12-06 03:03:14 -0800 | [diff] [blame] | 36 | setRepeatPreviousFrameDelayUs(int64_t repeatAfterUs); |
Pawin Vongmasa | 6ec37b9 | 2016-10-06 19:01:51 -0700 | [diff] [blame] | 37 | |
Pawin Vongmasa | 38585c2 | 2016-12-06 03:03:14 -0800 | [diff] [blame] | 38 | setMaxFps(float maxFps); |
Pawin Vongmasa | 6ec37b9 | 2016-10-06 19:01:51 -0700 | [diff] [blame] | 39 | |
Pawin Vongmasa | 38585c2 | 2016-12-06 03:03:14 -0800 | [diff] [blame] | 40 | setTimeLapseConfig(int64_t timePerFrameUs, int64_t timePerCaptureUs); |
Pawin Vongmasa | 6ec37b9 | 2016-10-06 19:01:51 -0700 | [diff] [blame] | 41 | |
Pawin Vongmasa | 38585c2 | 2016-12-06 03:03:14 -0800 | [diff] [blame] | 42 | setStartTimeUs(int64_t startTimeUs); |
Pawin Vongmasa | 6ec37b9 | 2016-10-06 19:01:51 -0700 | [diff] [blame] | 43 | |
Hangyu Kuang | 9ad0d00 | 2017-02-01 18:40:40 -0800 | [diff] [blame^] | 44 | setStopTimeUs(int64_t stopTimeUs); |
| 45 | |
Pawin Vongmasa | 38585c2 | 2016-12-06 03:03:14 -0800 | [diff] [blame] | 46 | setColorAspects(ColorAspects aspects); |
Pawin Vongmasa | 6ec37b9 | 2016-10-06 19:01:51 -0700 | [diff] [blame] | 47 | |
Pawin Vongmasa | 38585c2 | 2016-12-06 03:03:14 -0800 | [diff] [blame] | 48 | setTimeOffsetUs(int64_t timeOffsetUs); |
Pawin Vongmasa | 6ec37b9 | 2016-10-06 19:01:51 -0700 | [diff] [blame] | 49 | |
Pawin Vongmasa | 38585c2 | 2016-12-06 03:03:14 -0800 | [diff] [blame] | 50 | signalEndOfInputStream(); |
Pawin Vongmasa | 6ec37b9 | 2016-10-06 19:01:51 -0700 | [diff] [blame] | 51 | |
| 52 | }; |
| 53 | |