Lines Matching refs:strides

90   public YUVImage(int width, int[] strides, int height, int subsamp) {  in YUVImage()  argument
91 setBuf(null, null, width, strides, height, subsamp, true); in YUVImage()
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
225 (strides != null && strides.length != nc)) in setBuf()
232 if (strides == null) in setBuf()
233 strides = new int[nc]; in setBuf()
238 int planeSize = TJ.planeSizeYUV(i, width, strides[i], height, subsamp); in setBuf()
240 if (strides[i] == 0) in setBuf()
241 strides[i] = pw; in setBuf()
243 if (strides[i] < pw) in setBuf()
245 planes[i] = new byte[strides[i] * ph]; in setBuf()
249 if (strides[i] < 0 && offsets[i] - planeSize + pw < 0) in setBuf()
260 yuvStrides = strides; in setBuf()
295 int[] strides = new int[nc]; in setBuf() local
299 strides[0] = pad(TJ.planeWidth(0, width, subsamp), pad); in setBuf()
301 strides[1] = strides[2] = pad(TJ.planeWidth(1, width, subsamp), pad); in setBuf()
304 strides[0] * TJ.planeHeight(0, height, subsamp); in setBuf()
306 strides[1] * TJ.planeHeight(1, height, subsamp); in setBuf()
310 setBuf(planes, offsets, width, strides, height, subsamp); in setBuf()