blob: 5520fb6d080f63767b3b60ce99dbb3622125ad42 [file] [log] [blame]
codeworkxf1be2fe2012-03-24 17:38:29 +01001/*
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_CONVERTER_H_
18
19#define HARDWARE_CONVERTER_H_
20
21#include <OMX_Video.h>
22
23class HardwareConverter {
24public:
25 HardwareConverter();
26 ~HardwareConverter();
27 bool convert(
28 void * src_addr,
29 void * dst_addr,
30 OMX_COLOR_FORMATTYPE src_format,
31 int32_t width,
32 int32_t height,
33 OMX_COLOR_FORMATTYPE dst_format);
34 bool bHWconvert_flag;
35private:
36 void *mSecFimc;
37 unsigned int OMXtoHarPixelFomrat(OMX_COLOR_FORMATTYPE omx_format);
38};
39
40void test_function();
41
42#endif // HARDWARE_CONVERTER_H_