Home | History | Annotate | Download | only in turbojpeg

Lines Matching defs:YUVImage

35  * YUV, decompress to YUV, and YUV decode.  A <code>YUVImage</code> instance
65 public class YUVImage {
71 * Create a new <code>YUVImage</code> instance backed by separate image
79 * {@link YUVImage above}.) If <code>strides</code> is null, then the
89 public YUVImage(int width, int[] strides, int height, int subsamp)
95 * Create a new <code>YUVImage</code> instance backed by a unified image
108 public YUVImage(int width, int pad, int height, int subsamp)
115 * Create a new <code>YUVImage</code> instance from a set of existing image
125 * @param offsets If this <code>YUVImage</code> instance represents a
136 * {@link YUVImage above}.) If <code>strides</code> is null, then the
139 * to each plane or to specify that this <code>YUVImage</code> instance is a
148 public YUVImage(byte[][] planes, int[] offsets, int width, int[] strides,
154 * Create a new <code>YUVImage</code> instance from an existing unified image
157 * @param yuvImage image buffer that contains or will contain YUV planar
160 * sequentially in the buffer (see {@link YUVImage above} for a description
174 public YUVImage(byte[] yuvImage, int width, int pad, int height,
176 setBuf(yuvImage, width, pad, height, subsamp);
180 * Assign a set of image planes to this <code>YUVImage</code> instance.
189 * @param offsets If this <code>YUVImage</code> instance represents a
200 * {@link YUVImage above}.) If <code>strides</code> is null, then the
203 * to each plane or to specify that this <code>YUVImage</code> image is a
221 throw new Exception("Invalid argument in YUVImage::setBuf()");
226 throw new Exception("YUVImage::setBuf(): planes, offsets, or strides array is the wrong size");
246 throw new Exception("Invalid argument in YUVImage::setBuf()");
262 * Assign a unified image buffer to this <code>YUVImage</code> instance.
264 * @param yuvImage image buffer that contains or will contain YUV planar
267 * sequentially in the buffer (see {@link YUVImage above} for a description
281 public void setBuf(byte[] yuvImage, int width, int pad, int height,
283 if (yuvImage == null || width < 1 || pad < 1 || ((pad & (pad - 1)) != 0) ||
285 throw new Exception("Invalid argument in YUVImage::setBuf()");
286 if (yuvImage.length < TJ.bufSizeYUV(width, pad, height, subsamp))
294 planes[0] = yuvImage;
298 planes[1] = planes[2] = yuvImage;