Lines Matching refs:format
39 * The YUV format as defined in {@link PixelFormat}.
70 * @param format The YUV data format as defined in {@link PixelFormat}.
75 * padding and derives the row bytes by format and width itself.
76 * @throws IllegalArgumentException if format is not support; width or height <= 0; or yuv is
79 public YuvImage(byte[] yuv, int format, int width, int height, int[] strides) {
80 if (format != ImageFormat.NV21 &&
81 format != ImageFormat.YUY2) {
97 mStrides = calculateStrides(width, format);
103 mFormat = format;
155 * @return the YUV format as defined in {@link PixelFormat}.
199 private int[] calculateStrides(int width, int format) {
201 if (format == ImageFormat.NV21) {
206 if (format == ImageFormat.YUY2) {
238 int format, int width, int height, int[] offsets, int[] strides,