• Home
  • Raw
  • Download

Lines Matching refs:subsamp

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()
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()
110 height, subsamp); in YUVImage()
148 int height, int subsamp) { in YUVImage() argument
149 setBuf(planes, offsets, width, strides, height, subsamp, false); in YUVImage()
174 int subsamp) { in YUVImage() argument
175 setBuf(yuvImage, width, pad, height, subsamp); in YUVImage()
212 int height, int subsamp) { in setBuf() argument
213 setBuf(planes, offsets, width, strides, height, subsamp, false); in setBuf()
217 int height, int subsamp, boolean alloc) { in setBuf() argument
218 if ((planes == null && !alloc) || width < 1 || height < 1 || subsamp < 0 || in setBuf()
219 subsamp >= TJ.NUMSAMP) in setBuf()
222 int nc = (subsamp == TJ.SAMP_GRAY ? 1 : 3); in setBuf()
236 int pw = TJ.planeWidth(i, width, subsamp); in setBuf()
237 int ph = TJ.planeHeight(i, height, subsamp); in setBuf()
238 int planeSize = TJ.planeSizeYUV(i, width, strides[i], height, subsamp); in setBuf()
262 yuvSubsamp = subsamp; in setBuf()
286 int subsamp) { in setBuf() argument
288 height < 1 || subsamp < 0 || subsamp >= TJ.NUMSAMP) in setBuf()
290 if (yuvImage.length < TJ.bufSizeYUV(width, pad, height, subsamp)) in setBuf()
293 int nc = (subsamp == TJ.SAMP_GRAY ? 1 : 3); in setBuf()
299 strides[0] = pad(TJ.planeWidth(0, width, subsamp), pad); in setBuf()
300 if (subsamp != TJ.SAMP_GRAY) { 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()