Lines Matching refs:TJ
109 setBuf(new byte[TJ.bufSizeYUV(width, pad, height, subsamp)], width, pad, in YUVImage()
219 subsamp >= TJ.NUMSAMP) in setBuf()
222 int nc = (subsamp == TJ.SAMP_GRAY ? 1 : 3); in setBuf()
233 int pw = TJ.planeWidth(i, width, subsamp); in setBuf()
234 int ph = TJ.planeHeight(i, height, subsamp); in setBuf()
235 int planeSize = TJ.planeSizeYUV(i, width, strides[i], height, subsamp); in setBuf()
283 height < 1 || subsamp < 0 || subsamp >= TJ.NUMSAMP) in setBuf()
285 if (yuvImage.length < TJ.bufSizeYUV(width, pad, height, subsamp)) in setBuf()
288 int nc = (subsamp == TJ.SAMP_GRAY ? 1 : 3); in setBuf()
294 strides[0] = PAD(TJ.planeWidth(0, width, subsamp), pad); in setBuf()
295 if (subsamp != TJ.SAMP_GRAY) { in setBuf()
296 strides[1] = strides[2] = PAD(TJ.planeWidth(1, width, subsamp), pad); in setBuf()
299 strides[0] * TJ.planeHeight(0, height, subsamp); in setBuf()
301 strides[1] * TJ.planeHeight(1, height, subsamp); in setBuf()
375 if (yuvSubsamp < 0 || yuvSubsamp >= TJ.NUMSAMP) in getSubsamp()
399 if (yuvPlanes == null || yuvSubsamp < 0 || yuvSubsamp >= TJ.NUMSAMP) in getBuf()
401 int nc = (yuvSubsamp == TJ.SAMP_GRAY ? 1 : 3); in getBuf()
416 if (yuvPlanes == null || yuvSubsamp < 0 || yuvSubsamp >= TJ.NUMSAMP) in getSize()
418 int nc = (yuvSubsamp == TJ.SAMP_GRAY ? 1 : 3); in getSize()
425 return TJ.bufSizeYUV(yuvWidth, yuvPad, yuvHeight, yuvSubsamp); in getSize()