|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sun.jna.Structure net.sf.theora_java.jna.TheoraLibrary.theora_info
public static class TheoraLibrary.theora_info
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 |
---|
public int width
public int height
public int frame_width
public int frame_height
public int offset_x
public int offset_y
public int fps_numerator
public int fps_denominator
public int aspect_numerator
public int aspect_denominator
public int colorspace
public int target_bitrate
public int quality
public int quick_p
public byte version_major
public byte version_minor
public byte version_subminor
public com.sun.jna.Pointer codec_setup
public int dropframes_p
public int keyframe_auto_p
public int keyframe_frequency
public int keyframe_frequency_force
public int keyframe_data_target_bitrate
public int keyframe_auto_threshold
public int keyframe_mindistance
public int noise_sensitivity
public int sharpness
public int pixelformat
Constructor Detail |
---|
public TheoraLibrary.theora_info()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |