Lines Matching defs:img

55     XImage              *img;
79 static void X11SD_SwapBytes(X11SDOps *xsdo, XImage *img, int depth, int bpp);
551 XImage *img = NULL;
562 img = XShmCreateImage(awt_display, xsdo->configData->awt_visInfo.visual,
565 if (img == NULL) {
570 shmget(IPC_PRIVATE, height * img->bytes_per_line,
577 XDestroyImage(img);
588 XDestroyImage(img);
610 XDestroyImage(img);
614 img->data = shminfo->shmaddr;
615 img->obdata = (char *)shminfo;
617 return img;
640 XImage *img = NULL;
652 img = X11SD_CreateSharedImage(xsdo, width, height);
653 if (img == NULL) {
656 scan = img->bytes_per_line;
657 shminfo = (XShmSegmentInfo*)img->obdata;
658 XFree(img);
910 xpriv->img = NULL;
983 xpriv->img = X11SD_GetImage(env, xsdo, &pRasInfo->bounds, lockFlags);
984 if (xpriv->img) {
985 int scan = xpriv->img->bytes_per_line;
988 pRasInfo->rasBase = xpriv->img->data - x * mult - y * scan;
1040 xpriv->img != NULL)
1054 if (xpriv->img->byte_order != nativeByteOrder) {
1058 X11SD_SwapBytes(xsdo, xpriv->img, xsdo->depth,
1064 if (xpriv->img->obdata != NULL) {
1066 xpriv->img, 0, 0, x, y, w, h, False);
1070 xpriv->img, 0, 0, x, y, w, h);
1077 xpriv->img, 0, 0, x, y, w, h);
1082 X11SD_DisposeOrCacheXImage(xpriv->img);
1083 xpriv->img = (XImage *)NULL;
1257 X11SD_SwapBytes(X11SDOps *xsdo, XImage * img, int depth, int bpp) {
1258 int lengthInBytes = img->height * img->bytes_per_line;
1267 unsigned short *d = (unsigned short *)img->data;
1273 img->byte_order = nativeByteOrder;
1274 img->bitmap_bit_order = nativeByteOrder;
1287 int scan = img->bytes_per_line;
1288 unsigned char *d = (unsigned char *) img->data;
1293 for (i = 0; i < img->height; i++, d += scan) {
1295 for (j = 0; j < img->width; j++, d1 += 3) {
1308 unsigned int *d = (unsigned int *) img->data;
1328 XImage * img = NULL;
1366 img = X11SD_GetSharedImage(xsdo, w, h, maxWidth, maxHeight, readBits);
1373 if (img != NULL) {
1374 if (!XShmGetImage(awt_display, drawable, img, x, y, -1)) {
1375 X11SD_DisposeOrCacheXImage(img);
1376 img = NULL;
1379 if (img == NULL) {
1380 img = XGetImage(awt_display, drawable, x, y, w, h, -1, ZPixmap);
1381 if (img != NULL) {
1382 img->obdata = NULL;
1386 img = XGetImage(awt_display, drawable, x, y, w, h, -1, ZPixmap);
1388 if (img == NULL) {
1390 img = XCreateImage(awt_display,
1393 if (img == NULL) {
1397 scan = img->bytes_per_line;
1398 img->data = malloc(h * scan);
1399 if (img->data == NULL) {
1400 XFree(img);
1432 img_addr = img->data +
1445 img->obdata = NULL;
1447 if (depth > 8 && img->byte_order != nativeByteOrder) {
1448 X11SD_SwapBytes(xsdo, img, depth,
1459 if (img == NULL) {
1460 img = XCreateImage(awt_display,
1463 if (img == NULL) {
1467 img->data = malloc(h * img->bytes_per_line);
1468 if (img->data == NULL) {
1469 XFree(img);
1473 img->obdata = NULL;
1475 if (img->byte_order != nativeByteOrder &&
1478 img->byte_order = nativeByteOrder;
1479 img->bitmap_bit_order = nativeByteOrder;
1483 return img;