Lines Matching refs:offsets
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
224 if (planes.length != nc || (offsets != null && offsets.length != nc) || in setBuf()
228 if (offsets == null) in setBuf()
229 offsets = new int[nc]; in setBuf()
245 if (planes[i] == null || offsets[i] < 0) in setBuf()
247 if (strides[i] < 0 && offsets[i] - planeSize + pw < 0) in setBuf()
249 if (planes[i].length < offsets[i] + planeSize) in setBuf()
254 yuvOffsets = offsets; in setBuf()
292 int[] offsets = new int[nc]; in setBuf() local
299 offsets[1] = offsets[0] + in setBuf()
301 offsets[2] = offsets[1] + in setBuf()
306 setBuf(planes, offsets, width, strides, height, subsamp); in setBuf()