blob: e93ea8b00a5889b23ae6ade39a79aa92f90c3895 [file] [log] [blame]
Lajos Molnar60b1c0e2014-08-06 16:55:46 -07001/*
2 * Copyright (C) 2014 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_IMEDIACODECLIST_H
18#define ANDROID_IMEDIACODECLIST_H
19
20#include <utils/Errors.h> // for status_t
21#include <binder/IInterface.h>
22#include <binder/Parcel.h>
23
24namespace android {
25
26struct MediaCodecInfo;
27
28class IMediaCodecList: public IInterface
29{
30public:
31 DECLARE_META_INTERFACE(MediaCodecList);
32
33 virtual size_t countCodecs() const = 0;
34 virtual sp<MediaCodecInfo> getCodecInfo(size_t index) const = 0;
35
36 virtual ssize_t findCodecByType(
37 const char *type, bool encoder, size_t startIndex = 0) const = 0;
38
39 virtual ssize_t findCodecByName(const char *name) const = 0;
40};
41
42// ----------------------------------------------------------------------------
43
44class BnMediaCodecList: public BnInterface<IMediaCodecList>
45{
46public:
47 virtual status_t onTransact( uint32_t code,
48 const Parcel& data,
49 Parcel* reply,
50 uint32_t flags = 0);
51};
52
53}; // namespace android
54
55#endif // ANDROID_IMEDIACODECLIST_H