com.fluendo.jkate
Class Info

java.lang.Object
  extended by com.fluendo.jkate.Info

public class Info
extends java.lang.Object


Field Summary
 Bitmap[] bitmaps
           
 int bitstream_version_major
           
 int bitstream_version_minor
           
 java.lang.String category
           
 Curve[] curves
           
 com.fluendo.jkate.FontMapping[] font_mappings
           
 FontRange[] font_ranges
           
 int gps_denominator
           
 int gps_numerator
           
 int granule_shift
           
 java.lang.String language
           
 KateMarkupType markup_type
           
 Motion[] motions
           
 int num_headers
           
 int original_canvas_height
           
 int original_canvas_width
           
 Palette[] palettes
           
 Region[] regions
           
 Style[] styles
           
 KateTextDirectionality text_directionality
           
 KateTextEncoding text_encoding
           
 
Constructor Summary
Info()
           
 
Method Summary
 void clear()
          Resets the header decoder to the start, so a new stream may be decoded.
 int decodeHeader(Comment kc, com.jcraft.jogg.Packet op)
          Decodes a Kate header, updating the info with the data decoded from the header.
 Bitmap unpackBitmap(com.jcraft.jogg.Buffer opb)
          Decode a single bitmap.
 Motion unpackMotion(com.jcraft.jogg.Buffer opb)
          Decode a single motion.
 Palette unpackPalette(com.jcraft.jogg.Buffer opb)
          Decode a single palette.
 Region unpackRegion(com.jcraft.jogg.Buffer opb)
          Decode a single region.
 Style unpackStyle(com.jcraft.jogg.Buffer opb)
          Decode a single style.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

bitstream_version_major

public int bitstream_version_major

bitstream_version_minor

public int bitstream_version_minor

text_encoding

public KateTextEncoding text_encoding

text_directionality

public KateTextDirectionality text_directionality

num_headers

public int num_headers

granule_shift

public int granule_shift

gps_numerator

public int gps_numerator

gps_denominator

public int gps_denominator

language

public java.lang.String language

category

public java.lang.String category

regions

public Region[] regions

styles

public Style[] styles

curves

public Curve[] curves

motions

public Motion[] motions

palettes

public Palette[] palettes

bitmaps

public Bitmap[] bitmaps

font_ranges

public FontRange[] font_ranges

font_mappings

public com.fluendo.jkate.FontMapping[] font_mappings

markup_type

public KateMarkupType markup_type

original_canvas_width

public int original_canvas_width

original_canvas_height

public int original_canvas_height
Constructor Detail

Info

public Info()
Method Detail

unpackRegion

public Region unpackRegion(com.jcraft.jogg.Buffer opb)
                    throws com.fluendo.jkate.KateException
Decode a single region.

Throws:
com.fluendo.jkate.KateException

unpackStyle

public Style unpackStyle(com.jcraft.jogg.Buffer opb)
                  throws com.fluendo.jkate.KateException
Decode a single style.

Throws:
com.fluendo.jkate.KateException

unpackMotion

public Motion unpackMotion(com.jcraft.jogg.Buffer opb)
                    throws com.fluendo.jkate.KateException
Decode a single motion.

Throws:
com.fluendo.jkate.KateException

unpackPalette

public Palette unpackPalette(com.jcraft.jogg.Buffer opb)
                      throws com.fluendo.jkate.KateException
Decode a single palette.

Throws:
com.fluendo.jkate.KateException

unpackBitmap

public Bitmap unpackBitmap(com.jcraft.jogg.Buffer opb)
                    throws com.fluendo.jkate.KateException
Decode a single bitmap.

Throws:
com.fluendo.jkate.KateException

clear

public void clear()
Resets the header decoder to the start, so a new stream may be decoded.


decodeHeader

public int decodeHeader(Comment kc,
                        com.jcraft.jogg.Packet op)
Decodes a Kate header, updating the info with the data decoded from the header. If the next expected header is decoded properly, the next header will be expected. Headers beyond the ones we know about are ignored.