• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10/emacs-93/emacs/src/

Lines Matching +refs:format +refs:spec

160 XGetImage (display, pixmap, x, y, width, height, plane_mask, format)
166 int format; /* not used */
754 static void image_error P_ ((char *format, Lisp_Object, Lisp_Object));
852 /* Log error message with format string FORMAT and argument ARG.
859 image_error (format, arg1, arg2)
860 char *format;
863 add_to_log (format, arg1, arg2);
915 /* Parse image spec SPEC according to KEYWORDS. A valid image spec
916 has the format (image KEYWORD VALUE ...). One of the keyword/
922 parse_image_spec (spec, keywords, nkeywords, type)
923 Lisp_Object spec;
931 if (!IMAGEP (spec))
934 plist = XCDR (spec);
1062 image_spec_value (spec, key, found)
1063 Lisp_Object spec, key;
1068 xassert (valid_image_p (spec));
1070 for (tail = XCDR (spec);
1094 (spec, pixels, frame)
1095 Lisp_Object spec, pixels, frame;
1100 if (valid_image_p (spec))
1103 int id = lookup_image (f, spec);
1125 (spec, frame)
1126 Lisp_Object spec, frame;
1131 if (valid_image_p (spec))
1134 int id = lookup_image (f, spec);
1149 (spec, frame)
1150 Lisp_Object spec, frame;
1155 if (valid_image_p (spec))
1158 int id = lookup_image (f, spec);
1172 static struct image *make_image P_ ((Lisp_Object spec, unsigned hash));
1183 make_image (spec, hash)
1184 Lisp_Object spec;
1189 xassert (valid_image_p (spec));
1191 img->type = lookup_image_type (image_spec_value (spec, QCtype, NULL));
1193 img->spec = spec;
1760 Lisp_Object conversion, spec;
1763 spec = img->spec;
1775 mask = image_spec_value (spec, QCheuristic_mask, NULL);
1782 mask = image_spec_value (spec, QCmask, &found_p);
1803 conversion = image_spec_value (spec, QCconversion, NULL);
1828 lookup_image (f, spec)
1830 Lisp_Object spec;
1842 xassert (valid_image_p (spec));
1844 GCPRO1 (spec);
1847 hash = sxhash (spec, 0);
1851 if (img->hash == hash && !NILP (Fequal (img->spec, spec)))
1866 img = make_image (spec, hash);
1877 value = image_spec_value (spec, QCwidth, NULL);
1880 value = image_spec_value (spec, QCheight, NULL);
1891 ascent = image_spec_value (spec, QCascent, NULL);
1897 margin = image_spec_value (spec, QCmargin, NULL);
1909 relief = image_spec_value (spec, QCrelief, NULL);
1919 bg = image_spec_value (img->spec, QCbackground, NULL);
2419 image_error ("Cannot get importer component for `%s'", img->spec, Qnil);
2424 /* read from file system spec */
2429 img->spec, Qnil);
2440 img->spec, Qnil);
2447 image_error ("Error reading `%s'", img->spec, Qnil);
2466 image_error ("Error reading `%s'", img->spec, Qnil);
2472 specified_bg = image_spec_value (img->spec, QCbackground, NULL);
2509 if (NILP (image_spec_value (img->spec, QCbackground, NULL)))
2535 specified_file = image_spec_value (img->spec, QCfile, NULL);
2536 specified_data = image_spec_value (img->spec, QCdata, NULL);
2565 img->spec, Qnil);
2618 specified_file = image_spec_value (img->spec, QCfile, NULL);
2619 specified_data = image_spec_value (img->spec, QCdata, NULL);
2658 image_error ("Error reading image `%s'", img->spec, Qnil);
2674 specified_bg = image_spec_value (img->spec, QCbackground, NULL);
2705 if (NILP (image_spec_value (img->spec, QCbackground, NULL)))
2755 /* Vector of image_keyword structures describing the format
3287 value = image_spec_value (img->spec, QCforeground, NULL);
3293 value = image_spec_value (img->spec, QCbackground, NULL);
3310 image_error ("Unable to create X pixmap for `%s'", img->spec, Qnil);
3316 image_error ("Error loading XBM image `%s'", img->spec, Qnil);
3348 xassert (xbm_image_p (img->spec));
3350 /* If IMG->spec specifies a file name, create a non-file spec from it. */
3351 file_name = image_spec_value (img->spec, QCfile, NULL);
3371 image_error ("Error loading XBM image `%s'", img->spec, Qnil);
3391 data = image_spec_value (img->spec, QCdata, NULL);
3396 parsed_p = parse_image_spec (img->spec, fmt, XBM_LAST, Qxbm);
3461 img->spec, Qnil);
3507 /* The symbol `xpm' identifying XPM-format images. */
3529 /* Vector of image_keyword structures describing the format
3929 color_symbols = image_spec_value (img->spec, QCcolor_symbols, NULL);
3964 string buffer containing data in the same format as an XPM file. */
3969 specified_file = image_spec_value (img->spec, QCfile, NULL);
4002 Lisp_Object buffer = image_spec_value (img->spec, QCdata, NULL);
4086 image_error ("Error opening XPM file (%s)", img->spec, Qnil);
4090 image_error ("Invalid XPM file (%s)", img->spec, Qnil);
4094 image_error ("Out of memory (%s)", img->spec, Qnil);
4098 image_error ("Color allocation error (%s)", img->spec, Qnil);
4102 image_error ("Unknown error (%s)", img->spec, Qnil);
4389 color_symbols = image_spec_value (img->spec, QCcolor_symbols, NULL);
4476 image_error ("Out of memory (%s)", img->spec, Qnil);
4506 if (NILP (image_spec_value (img->spec, QCbackground, NULL)))
4530 image_error ("Invalid XPM file (%s)", img->spec, Qnil);
4550 /* If IMG->spec specifies a file name, create a non-file spec from it. */
4551 file_name = image_spec_value (img->spec, QCfile, NULL);
4571 image_error ("Error loading XPM image `%s'", img->spec, Qnil);
4584 data = image_spec_value (img->spec, QCdata, NULL);
4680 the Xlib spec, chapter 3.1. */
5477 /* Vector of image_keyword structures describing the format
5620 specified_file = image_spec_value (img->spec, QCfile, NULL);
5648 data = image_spec_value (img->spec, QCdata, NULL);
5656 image_error ("Not a PBM image: `%s'", img->spec, Qnil);
5690 image_error ("Not a PBM image: `%s'", img->spec, Qnil);
5726 parse_image_spec (img->spec, fmt, PBM_LAST, Qpbm);
5766 img->spec, Qnil);
5794 img->spec, Qnil);
5819 if (NILP (image_spec_value (img->spec, QCbackground, NULL)))
5870 /* Vector of image_keyword structures describing the format
6107 specified_file = image_spec_value (img->spec, QCfile, NULL);
6108 specified_data = image_spec_value (img->spec, QCdata, NULL);
6152 image_error ("Not a PNG image: `%s'", img->spec, Qnil);
6229 one data format: RGB or RGBA with 8 bits per channel. Let's
6230 transform other formats into that format. */
6273 = image_spec_value (img->spec, QCbackground, NULL);
6434 if (NILP (image_spec_value (img->spec, QCbackground, NULL)))
6535 /* Vector of image_keyword structures describing the format
6907 specified_file = image_spec_value (img->spec, QCfile, NULL);
6908 specified_data = image_spec_value (img->spec, QCdata, NULL);
6944 image_error ("Error reading JPEG image `%s': %s", img->spec,
7050 if (NILP (image_spec_value (img->spec, QCbackground, NULL)))
7112 /* Vector of image_keyword structures describing the format
7315 tiff_error_handler (title, format, ap)
7316 const char *title, *format;
7323 vsprintf (buf + len, format, ap);
7329 tiff_warning_handler (title, format, ap)
7330 const char *title, *format;
7337 vsprintf (buf + len, format, ap);
7360 specified_file = image_spec_value (img->spec, QCfile, NULL);
7361 specified_data = image_spec_value (img->spec, QCdata, NULL);
7408 image_error ("Cannot open memory source for `%s'", img->spec, Qnil);
7432 image_error ("Error reading TIFF image `%s'", img->spec, Qnil);
7474 if (NILP (image_spec_value (img->spec, QCbackground, NULL)))
7536 /* Vector of image_keyword structures describing the format
7701 specified_file = image_spec_value (img->spec, QCfile, NULL);
7702 specified_data = image_spec_value (img->spec, QCdata, NULL);
7738 image_error ("Cannot open memory source `%s'", img->spec, Qnil);
7757 image_error ("Error reading `%s'", img->spec, Qnil);
7763 image = image_spec_value (img->spec, QCindex, NULL);
7768 image, img->spec);
7826 requires more than can be done here (see the gif89 spec,
7910 if (NILP (image_spec_value (img->spec, QCbackground, NULL)))
7952 specified_file = image_spec_value (img->spec, QCfile, NULL);
7953 specified_data = image_spec_value (img->spec, QCdata, NULL);
8003 img->spec, Qnil);
8018 image_error ("Cannot allocate handle data ref for `%s'", img->spec, Qnil);
8044 image = image_spec_value (img->spec, QCindex, NULL);
8052 image, img->spec);
8057 specified_bg = image_spec_value (img->spec, QCbackground, NULL);
8108 if (NILP (image_spec_value (img->spec, QCbackground, NULL)))
8178 /* Vector of image_keyword structures describing the format
8283 pt_width = image_spec_value (img->spec, QCpt_width, NULL);
8286 pt_height = image_spec_value (img->spec, QCpt_height, NULL);
8308 image_error ("Unable to create pixmap for `%s'", img->spec, Qnil);
8329 loader = image_spec_value (img->spec, QCloader, NULL);
8333 img->data.lisp_val = call6 (loader, frame, img->spec,
8424 img->spec, Qnil);
8449 (spec)
8450 Lisp_Object spec;
8452 return valid_image_p (spec) ? Qt : Qnil;
8457 (spec)
8458 Lisp_Object spec;
8462 if (valid_image_p (spec))
8463 id = lookup_image (SELECTED_FRAME (), spec);
8465 debug_print (spec);