blob: 52f39336bd8908903675598801116afe42d0f83e [file] [log] [blame]
Amyfd4243a2019-08-16 16:01:27 -07001/*
2 * Copyright (C) 2019 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#ifndef ANDROID_HARDWARE_TV_TUNER_V1_0_DEMUX_H_
18#define ANDROID_HARDWARE_TV_TUNER_V1_0_DEMUX_H_
19
20#include <android/hardware/tv/tuner/1.0/IDemux.h>
21
22using namespace std;
23
24namespace android {
25namespace hardware {
26namespace tv {
27namespace tuner {
28namespace V1_0 {
29namespace implementation {
30
31using ::android::hardware::tv::tuner::V1_0::IDemux;
32using ::android::hardware::tv::tuner::V1_0::Result;
33
34class Demux : public IDemux {
35 public:
36 Demux(uint32_t demuxId);
37
38 virtual Return<Result> setFrontendDataSource(uint32_t frontendId) override;
39
40 virtual Return<Result> close() override;
41
42 private:
43 virtual ~Demux();
44 uint32_t mDemuxId;
45 uint32_t mSourceFrontendId;
46};
47
48} // namespace implementation
49} // namespace V1_0
50} // namespace tuner
51} // namespace tv
52} // namespace hardware
53} // namespace android
54
55#endif // ANDROID_HARDWARE_TV_TUNER_V1_0_DEMUX_H_