Lines Matching refs:planes
148 public YUVImage(byte[][] planes, int[] offsets, int width, int[] strides, in YUVImage() argument
150 setBuf(planes, offsets, width, strides, height, subsamp, false); in YUVImage()
212 public void setBuf(byte[][] planes, int[] offsets, int width, int strides[], in setBuf() argument
214 setBuf(planes, offsets, width, strides, height, subsamp, false); in setBuf()
217 private void setBuf(byte[][] planes, int[] offsets, int width, int strides[], in setBuf() argument
219 if ((planes == null && !alloc) || width < 1 || height < 1 || subsamp < 0 || in setBuf()
224 if (planes.length != nc || (offsets != null && offsets.length != nc) || in setBuf()
243 planes[i] = new byte[strides[i] * ph]; in setBuf()
245 if (planes[i] == null || offsets[i] < 0) in setBuf()
249 if (planes[i].length < offsets[i] + planeSize) in setBuf()
253 yuvPlanes = planes; in setBuf()
290 byte[][] planes = new byte[nc][]; in setBuf()
294 planes[0] = yuvImage; in setBuf()
298 planes[1] = planes[2] = yuvImage; in setBuf()
306 setBuf(planes, offsets, width, strides, height, subsamp); in setBuf()