Mercurial > hg > octave-nkf
view build-aux/OctJavaQry.java @ 17351:80bf005cdf8e
New function __magick_ping__ to speed reading of images.
* __magick_read__.cc (__magick_ping__): New function that only pings
one of the images in a file to obtain height, width and format
information. This becomes an alternative to imfinfo for internal
Octave functions. Because imfinfo requires reading of the whole
file and all images, this has a large speed increase, specially
for multipage images.
* imformats.m: use __magick_ping__() to check image format.
* private/__imread__.m: use __magick_ping__() to get rows and columns
of an image which is used to set the reading defaults.
author | Carnë Draug <carandraug@octave.org> |
---|---|
date | Fri, 30 Aug 2013 07:19:13 +0100 |
parents | fafd51a1b0f0 |
children |
line wrap: on
line source
// Code used by configure script to locate Java installation variables. // Only compiled code, OctJavaQry.class, is distributed. public class OctJavaQry { public static void main (String[] args) { if (args.length > 0) { if (args[0].equals ("JAVA_HOME")) { System.out.println (System.getProperty ("java.home")); } else if (args[0].equals ("JAVA_LDPATH")) { System.out.println (System.getProperty ("java.library.path")); } else if (args[0].equals ("JAVA_BOOTPATH")) { System.out.println (System.getProperty ("sun.boot.library.path")); } } } }