Lines Matching refs:planes
147 public YUVImage(byte[][] planes, int[] offsets, int width, int[] strides, in YUVImage() argument
149 setBuf(planes, offsets, width, strides, height, subsamp, false); in YUVImage()
211 public void setBuf(byte[][] planes, int[] offsets, int width, int[] strides, in setBuf() argument
213 setBuf(planes, offsets, width, strides, height, subsamp, false); in setBuf()
216 private void setBuf(byte[][] planes, int[] offsets, int width, int[] strides, in setBuf() argument
218 if ((planes == null && !alloc) || width < 1 || height < 1 || subsamp < 0 || in setBuf()
223 if ((planes != null && planes.length != nc) || in setBuf()
228 if (planes == null) in setBuf()
229 planes = new byte[nc][]; in setBuf()
245 planes[i] = new byte[strides[i] * ph]; in setBuf()
247 if (planes[i] == null || offsets[i] < 0) in setBuf()
252 if (planes[i].length < offsets[i] + planeSize) in setBuf()
257 yuvPlanes = planes; in setBuf()
294 byte[][] planes = new byte[nc][]; in setBuf()
298 planes[0] = yuvImage; in setBuf()
302 planes[1] = planes[2] = yuvImage; in setBuf()
310 setBuf(planes, offsets, width, strides, height, subsamp); in setBuf()