/** Array version of: {@link #stbi_info_from_memory info_from_memory} */ @NativeType("int") public static boolean stbi_info_from_memory(@NativeType("stbi_uc const *") ByteBuffer buffer, @NativeType("int *") int[] x, @NativeType("int *") int[] y, @NativeType("int *") int[] comp) { if (CHECKS) { check(x, 1); check(y, 1); check(comp, 1); } return nstbi_info_from_memory(memAddress(buffer), buffer.remaining(), x, y, comp) != 0; }
/** * In-memory version of {@link #stbi_info info}. * * @param buffer the buffer from which to load the image data * @param x outputs the image width in pixels * @param y outputs the image height in pixels * @param comp outputs number of components in image */ @NativeType("int") public static boolean stbi_info_from_memory(@NativeType("stbi_uc const *") ByteBuffer buffer, @NativeType("int *") IntBuffer x, @NativeType("int *") IntBuffer y, @NativeType("int *") IntBuffer comp) { if (CHECKS) { check(x, 1); check(y, 1); check(comp, 1); } return nstbi_info_from_memory(memAddress(buffer), buffer.remaining(), memAddress(x), memAddress(y), memAddress(comp)) != 0; }