3 * Copyright 2012 Samsung Electronics S.LSI Co. LTD
5 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
9 * http://www.apache.org/licenses/LICENSE-2.0
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
19 * \file exynos_rotator.h
20 * \brief header file for exynos_rotator HAL
21 * \author Sunmi Lee (carrotsm.lee@samsung.com)
24 * <b>Revision History: </b>
25 * - 2012/03/05 : Sunmi Lee (carrotsm.lee@samsung.com) \n
31 * \defgroup exynos_rotator
32 * \brief API for rotator
36 #ifndef _EXYNOS_ROTATOR_H_
37 #define _EXYNOS_ROTATOR_H_
44 * Create librotator handle
46 * \ingroup exynos_rotator
51 void *exynos_rotator_create(void);
54 * Destroy librotator handle
56 * \ingroup exynos_rotator
59 * librotator handle[in]
61 void exynos_rotator_destroy(
67 * \ingroup exynos_rotator
70 * librotator handle[in]
79 * image left crop size[in]
82 * image top crop size[in]
85 * cropped image width[in]
88 * cropped image height[in]
90 * \param v4l2_colorformat
99 int exynos_rotator_set_src_format(
103 unsigned int crop_left
,
104 unsigned int crop_top
,
105 unsigned int crop_width
,
106 unsigned int crop_height
,
107 unsigned int v4l2_colorformat
,
108 unsigned int cacheable
);
111 * Set destination format.
113 * \ingroup exynos_rotator
116 * librotator handle[in]
125 * image left crop size[in]
128 * image top crop size[in]
130 * \param v4l2_colorformat
139 int exynos_rotator_set_dst_format(
143 unsigned int crop_left
,
144 unsigned int crop_top
,
145 unsigned int v4l2_colorformat
,
146 unsigned int cacheable
);
151 * \ingroup exynos_rotator
154 * librotator handle[in]
157 * image rotation. It should be multiple of 90[in]
162 int exynos_rotator_set_rotation(
169 * \ingroup exynos_rotator
172 * librotator handle[in]
175 * buffer pointer array[in]
180 int exynos_rotator_set_src_addr(
185 * Set destination buffer
187 * \ingroup exynos_rotator
190 * librotator handle[in]
193 * buffer pointer array[in]
198 int exynos_rotator_set_dst_addr(
203 * Convert color space with presetup color format
205 * \ingroup exynos_rotator
208 * librotator handle[in]
213 int exynos_rotator_convert(
217 * api for local path rotator. Not yet support.
219 * \ingroup exynos_rotator
221 int exynos_rotator_connect(
226 * api for local path rotator. Not yet support.
228 * \ingroup exynos_rotator
230 int exynos_rotator_disconnect(
238 #endif /*EXYNOS_ROTATORALER_H_*/