org.jcodec.common.model
Class Picture
java.lang.Object
org.jcodec.common.model.Picture
- Direct Known Subclasses:
- Frame
public class Picture
- extends Object
This class is part of JCodec ( www.jcodec.org ) This software is distributed
under FreeBSD License
A YUV picture
- Author:
- The JCodec project
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Picture
public Picture(int width,
int height,
int[][] data,
ColorSpace color)
Picture
public Picture(int width,
int height,
int[][] data,
ColorSpace color,
Rect crop)
Picture
public Picture(Picture other)
create
public static Picture create(int width,
int height,
ColorSpace colorSpace)
create
public static Picture create(int width,
int height,
ColorSpace colorSpace,
Rect crop)
getWidth
public int getWidth()
getHeight
public int getHeight()
getPlaneData
public int[] getPlaneData(int plane)
getColor
public ColorSpace getColor()
getData
public int[][] getData()
getCrop
public Rect getCrop()
getPlaneWidth
public int getPlaneWidth(int plane)
getPlaneHeight
public int getPlaneHeight(int plane)
compatible
public boolean compatible(Picture src)
createCompatible
public Picture createCompatible()
copyFrom
public void copyFrom(Picture src)
cropped
public Picture cropped()
setCrop
public void setCrop(Rect crop)
getCroppedWidth
public int getCroppedWidth()
getCroppedHeight
public int getCroppedHeight()
Copyright © 2013. All Rights Reserved.