Lines Matching refs:src

164                       const struct copybit_rect_t *src,  in set_rects()  argument
191 MULDIV(&delta_x, &e->src_rect.w, src->r - src->l, W); in set_rects()
192 MULDIV(&delta_y, &e->src_rect.h, src->b - src->t, H); in set_rects()
194 e->src_rect.x = delta_x + src->l; in set_rects()
195 e->src_rect.y = delta_y + src->t; in set_rects()
199 e->src_rect.x = (src->l + src->r) - (e->src_rect.x + e->src_rect.w); in set_rects()
201 e->src_rect.y = (src->t + src->b) - (e->src_rect.y + e->src_rect.h); in set_rects()
207 e->src_rect.y = (src->t + src->b) - (e->src_rect.y + e->src_rect.h); in set_rects()
209 e->src_rect.x = (src->l + src->r) - (e->src_rect.x + e->src_rect.w); in set_rects()
253 l->req[i].src.width, in msm_copybit()
254 l->req[i].src.height, in msm_copybit()
255 l->req[i].src.format, in msm_copybit()
424 struct copybit_image_t const *src, in stretch_copybit() argument
438 switch (src->format) { in stretch_copybit()
443 src->format); in stretch_copybit()
448 if (src_rect->l < 0 || (uint32_t)src_rect->r > src->w || in stretch_copybit()
449 src_rect->t < 0 || (uint32_t)src_rect->b > src->h) { in stretch_copybit()
457 if (src->w > MAX_DIMENSION || src->h > MAX_DIMENSION) { in stretch_copybit()
458 ALOGE ("%s : Invalid source dimensions w %d h %d", __FUNCTION__, src->w, src->h); in stretch_copybit()
467 if(src->format == HAL_PIXEL_FORMAT_YV12) { in stretch_copybit()
470 if (0 == alloc_buffer(&yv12_handle,src->w,src->h, in stretch_copybit()
471 src->format, usage)){ in stretch_copybit()
472 if(0 == convertYV12toYCrCb420SP(src,yv12_handle)){ in stretch_copybit()
473 (const_cast<copybit_image_t *>(src))->format = in stretch_copybit()
475 (const_cast<copybit_image_t *>(src))->handle = in stretch_copybit()
477 (const_cast<copybit_image_t *>(src))->base = in stretch_copybit()
502 private_handle_t* src_hnd = (private_handle_t*)src->handle; in stretch_copybit()
509 set_image(&req->src, src); in stretch_copybit()
544 struct copybit_image_t const *src, in blit_copybit() argument
548 struct copybit_rect_t sr = { 0, 0, (int)src->w, (int)src->h }; in blit_copybit()
549 return stretch_copybit(dev, dst, src, &dr, &sr, region); in blit_copybit()
589 set_image(&req->src, buf); in clear_copybit()
649 set_image(&req->src, dst); in fill_color()