Lines Matching refs:pad
108 public YUVImage(int width, int pad, int height, int subsamp) { in YUVImage() argument
109 setBuf(new byte[TJ.bufSizeYUV(width, pad, height, subsamp)], width, pad, in YUVImage()
173 public YUVImage(byte[] yuvImage, int width, int pad, int height, in YUVImage() argument
175 setBuf(yuvImage, width, pad, height, subsamp); in YUVImage()
285 public void setBuf(byte[] yuvImage, int width, int pad, int height, in setBuf() argument
287 if (yuvImage == null || width < 1 || pad < 1 || ((pad & (pad - 1)) != 0) || in setBuf()
290 if (yuvImage.length < TJ.bufSizeYUV(width, pad, height, subsamp)) in setBuf()
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()
309 yuvPad = pad; in setBuf()
433 private static int pad(int v, int p) { in pad() method in YUVImage