Lines Matching refs:src
170 const struct copybit_rect_t *src, in set_rects() argument
200 MULDIV(&delta_x, &e->src_rect.w, src->r - src->l, W); in set_rects()
201 MULDIV(&delta_y, &e->src_rect.h, src->b - src->t, H); in set_rects()
203 e->src_rect.x = delta_x + src->l; in set_rects()
204 e->src_rect.y = delta_y + src->t; in set_rects()
208 e->src_rect.x = (src->l + src->r) - (e->src_rect.x + e->src_rect.w); in set_rects()
210 e->src_rect.y = (src->t + src->b) - (e->src_rect.y + e->src_rect.h); in set_rects()
216 e->src_rect.y = (src->t + src->b) - (e->src_rect.y + e->src_rect.h); in set_rects()
218 e->src_rect.x = (src->l + src->r) - (e->src_rect.x + e->src_rect.w); in set_rects()
264 l->req[i].src.width, in msm_copybit()
265 l->req[i].src.height, in msm_copybit()
266 l->req[i].src.format, in msm_copybit()
439 struct copybit_image_t const *src, in stretch_copybit() argument
453 switch (src->format) { in stretch_copybit()
458 src->format); in stretch_copybit()
463 if (src_rect->l < 0 || (uint32_t)src_rect->r > src->w || in stretch_copybit()
464 src_rect->t < 0 || (uint32_t)src_rect->b > src->h) { in stretch_copybit()
472 if (src->w > MAX_DIMENSION || src->h > MAX_DIMENSION) { in stretch_copybit()
473 ALOGE ("%s : Invalid source dimensions w %d h %d", __FUNCTION__, src->w, src->h); in stretch_copybit()
482 if(src->format == HAL_PIXEL_FORMAT_YV12) { in stretch_copybit()
485 if (0 == alloc_buffer(&yv12_handle,src->w,src->h, in stretch_copybit()
486 src->format, usage)){ in stretch_copybit()
487 if(0 == convertYV12toYCrCb420SP(src,yv12_handle)){ in stretch_copybit()
488 (const_cast<copybit_image_t *>(src))->format = in stretch_copybit()
490 (const_cast<copybit_image_t *>(src))->handle = in stretch_copybit()
492 (const_cast<copybit_image_t *>(src))->base = in stretch_copybit()
517 private_handle_t* src_hnd = (private_handle_t*)src->handle; in stretch_copybit()
536 set_image(&req->src, src); in stretch_copybit()
572 struct copybit_image_t const *src, in blit_copybit() argument
576 struct copybit_rect_t sr = { 0, 0, (int)src->w, (int)src->h }; in blit_copybit()
577 return stretch_copybit(dev, dst, src, &dr, &sr, region); in blit_copybit()
616 set_image(&req->src, buf); in clear_copybit()
676 set_image(&req->src, dst); in fill_color()