Lines Matching refs:width
79 public YuvImage(byte[] yuv, int format, int width, int height, int[] strides) { in YuvImage() argument
87 if (width <= 0 || height <= 0) { in YuvImage()
97 mStrides = calculateStrides(width, format); in YuvImage()
104 mWidth = width; in YuvImage()
141 return nativeCompressToJpeg(mData, mFormat, rectangle.width(), in compressToJpeg()
199 private int[] calculateStrides(int width, int format) { in calculateStrides() argument
202 strides = new int[] {width, width}; in calculateStrides()
207 strides = new int[] {width * 2}; in calculateStrides()
215 int width = rect.width(); in adjustRectangle() local
219 width &= ~1; in adjustRectangle()
223 rect.right = rect.left + width; in adjustRectangle()
229 width &= ~1; in adjustRectangle()
231 rect.right = rect.left + width; in adjustRectangle()
238 int format, int width, int height, int[] offsets, int[] strides, in nativeCompressToJpeg() argument