Lines Matching defs:src

161                       const struct copybit_rect_t *src,
190 MULDIV(&delta_x, &e->src_rect.w, src->r - src->l, W);
191 MULDIV(&delta_y, &e->src_rect.h, src->b - src->t, H);
193 e->src_rect.x = delta_x + src->l;
194 e->src_rect.y = delta_y + src->t;
198 e->src_rect.x = (src->l + src->r) - (e->src_rect.x + e->src_rect.w);
200 e->src_rect.y = (src->t + src->b) - (e->src_rect.y + e->src_rect.h);
206 e->src_rect.y = (src->t + src->b) - (e->src_rect.y + e->src_rect.h);
208 e->src_rect.x = (src->l + src->r) - (e->src_rect.x + e->src_rect.w);
242 ALOGE("%d: src={w=%d, h=%d, f=%d, rect={%d,%d,%d,%d}}\n"
247 l->req[i].src.width,
248 l->req[i].src.height,
249 l->req[i].src.format,
419 struct copybit_image_t const *src,
433 switch (src->format) {
438 src->format);
443 if (src_rect->l < 0 || (uint32_t)src_rect->r > src->w ||
444 src_rect->t < 0 || (uint32_t)src_rect->b > src->h) {
452 if (src->w > MAX_DIMENSION || src->h > MAX_DIMENSION) {
453 ALOGE ("%s : Invalid source dimensions w %d h %d", __FUNCTION__, src->w, src->h);
462 if(src->format == HAL_PIXEL_FORMAT_YV12) {
465 if (0 == alloc_buffer(&yv12_handle,src->w,src->h,
466 src->format, usage)){
467 if(0 == convertYV12toYCrCb420SP(src,yv12_handle)){
468 (const_cast<copybit_image_t *>(src))->format =
470 (const_cast<copybit_image_t *>(src))->handle =
472 (const_cast<copybit_image_t *>(src))->base =
496 private_handle_t* src_hnd = (private_handle_t*)src->handle;
503 set_image(&req->src, src);
504 set_rects(ctx, req, dst_rect, src_rect, &clip, src->horiz_padding, src->vert_padding);
542 struct copybit_image_t const *src,
546 struct copybit_rect_t sr = { 0, 0, (int)src->w, (int)src->h };
547 return stretch_copybit(dev, dst, src, &dr, &sr, region);