Lines Matching refs:subsamp
89 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
110 setBuf(new byte[TJ.bufSizeYUV(width, pad, height, subsamp)], width, pad, in YUVImage()
111 height, subsamp); in YUVImage()
149 int height, int subsamp) throws Exception { in YUVImage() argument
150 setBuf(planes, offsets, width, strides, height, subsamp, false); in YUVImage()
175 int subsamp) throws Exception { in YUVImage() argument
176 setBuf(yuvImage, width, pad, height, subsamp); in YUVImage()
213 int height, int subsamp) throws Exception { in setBuf() argument
214 setBuf(planes, offsets, width, strides, height, subsamp, false); in setBuf()
218 int height, int subsamp, boolean alloc) throws Exception { in setBuf() argument
219 if ((planes == null && !alloc) || width < 1 || height < 1 || subsamp < 0 || in setBuf()
220 subsamp >= TJ.NUMSAMP) in setBuf()
223 int nc = (subsamp == TJ.SAMP_GRAY ? 1 : 3); in setBuf()
234 int pw = TJ.planeWidth(i, width, subsamp); in setBuf()
235 int ph = TJ.planeHeight(i, height, subsamp); in setBuf()
236 int planeSize = TJ.planeSizeYUV(i, width, strides[i], height, subsamp); in setBuf()
258 yuvSubsamp = subsamp; in setBuf()
282 int subsamp) throws Exception { in setBuf() argument
284 height < 1 || subsamp < 0 || subsamp >= TJ.NUMSAMP) in setBuf()
286 if (yuvImage.length < TJ.bufSizeYUV(width, pad, height, subsamp)) in setBuf()
289 int nc = (subsamp == TJ.SAMP_GRAY ? 1 : 3); in setBuf()
295 strides[0] = PAD(TJ.planeWidth(0, width, subsamp), pad); in setBuf()
296 if (subsamp != TJ.SAMP_GRAY) { in setBuf()
297 strides[1] = strides[2] = PAD(TJ.planeWidth(1, width, subsamp), pad); in setBuf()
300 strides[0] * TJ.planeHeight(0, height, subsamp); in setBuf()
302 strides[1] * TJ.planeHeight(1, height, subsamp); in setBuf()
306 setBuf(planes, offsets, width, strides, height, subsamp); in setBuf()