Lines Matching refs:src
158 const struct copybit_rect_t *src, in set_rects() argument
187 MULDIV(&delta_x, &e->src_rect.w, src->r - src->l, W); in set_rects()
188 MULDIV(&delta_y, &e->src_rect.h, src->b - src->t, H); in set_rects()
190 e->src_rect.x = delta_x + src->l; in set_rects()
191 e->src_rect.y = delta_y + src->t; in set_rects()
195 e->src_rect.x = (src->l + src->r) - (e->src_rect.x + e->src_rect.w); in set_rects()
197 e->src_rect.y = (src->t + src->b) - (e->src_rect.y + e->src_rect.h); in set_rects()
203 e->src_rect.y = (src->t + src->b) - (e->src_rect.y + e->src_rect.h); in set_rects()
205 e->src_rect.x = (src->l + src->r) - (e->src_rect.x + e->src_rect.w); in set_rects()
244 l->req[i].src.width, in msm_copybit()
245 l->req[i].src.height, in msm_copybit()
246 l->req[i].src.format, in msm_copybit()
383 struct copybit_image_t const *src, in stretch_copybit() argument
398 switch (src->format) { in stretch_copybit()
403 src->format); in stretch_copybit()
408 if (src_rect->l < 0 || (uint32_t)src_rect->r > src->w || in stretch_copybit()
409 src_rect->t < 0 || (uint32_t)src_rect->b > src->h) { in stretch_copybit()
417 if (src->w > MAX_DIMENSION || src->h > MAX_DIMENSION) { in stretch_copybit()
418 ALOGE ("%s : Invalid source dimensions w %d h %d", __FUNCTION__, src->w, src->h); in stretch_copybit()
427 if(src->format == HAL_PIXEL_FORMAT_YV12) { in stretch_copybit()
430 if (0 == alloc_buffer(&yv12_handle,src->w,src->h, in stretch_copybit()
431 src->format, usage)){ in stretch_copybit()
432 if(0 == convertYV12toYCrCb420SP(src,yv12_handle)){ in stretch_copybit()
433 (const_cast<copybit_image_t *>(src))->format = in stretch_copybit()
435 (const_cast<copybit_image_t *>(src))->handle = in stretch_copybit()
437 (const_cast<copybit_image_t *>(src))->base = in stretch_copybit()
462 private_handle_t* src_hnd = (private_handle_t*)src->handle; in stretch_copybit()
469 set_image(&req->src, src); in stretch_copybit()
470 set_rects(ctx, req, dst_rect, src_rect, &clip, src->horiz_padding, src->vert_padding); in stretch_copybit()
499 struct copybit_image_t const *src, in blit_copybit() argument
503 struct copybit_rect_t sr = { 0, 0, src->w, src->h }; in blit_copybit()
504 return stretch_copybit(dev, dst, src, &dr, &sr, region); in blit_copybit()