Lines Matching refs:width

169         int width = pixels.getWidth();  in setThumbnail()  local
172 if (width > MAX_THUMBNAIL_DIMENSION || height > MAX_THUMBNAIL_DIMENSION) { in setThumbnail()
173 throw new IllegalArgumentException("Thumbnail dimensions width,height (" + width + in setThumbnail()
179 nativeSetThumbnail(rgbBuffer, width, height); in setThumbnail()
210 int width = pixels.getWidth(); in setThumbnail() local
213 if (width > MAX_THUMBNAIL_DIMENSION || height > MAX_THUMBNAIL_DIMENSION) { in setThumbnail()
214 throw new IllegalArgumentException("Thumbnail dimensions width,height (" + width + in setThumbnail()
220 nativeSetThumbnail(rgbBuffer, width, height); in setThumbnail()
324 int width = size.getWidth(); in writeInputStream() local
326 if (width <= 0 || height <= 0) { in writeInputStream()
327 throw new IllegalArgumentException("Size with invalid width, height: (" + width + "," + in writeInputStream()
330 nativeWriteInputStream(dngOutput, pixels, width, height, offset); in writeInputStream()
379 int width = size.getWidth(); in writeByteBuffer() local
382 writeByteBuffer(width, height, pixels, dngOutput, DEFAULT_PIXEL_STRIDE, in writeByteBuffer()
383 width * DEFAULT_PIXEL_STRIDE, offset); in writeByteBuffer()
472 private void writeByteBuffer(int width, int height, ByteBuffer pixels, OutputStream dngOutput, in writeByteBuffer() argument
474 if (width <= 0 || height <= 0) { in writeByteBuffer()
475 throw new IllegalArgumentException("Image with invalid width, height: (" + width + "," + in writeByteBuffer()
484 int minRowStride = pixelStride * width; in writeByteBuffer()
490 nativeWriteImage(dngOutput, width, height, pixels, rowStride, pixelStride, offset, in writeByteBuffer()
531 int width = yuvImage.getWidth(); in convertToRGB() local
533 ByteBuffer buf = ByteBuffer.allocateDirect(BYTES_PER_RGB_PIX * width * height); in convertToRGB()
556 byte[] yFullRow = new byte[yPixStride * (width - 1) + 1]; in convertToRGB()
557 byte[] uFullRow = new byte[uPixStride * (width / 2 - 1) + 1]; in convertToRGB()
558 byte[] vFullRow = new byte[vPixStride * (width / 2 - 1) + 1]; in convertToRGB()
559 byte[] finalRow = new byte[BYTES_PER_RGB_PIX * width]; in convertToRGB()
568 for (int j = 0; j < width; j++) { in convertToRGB()
590 int width = argbBitmap.getWidth(); in convertToRGB() local
592 ByteBuffer buf = ByteBuffer.allocateDirect(BYTES_PER_RGB_PIX * width * height); in convertToRGB()
594 int[] pixelRow = new int[width]; in convertToRGB()
595 byte[] finalRow = new byte[BYTES_PER_RGB_PIX * width]; in convertToRGB()
597 argbBitmap.getPixels(pixelRow, /*offset*/0, /*stride*/width, /*x*/0, /*y*/i, in convertToRGB()
598 /*width*/width, /*height*/1); in convertToRGB()
599 for (int j = 0; j < width; j++) { in convertToRGB()
644 private synchronized native void nativeSetThumbnail(ByteBuffer buffer, int width, int height); in nativeSetThumbnail() argument
646 private synchronized native void nativeWriteImage(OutputStream out, int width, int height, in nativeWriteImage() argument
652 int width, int height, long offset) in nativeWriteInputStream() argument