1d56db1d2bee182d1851097a9c712712fc094d117Eino-Ville Talvala/*
2d56db1d2bee182d1851097a9c712712fc094d117Eino-Ville Talvala * Copyright (C) 2015 The Android Open Source Project
3d56db1d2bee182d1851097a9c712712fc094d117Eino-Ville Talvala *
4d56db1d2bee182d1851097a9c712712fc094d117Eino-Ville Talvala * Licensed under the Apache License, Version 2.0 (the "License");
5d56db1d2bee182d1851097a9c712712fc094d117Eino-Ville Talvala * you may not use this file except in compliance with the License.
6d56db1d2bee182d1851097a9c712712fc094d117Eino-Ville Talvala * You may obtain a copy of the License at
7d56db1d2bee182d1851097a9c712712fc094d117Eino-Ville Talvala *
8d56db1d2bee182d1851097a9c712712fc094d117Eino-Ville Talvala *      http://www.apache.org/licenses/LICENSE-2.0
9d56db1d2bee182d1851097a9c712712fc094d117Eino-Ville Talvala *
10d56db1d2bee182d1851097a9c712712fc094d117Eino-Ville Talvala * Unless required by applicable law or agreed to in writing, software
11d56db1d2bee182d1851097a9c712712fc094d117Eino-Ville Talvala * distributed under the License is distributed on an "AS IS" BASIS,
12d56db1d2bee182d1851097a9c712712fc094d117Eino-Ville Talvala * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13d56db1d2bee182d1851097a9c712712fc094d117Eino-Ville Talvala * See the License for the specific language governing permissions and
14d56db1d2bee182d1851097a9c712712fc094d117Eino-Ville Talvala * limitations under the License.
15d56db1d2bee182d1851097a9c712712fc094d117Eino-Ville Talvala */
16d56db1d2bee182d1851097a9c712712fc094d117Eino-Ville Talvala
17e2b43843fd12783188edd2c54188ea8d26864788Vijay Venkatraman#ifndef ANDROID_IMEDIACODECSERVICE_H
18e2b43843fd12783188edd2c54188ea8d26864788Vijay Venkatraman#define ANDROID_IMEDIACODECSERVICE_H
19d56db1d2bee182d1851097a9c712712fc094d117Eino-Ville Talvala
20e2b43843fd12783188edd2c54188ea8d26864788Vijay Venkatraman#include <binder/IInterface.h>
21e2b43843fd12783188edd2c54188ea8d26864788Vijay Venkatraman#include <binder/IMemory.h>
22d56db1d2bee182d1851097a9c712712fc094d117Eino-Ville Talvala#include <binder/Parcel.h>
23e2b43843fd12783188edd2c54188ea8d26864788Vijay Venkatraman#include <media/IDataSource.h>
24ac7d4125516299b8a3e6f2b25822a692bdd96311Pawin Vongmasa#include <media/IOMX.h>
25d56db1d2bee182d1851097a9c712712fc094d117Eino-Ville Talvala
26d56db1d2bee182d1851097a9c712712fc094d117Eino-Ville Talvalanamespace android {
27d56db1d2bee182d1851097a9c712712fc094d117Eino-Ville Talvala
28e2b43843fd12783188edd2c54188ea8d26864788Vijay Venkatramanclass IMediaCodecService: public IInterface
29e2b43843fd12783188edd2c54188ea8d26864788Vijay Venkatraman{
30d56db1d2bee182d1851097a9c712712fc094d117Eino-Ville Talvalapublic:
31e2b43843fd12783188edd2c54188ea8d26864788Vijay Venkatraman    DECLARE_META_INTERFACE(MediaCodecService);
32d56db1d2bee182d1851097a9c712712fc094d117Eino-Ville Talvala
33e2b43843fd12783188edd2c54188ea8d26864788Vijay Venkatraman    virtual sp<IOMX> getOMX() = 0;
34e2b43843fd12783188edd2c54188ea8d26864788Vijay Venkatraman};
35d56db1d2bee182d1851097a9c712712fc094d117Eino-Ville Talvala
36e2b43843fd12783188edd2c54188ea8d26864788Vijay Venkatramanclass BnMediaCodecService: public BnInterface<IMediaCodecService>
37e2b43843fd12783188edd2c54188ea8d26864788Vijay Venkatraman{
38e2b43843fd12783188edd2c54188ea8d26864788Vijay Venkatramanpublic:
39e2b43843fd12783188edd2c54188ea8d26864788Vijay Venkatraman    virtual status_t    onTransact(uint32_t code, const Parcel& data, Parcel* reply,
40e2b43843fd12783188edd2c54188ea8d26864788Vijay Venkatraman                                uint32_t flags = 0);
41d56db1d2bee182d1851097a9c712712fc094d117Eino-Ville Talvala};
42d56db1d2bee182d1851097a9c712712fc094d117Eino-Ville Talvala
43e2b43843fd12783188edd2c54188ea8d26864788Vijay Venkatraman}   // namespace android
44d56db1d2bee182d1851097a9c712712fc094d117Eino-Ville Talvala
45e2b43843fd12783188edd2c54188ea8d26864788Vijay Venkatraman#endif  // ANDROID_IMEDIACODECSERVICE_H
46