net.sf.theora_java.jna
Class TheoraLibrary.yuv_buffer

java.lang.Object
  extended by com.sun.jna.Structure
      extended by net.sf.theora_java.jna.TheoraLibrary.yuv_buffer
Enclosing interface:
TheoraLibrary

public static class TheoraLibrary.yuv_buffer
extends com.sun.jna.Structure

A YUV buffer for passing uncompressed frames to and from the codec. This holds a Y'CbCr frame in planar format. The CbCr planes can be subsampled and have their own separate dimensions and row stride offsets. Note that the strides may be negative in some configurations. For theora the width and height of the largest plane must be a multiple of 16. The actual meaningful picture size and offset are stored in the theora_info structure; frames returned by the decoder may need to be cropped for display. All samples are 8 bits. Within each plane samples are ordered by row from the top of the frame to the bottom. Within each row samples are ordered from left to right.


Field Summary
 com.sun.jna.Pointer u
          < Pointer to start of luminance data
 int uv_height
          < Height of the Cb and Cr chroma planes
 int uv_stride
          < Width of the chroma planes
 int uv_width
          < Offset in bytes between successive rows
 com.sun.jna.Pointer v
          < Pointer to start of Cb data
 com.sun.jna.Pointer y
          < Offset between successive chroma rows
 int y_height
          < Width of the Y' luminance plane
 int y_stride
          < Height of the luminance plane
 int y_width
           
 
Fields inherited from class com.sun.jna.Structure
ALIGN_DEFAULT, ALIGN_GNUC, ALIGN_MSVC, ALIGN_NONE, CALCULATE_SIZE
 
Constructor Summary
TheoraLibrary.yuv_buffer()
           
 
Method Summary
 
Methods inherited from class com.sun.jna.Structure
allocateMemory, allocateMemory, clear, equals, getMemory, getNativeAlignment, getNativeSize, getNativeSize, getPointer, hashCode, read, setAlignType, setTypeMapper, size, toArray, toArray, toString, useMemory, useMemory, write
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

y_width

public int y_width

y_height

public int y_height
< Width of the Y' luminance plane


y_stride

public int y_stride
< Height of the luminance plane


uv_width

public int uv_width
< Offset in bytes between successive rows


uv_height

public int uv_height
< Height of the Cb and Cr chroma planes


uv_stride

public int uv_stride
< Width of the chroma planes


y

public com.sun.jna.Pointer y
< Offset between successive chroma rows


u

public com.sun.jna.Pointer u
< Pointer to start of luminance data


v

public com.sun.jna.Pointer v
< Pointer to start of Cb data

Constructor Detail

TheoraLibrary.yuv_buffer

public TheoraLibrary.yuv_buffer()