• Home
  • Raw
  • Download

Lines Matching refs:dest

277                            IMAGE *dest,       //destination image  in copy_sub_image()  argument
299 if (xext > dest->xsize - xdest) in copy_sub_image()
300 xext = dest->xsize - xdest; in copy_sub_image()
306 if (yext > dest->ysize - ydest) in copy_sub_image()
307 yext = dest->ysize - ydest; in copy_sub_image()
312 if (source->bpp == dest->bpp || !adjust_grey) in copy_sub_image()
315 shift = source->bps - dest->bps; in copy_sub_image()
319 aligned = source->bpp == dest->bpp; in copy_sub_image()
323 && (xext % srcppb == 0 || xdest + xext == dest->xsize); in copy_sub_image()
331 dest->check_legal_access (xdest, ydest + yoffset, xext); in copy_sub_image()
337 …memmove (dest->image + (dest->ymax - 1 - ydest - yoffset) * dest->xdim + xdest * 3, source->image … in copy_sub_image()
340 …memmove (dest->image + (dest->ymax - 1 - ydest - yoffset) * dest->xdim + xdest / srcppb, source->i… in copy_sub_image()
347 else if (source->bpp < dest->bpp) { in copy_sub_image()
385 dest->put_line (xdest, ydest + yoffset, xext, &copyline, 0); in copy_sub_image()
403 IMAGE *dest, //destination image in enlarge_sub_image() argument
428 xext = dest->xsize; //default to all in enlarge_sub_image()
432 if (xext > dest->xsize - xdest) in enlarge_sub_image()
433 xext = dest->xsize - xdest; in enlarge_sub_image()
435 yext = dest->ysize; //default to all in enlarge_sub_image()
438 if (yext > dest->ysize - ydest) in enlarge_sub_image()
439 yext = dest->ysize - ydest; in enlarge_sub_image()
451 shift = dest->bps - source->bps; in enlarge_sub_image()
456 bigline.bpp = dest->bpp == 24 ? source->bpp : dest->bpp; in enlarge_sub_image()
460 dest->check_legal_access (xdest, ydest + yoffset, xext); in enlarge_sub_image()
465 if (source->bpp == 24 && dest->bpp == 24) { in enlarge_sub_image()
500 dest->put_line (xdest, ydest + yoffset, xext, &bigline, 0); in enlarge_sub_image()
523 IMAGE *dest, //destination image in fast_reduce_sub_image() argument
548 if (xext > (dest->xsize - xdest) * scale) in fast_reduce_sub_image()
549 xext = (dest->xsize - xdest) * scale; in fast_reduce_sub_image()
555 if (yext > (dest->ysize - ydest) * scale) in fast_reduce_sub_image()
556 yext = (dest->ysize - ydest) * scale; in fast_reduce_sub_image()
567 shift = dest->bps - source->bps; in fast_reduce_sub_image()
574 dest->check_legal_access (xdest, ydest, destext); in fast_reduce_sub_image()
645 dest->put_line (xdest, ydest, destext, &copyline, 0); in fast_reduce_sub_image()
665 IMAGE *dest, //destination image in reduce_sub_image() argument
691 if (xext > (dest->xsize - xdest) * scale) in reduce_sub_image()
692 xext = (dest->xsize - xdest) * scale; in reduce_sub_image()
698 if (yext > (dest->ysize - ydest) * scale) in reduce_sub_image()
699 yext = (dest->ysize - ydest) * scale; in reduce_sub_image()
710 shift = dest->bps - source->bps; in reduce_sub_image()
717 dest->check_legal_access (xdest, ydest, destext); in reduce_sub_image()
786 dest->put_line (xdest, ydest, destext, &copyline, 0); in reduce_sub_image()
889 IMAGE *dest, //destination image in starbase_to_normal() argument
912 if (xext > dest->get_xsize () - xdest) in starbase_to_normal()
913 xext = dest->get_xsize () - xdest; in starbase_to_normal()
919 if (yext > dest->get_ysize () - ydest) in starbase_to_normal()
920 yext = dest->get_ysize () - ydest; in starbase_to_normal()
926 shift4 = 4 - dest->get_bpp (); //for different bpps in starbase_to_normal()
927 shift6 = 6 - dest->get_bpp (); in starbase_to_normal()
929 colour_shift = 8 - dest->get_bpp (); in starbase_to_normal()
930 white_level = dest->get_white_level (); in starbase_to_normal()
937 dest->check_legal_access (xdest, ydest + yoffset, xext); in starbase_to_normal()
965 dest->put_line (xdest, ydest + yoffset, xext, &copyline, 0); in starbase_to_normal()
1012 uinT8 *dest; //destination pointer in get_line() local
1028 dest = linebuf->line; //destination line in get_line()
1029 linebuf->pixels = dest; in get_line()
1032 *dest++ = white; //margins are white in get_line()
1038 memmove (dest, src, (unsigned) width); in get_line()
1044 *dest++ = bpp4table[*src++][1]; in get_line()
1050 *dest++ = *unpacksrc++; in get_line()
1051 *dest++ = *unpacksrc++; //copy nibbles in get_line()
1056 *dest++ = bpp4table[*src++][0]; in get_line()
1071 *dest++ = *unpacksrc++;//copy bytes in get_line()
1088 *dest++ = *unpacksrc++;//copy bytes in get_line()
1095 *dest++ = white; //margins are white in get_line()
1115 uinT8 *dest; //destination pointer in get_column() local
1130 dest = linebuf->line; //destination line in get_column()
1131 linebuf->pixels = dest; in get_column()
1134 *dest++ = white; //margins are white in get_column()
1140 *dest++ = *src; //copy bytes in get_column()
1141 *dest++ = *(src + 1); in get_column()
1142 *dest++ = *(src + 2); in get_column()
1149 *dest++ = *src; //copy bytes in get_column()
1158 *dest++ = bpp4table[*src][1]; in get_column()
1165 *dest++ = bpp4table[*src][0]; in get_column()
1176 *dest++ = bpp2table[*src][bit]; in get_column()
1186 *dest++ = bpp1table[*src][bit]; in get_column()
1192 *dest++ = white; //margins are white in get_column()
1232 uinT8 *dest; //destination pointer in put_line() local
1246 dest = image + xdim * (ymax - 1 - y); in put_line()
1255 dest += x * bytespp; in put_line()
1257 memmove (dest, src - 1, (unsigned) width); in put_line()
1261 dest += x * bytespp; in put_line()
1264 *dest++ = pixel; in put_line()
1265 *dest++ = pixel; in put_line()
1266 *dest++ = pixel; in put_line()
1271 dest += x; //offset in put_line()
1274 *dest++ = *src; in put_line()
1281 memmove (dest, src, (unsigned) width); in put_line()
1284 dest += x / 2; //offset on line in put_line()
1286 *dest &= 0xf0; //clean odd byte in put_line()
1287 *dest++ |= *src & 0x0f; //and copy it in put_line()
1296 *dest++ = pixel; in put_line()
1300 *dest &= 0x0f; //clean odd byte in put_line()
1301 *dest |= *src << 4; in put_line()
1306 dest += x / 4; //offset on line in put_line()
1309 pixel = *dest >> (8 - bit - bit); in put_line()
1316 *dest++ = pixel; //new pixel in put_line()
1328 pixel |= *dest & ((1 << (8 - bit - bit)) - 1); in put_line()
1329 *dest++ = pixel; //new pixel in put_line()
1334 dest += x / 8; //offset on line in put_line()
1337 pixel = *dest >> (8 - bit); in put_line()
1344 *dest++ = pixel; //new pixel in put_line()
1359 pixel |= *dest & ((1 << (8 - bit)) - 1); in put_line()
1360 *dest++ = pixel; //new pixel in put_line()
1381 uinT8 *dest; //destination pointer in put_column() local
1395 dest = image + xdim * (ymax - 1 - y); in put_column()
1405 dest += x * bytesperpix; in put_column()
1408 *dest = *src++; in put_column()
1409 *(dest + 1) = *src++; in put_column()
1410 *(dest + 2) = *src++; in put_column()
1411 dest -= xdim; in put_column()
1416 dest += x * bytesperpix; in put_column()
1419 *dest = pixel; in put_column()
1420 *(dest + 1) = pixel; in put_column()
1421 *(dest + 2) = pixel; in put_column()
1422 dest -= xdim; in put_column()
1426 dest += x; //offset in put_column()
1428 *dest = *src; in put_column()
1430 dest -= xdim; in put_column()
1434 dest += x / 2; //offset on line in put_column()
1437 *dest &= 0xf0; //clean odd byte in put_column()
1438 *dest |= *src & 0x0f; //and copy it in put_column()
1440 dest -= xdim; in put_column()
1445 *dest &= 0x0f; //clean odd byte in put_column()
1446 *dest |= *src << 4; in put_column()
1448 dest -= xdim; in put_column()
1453 dest += x / 4; //offset on line in put_column()
1459 *dest = (*dest & pixel) | ((*src & 3) << bit); in put_column()
1461 dest -= xdim; in put_column()
1465 dest += x / 8; //offset on line in put_column()
1471 *dest = (*dest & pixel) | ((*src & 1) << bit); in put_column()
1473 dest -= xdim; in put_column()