1 /* 2 * Copyright (C) 2009 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 HARDWARE_API_H_ 18 19 #define HARDWARE_API_H_ 20 21 #include <media/stagefright/OMXPluginBase.h> 22 #include <media/stagefright/VideoRenderer.h> 23 #include <surfaceflinger/ISurface.h> 24 #include <utils/RefBase.h> 25 26 #include <OMX_Component.h> 27 28 extern android::VideoRenderer *createRenderer( 29 const android::sp<android::ISurface> &surface, 30 const char *componentName, 31 OMX_COLOR_FORMATTYPE colorFormat, 32 size_t displayWidth, size_t displayHeight, 33 size_t decodedWidth, size_t decodedHeight); 34 35 extern android::VideoRenderer *createRendererWithRotation( 36 const android::sp<android::ISurface> &surface, 37 const char *componentName, 38 OMX_COLOR_FORMATTYPE colorFormat, 39 size_t displayWidth, size_t displayHeight, 40 size_t decodedWidth, size_t decodedHeight, 41 int32_t rotationDegrees); 42 43 extern android::OMXPluginBase *createOMXPlugin(); 44 45 #endif // HARDWARE_API_H_ 46 47