Lines Matching refs:height
47 * image. The width and height of each plane are determined by the image
48 * width, height, and level of chrominance subsampling. The luminance plane
52 * height is the image height padded to the nearest multiple of the vertical
56 * plane height is equal to the luminance plane height divided by the vertical
84 * @param height height (in pixels) of the YUV image
89 public YUVImage(int width, int[] strides, int height, int subsamp)
91 setBuf(null, null, width, strides, height, subsamp, true);
103 * @param height height (in pixels) of the YUV image
108 public YUVImage(int width, int pad, int height, int subsamp)
110 setBuf(new byte[TJ.bufSizeYUV(width, pad, height, subsamp)], width, pad,
111 height, subsamp);
122 * {@link TJ#planeSizeYUV TJ.planeSizeYUV}(i, width, strides[i], height, subsamp)</code>
143 * @param height height (in pixels) of the new YUV image (or subregion)
149 int height, int subsamp) throws Exception {
150 setBuf(planes, offsets, width, strides, height, subsamp, false);
169 * @param height height (in pixels) of the YUV image
174 public YUVImage(byte[] yuvImage, int width, int pad, int height,
176 setBuf(yuvImage, width, pad, height, subsamp);
186 * {@link TJ#planeSizeYUV TJ.planeSizeYUV}(i, width, strides[i], height, subsamp)</code>
207 * @param height height (in pixels) of the YUV image (or subregion)
213 int height, int subsamp) throws Exception {
214 setBuf(planes, offsets, width, strides, height, subsamp, false);
218 int height, int subsamp, boolean alloc) throws Exception {
219 if ((planes == null && !alloc) || width < 1 || height < 1 || subsamp < 0 ||
235 int ph = TJ.planeHeight(i, height, subsamp);
236 int planeSize = TJ.planeSizeYUV(i, width, strides[i], height, subsamp);
257 yuvHeight = height;
276 * @param height height (in pixels) of the YUV image
281 public void setBuf(byte[] yuvImage, int width, int pad, int height,
284 height < 1 || subsamp < 0 || subsamp >= TJ.NUMSAMP)
286 if (yuvImage.length < TJ.bufSizeYUV(width, pad, height, subsamp))
300 strides[0] * TJ.planeHeight(0, height, subsamp);
302 strides[1] * TJ.planeHeight(1, height, subsamp);
306 setBuf(planes, offsets, width, strides, height, subsamp);
321 * Returns the height of the YUV image (or subregion.)
323 * @return the height of the YUV image (or subregion)