Home | History | Annotate | Download | only in libcsc

Lines Matching refs:handle

114     CSC_HANDLE *handle)
118 switch (handle->dst_format.color_format) {
121 (unsigned char *)handle->dst_buffer.planes[CSC_Y_PLANE],
122 (unsigned char *)handle->dst_buffer.planes[CSC_U_PLANE],
123 (unsigned char *)handle->dst_buffer.planes[CSC_V_PLANE],
124 (unsigned char *)handle->src_buffer.planes[CSC_RGB_PLANE],
125 handle->src_format.width,
126 handle->src_format.height);
131 (unsigned char *)handle->dst_buffer.planes[CSC_Y_PLANE],
132 (unsigned char *)handle->dst_buffer.planes[CSC_UV_PLANE],
133 (unsigned char *)handle->src_buffer.planes[CSC_RGB_PLANE],
134 handle->src_format.width,
135 handle->src_format.height);
148 CSC_HANDLE *handle)
152 switch (handle->dst_format.color_format) {
155 (unsigned char *)handle->dst_buffer.planes[CSC_Y_PLANE],
156 (unsigned char *)handle->src_buffer.planes[CSC_Y_PLANE],
157 handle->src_format.width,
158 handle->src_format.height);
160 (unsigned char *)handle->dst_buffer.planes[CSC_U_PLANE],
161 (unsigned char *)handle->dst_buffer.planes[CSC_V_PLANE],
162 (unsigned char *)handle->src_buffer.planes[CSC_UV_PLANE],
163 handle->src_format.width,
164 handle->src_format.height / 2);
169 (unsigned char *)handle->dst_buffer.planes[CSC_Y_PLANE],
170 (unsigned char *)handle->src_buffer.planes[CSC_Y_PLANE],
171 handle->src_format.width,
172 handle->src_format.height);
174 (unsigned char *)handle->dst_buffer.planes[CSC_UV_PLANE],
175 (unsigned char *)handle->src_buffer.planes[CSC_UV_PLANE],
176 handle->src_format.width,
177 handle->src_format.height / 2);
190 CSC_HANDLE *handle)
194 switch (handle->dst_format.color_format) {
196 memcpy((unsigned char *)handle->dst_buffer.planes[CSC_Y_PLANE],
197 (unsigned char *)handle->src_buffer.planes[CSC_Y_PLANE],
198 handle->src_format.width * handle->src_format.height);
199 memcpy((unsigned char *)handle->dst_buffer.planes[CSC_U_PLANE],
200 (unsigned char *)handle->src_buffer.planes[CSC_U_PLANE],
201 (handle->src_format.width * handle->src_format.height) >> 2);
202 memcpy((unsigned char *)handle->dst_buffer.planes[CSC_V_PLANE],
203 (unsigned char *)handle->src_buffer.planes[CSC_V_PLANE],
204 (handle->src_format.width * handle->src_format.height) >> 2);
208 memcpy((unsigned char *)handle->dst_buffer.planes[CSC_Y_PLANE],
209 (unsigned char *)handle->src_buffer.planes[CSC_Y_PLANE],
210 handle->src_format.width * handle->src_format.height);
212 (unsigned char *)handle->dst_buffer.planes[CSC_UV_PLANE],
213 (unsigned char *)handle->src_buffer.planes[CSC_U_PLANE],
214 (unsigned char *)handle->src_buffer.planes[CSC_V_PLANE],
215 (handle->src_format.width * handle->src_format.height) >> 2);
228 CSC_HANDLE *handle)
232 switch (handle->dst_format.color_format) {
234 memcpy((unsigned char *)handle->dst_buffer.planes[CSC_Y_PLANE],
235 (unsigned char *)handle->src_buffer.planes[CSC_Y_PLANE],
236 handle->src_format.width * handle->src_format.height);
238 (unsigned char *)handle->dst_buffer.planes[CSC_U_PLANE],
239 (unsigned char *)handle->dst_buffer.planes[CSC_V_PLANE],
240 (unsigned char *)handle->src_buffer.planes[CSC_UV_PLANE],
241 handle->src_format.width * handle->src_format.height >> 1);
245 memcpy((unsigned char *)handle->dst_buffer.planes[CSC_Y_PLANE],
246 (unsigned char *)handle->src_buffer.planes[CSC_Y_PLANE],
247 handle->src_format.width * handle->src_format.height);
248 memcpy((unsigned char *)handle->dst_buffer.planes[CSC_UV_PLANE],
249 (unsigned char *)handle->src_buffer.planes[CSC_UV_PLANE],
250 handle->src_format.width * handle->src_format.height >> 1);
262 CSC_HANDLE *handle)
266 switch (handle->src_format.color_format) {
268 ret = conv_sw_src_nv12t(handle);
271 ret = conv_sw_src_yuv420p(handle);
274 ret = conv_sw_src_yuv420sp(handle);
277 ret = conv_sw_src_argb888(handle);
288 CSC_HANDLE *handle)
291 switch (handle->csc_hw_type) {
299 src_addr[0] = handle->src_buffer.planes[CSC_Y_PLANE];
300 src_addr[1] = handle->src_buffer.planes[CSC_UV_PLANE];
301 dst_addr[0] = handle->dst_buffer.planes[CSC_Y_PLANE];
302 dst_addr[1] = handle->dst_buffer.planes[CSC_U_PLANE];
303 dst_addr[2] = handle->dst_buffer.planes[CSC_V_PLANE];
304 src_omx_format = hal_2_omx_pixel_format(handle->src_format.color_format);
305 dst_omx_format = hal_2_omx_pixel_format(handle->dst_format.color_format);
307 handle->csc_hw_handle,
310 handle->dst_format.width,
311 handle->dst_format.height,
319 if (exynos_gsc_convert(handle->csc_hw_handle) != 0) {
328 g2d_data *g2d = (g2d_data *)handle->csc_hw_handle;
349 ALOGE("%s:: unsupported csc_hw_type(%d)", __func__, handle->csc_hw_type);
358 void *handle)
363 csc_handle = (CSC_HANDLE *)handle;
419 void *handle)
424 if (handle == NULL)
427 csc_handle = (CSC_HANDLE *)handle;
506 void *handle)
511 if (handle == NULL)
514 csc_handle = (CSC_HANDLE *)handle;
567 void *handle)
572 csc_handle = (CSC_HANDLE *)handle;
609 void *handle,
615 if (handle == NULL)
618 csc_handle = (CSC_HANDLE *)handle;
625 void *handle,
631 if (handle == NULL)
634 csc_handle = (CSC_HANDLE *)handle;
641 void *handle,
648 if (handle == NULL)
651 csc_handle = (CSC_HANDLE *)handle;
677 void *handle,
690 if (handle == NULL)
693 csc_handle = (CSC_HANDLE *)handle;
707 void *handle,
720 if (handle == NULL)
723 csc_handle = (CSC_HANDLE *)handle;
737 void *handle,
750 if (handle == NULL)
753 csc_handle = (CSC_HANDLE *)handle;
767 void *handle,
780 if (handle == NULL)
783 csc_handle = (CSC_HANDLE *)handle;
797 void *handle,
803 if (handle == NULL)
806 csc_handle = (CSC_HANDLE *)handle;
815 void *handle,
821 if (handle == NULL)
824 csc_handle = (CSC_HANDLE *)handle;
833 void *handle)
835 CSC_HANDLE *csc_handle = (CSC_HANDLE *)handle;
843 ret = csc_init_hw(handle);