net.sf.theora_java.jna
Class TheoraLibrary.theora_info

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

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

Theora bitstream info. Contains the basic playback parameters for a stream, corresponds to the initial 'info' header packet. Encoded theora frames must be a multiple of 16 is size; this is what the width and height members represent. To handle other sizes, a crop rectangle is specified in frame_height and frame_width, offset_x and offset_y. The offset and size should still be a multiple of 2 to avoid chroma sampling shifts. Offset values in this structure are measured from the upper left of the image. Frame rate, in frames per second, is stored as a rational fraction. So is the aspect ratio. Note that this refers to the aspect ratio of the frame pixels, not of the overall frame itself. see the example code for use of the other parameters and good default settings for the encoder parameters.


Field Summary
 int aspect_denominator
          < pixel aspect ratio numerator
 int aspect_numerator
          < frame rate denominator
 com.sun.jna.Pointer codec_setup
           
 int colorspace
          < pixel aspect ratio denominator
 int dropframes_p
           
 int fps_denominator
          < frame rate numerator
 int fps_numerator
          < vertical offset of the displayed frame
 int frame_height
          < display frame width
 int frame_width
          < encoded frame height
 int height
          < encoded frame width
 int keyframe_auto_p
           
 int keyframe_auto_threshold
           
 int keyframe_data_target_bitrate
           
 int keyframe_frequency
           
 int keyframe_frequency_force
           
 int keyframe_mindistance
           
 int noise_sensitivity
           
 int offset_x
          < display frame height
 int offset_y
          < horizontal offset of the displayed frame
 int pixelformat
           
 int quality
          < nominal bitrate in bits per second
 int quick_p
          < Nominal quality setting, 0-63
 int sharpness
           
 int target_bitrate
          < colorspace
 byte version_major
          < Quick encode/decode
 byte version_minor
           
 byte version_subminor
           
 int width
           
 
Fields inherited from class com.sun.jna.Structure
ALIGN_DEFAULT, ALIGN_GNUC, ALIGN_MSVC, ALIGN_NONE, CALCULATE_SIZE
 
Constructor Summary
TheoraLibrary.theora_info()
           
 
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

width

public int width

height

public int height
< encoded frame width


frame_width

public int frame_width
< encoded frame height


frame_height

public int frame_height
< display frame width


offset_x

public int offset_x
< display frame height


offset_y

public int offset_y
< horizontal offset of the displayed frame


fps_numerator

public int fps_numerator
< vertical offset of the displayed frame


fps_denominator

public int fps_denominator
< frame rate numerator


aspect_numerator

public int aspect_numerator
< frame rate denominator


aspect_denominator

public int aspect_denominator
< pixel aspect ratio numerator


colorspace

public int colorspace
< pixel aspect ratio denominator


target_bitrate

public int target_bitrate
< colorspace


quality

public int quality
< nominal bitrate in bits per second


quick_p

public int quick_p
< Nominal quality setting, 0-63


version_major

public byte version_major
< Quick encode/decode


version_minor

public byte version_minor

version_subminor

public byte version_subminor

codec_setup

public com.sun.jna.Pointer codec_setup

dropframes_p

public int dropframes_p

keyframe_auto_p

public int keyframe_auto_p

keyframe_frequency

public int keyframe_frequency

keyframe_frequency_force

public int keyframe_frequency_force

keyframe_data_target_bitrate

public int keyframe_data_target_bitrate

keyframe_auto_threshold

public int keyframe_auto_threshold

keyframe_mindistance

public int keyframe_mindistance

noise_sensitivity

public int noise_sensitivity

sharpness

public int sharpness

pixelformat

public int pixelformat
Constructor Detail

TheoraLibrary.theora_info

public TheoraLibrary.theora_info()