Home | History | Annotate | Download | only in turbojpeg

Lines Matching refs:pad

100    * @param pad Each line of each plane in the YUV image buffer will be padded
108 public YUVImage(int width, int pad, int height, int subsamp)
110 setBuf(new byte[TJ.bufSizeYUV(width, pad, height, subsamp)], width, pad,
165 * @param pad the line padding used in the YUV image buffer. For
167 * nearest multiple of 4 bytes, then <code>pad</code> should be set to 4.
174 public YUVImage(byte[] yuvImage, int width, int pad, int height,
176 setBuf(yuvImage, width, pad, height, subsamp);
272 * @param pad the line padding used in the YUV image buffer. For
274 * nearest multiple of 4 bytes, then <code>pad</code> should be set to 4.
281 public void setBuf(byte[] yuvImage, int width, int pad, int height,
283 if (yuvImage == null || width < 1 || pad < 1 || ((pad & (pad - 1)) != 0) ||
286 if (yuvImage.length < TJ.bufSizeYUV(width, pad, height, subsamp))
295 strides[0] = PAD(TJ.planeWidth(0, width, subsamp), pad);
297 strides[1] = strides[2] = PAD(TJ.planeWidth(1, width, subsamp), pad);
305 yuvPad = pad;
429 private static final int PAD(int v, int p) {