Debian Codegraph @

tools/jni/org/jpeg/jpegxl/wrapper/ImageData.java

raw
1 // Copyright (c) the JPEG XL Project Authors. All rights reserved.
2 //
3 // Use of this source code is governed by a BSD-style
4 // license that can be found in the LICENSE file.
5
6 package org.jpeg.jpegxl.wrapper;
7
8 import java.nio.Buffer;
9
10 /** POJO that contains necessary image data (dimensions, pixels,...). */
11 public class ImageData {
12 final int width;
13 final int height;
14 final Buffer pixels;
15 final Buffer icc;
16 final PixelFormat pixelFormat;
17
18 ImageData(int width, int height, Buffer pixels, Buffer icc, PixelFormat pixelFormat) {
19 this.width = width;
20 this.height = height;
21 this.pixels = pixels;
22 this.icc = icc;
23 this.pixelFormat = pixelFormat;
24 }
25 }