Lines Matching refs:psrc
555 image_upsize(image * pdest, image * psrc, int32_t width, int32_t height)
562 if((pdest == NULL) || (psrc == NULL))
569 rx = ((vx * psrc->width) / width);
570 ry = ((vy * psrc->height) / height);
571 vcol = get_pix(psrc, rx, ry);
578 width_scale = (float)psrc->width / (float)width;
579 height_scale = (float)psrc->height / (float)height;
587 vcol1 = get_pix(psrc, (int32_t)rx, (int32_t)ry);
588 vcol2 = get_pix(psrc, ((int32_t)rx)+1, (int32_t)ry);
589 vcol3 = get_pix(psrc, (int32_t)rx, ((int32_t)ry)+1);
590 vcol4 = get_pix(psrc, ((int32_t)rx)+1, ((int32_t)ry)+1);
618 image_downsize(image * pdest, image * psrc, int32_t width, int32_t height)
628 if((pdest == NULL) || (psrc == NULL))
636 rx = ((vx * psrc->width) / width);
637 ry = ((vy * psrc->height) / height);
641 rx_next = rx + (psrc->width / width);
642 ry_next = ry + (psrc->width / width);
650 vcol = get_pix(psrc, j, i);
676 if( (pdest == NULL) || (psrc == NULL) )
679 width_scale = (float)psrc->width / (float)width;
680 height_scale = (float)psrc->height / (float)height;
701 vcol = get_pix(psrc, (int32_t)rx, (int32_t)ry);
709 vcol = get_pix(psrc, ((int32_t)rx)-half_square_width+i,