![JAR search and dependency download from the Maven repository](/logo.png)
org.jcodec.codecs.mjpeg.DecodedImage Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jcodec Show documentation
Show all versions of jcodec Show documentation
Pure Java implementation of video/audio codecs and formats
package org.jcodec.codecs.mjpeg;
/**
* This class is part of JCodec ( www.jcodec.org )
* This software is distributed under FreeBSD License
*
* @author stan
*
*/
public class DecodedImage {
private final int width;
private final int height;
private final int[] pixels;
public int getWidth() {
return width;
}
public int getHeight() {
return height;
}
public int[] getPixels() {
return pixels;
}
DecodedImage(int width, int height, int[] pixels) {
this.height = height;
this.pixels = pixels;
this.width = width;
}
public DecodedImage(int width, int height) {
this(width, height, new int[width * height]);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy