org.jcodec.common.model
Class Picture

java.lang.Object
  extended by 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

Constructor Summary
Picture(int width, int height, int[][] data, ColorSpace color)
           
Picture(int width, int height, int[][] data, ColorSpace color, Rect crop)
           
Picture(Picture other)
           
 
Method Summary
 boolean compatible(Picture src)
           
 void copyFrom(Picture src)
           
static Picture create(int width, int height, ColorSpace colorSpace)
           
static Picture create(int width, int height, ColorSpace colorSpace, Rect crop)
           
 Picture createCompatible()
           
 Picture cropped()
           
 ColorSpace getColor()
           
 Rect getCrop()
           
 int getCroppedHeight()
           
 int getCroppedWidth()
           
 int[][] getData()
           
 int getHeight()
           
 int[] getPlaneData(int plane)
           
 int getPlaneHeight(int plane)
           
 int getPlaneWidth(int plane)
           
 int getWidth()
           
 void setCrop(Rect crop)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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)
Method Detail

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.