Lines Matching refs:psrc
589 image_upsize(image_s * pdest, image_s * psrc, int32_t width, int32_t height)
596 if((pdest == NULL) || (psrc == NULL))
603 rx = ((vx * psrc->width) / width);
604 ry = ((vy * psrc->height) / height);
605 vcol = get_pix(psrc, rx, ry);
612 width_scale = (float)psrc->width / (float)width;
613 height_scale = (float)psrc->height / (float)height;
621 vcol1 = get_pix(psrc, (int32_t)rx, (int32_t)ry);
622 vcol2 = get_pix(psrc, ((int32_t)rx)+1, (int32_t)ry);
623 vcol3 = get_pix(psrc, (int32_t)rx, ((int32_t)ry)+1);
624 vcol4 = get_pix(psrc, ((int32_t)rx)+1, ((int32_t)ry)+1);
652 image_downsize(image_s * pdest, image_s * psrc, int32_t width, int32_t height)
662 if((pdest == NULL) || (psrc == NULL))
670 rx = ((vx * psrc->width) / width);
671 ry = ((vy * psrc->height) / height);
675 rx_next = rx + (psrc->width / width);
676 ry_next = ry + (psrc->width / width);
684 vcol = get_pix(psrc, j, i);
710 if( (pdest == NULL) || (psrc == NULL) )
713 width_scale = (float)psrc->width / (float)width;
714 height_scale = (float)psrc->height / (float)height;
735 vcol = get_pix(psrc, (int32_t)rx, (int32_t)ry);
743 vcol = get_pix(psrc, ((int32_t)rx)-half_square_width+i,