Package com.fluendo.jkate
Class Info
- java.lang.Object
-
- com.fluendo.jkate.Info
-
public class Info extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description Bitmap[]bitmapsintbitstream_version_majorintbitstream_version_minorjava.lang.StringcategoryCurve[]curvescom.fluendo.jkate.FontMapping[]font_mappingsFontRange[]font_rangesintgps_denominatorintgps_numeratorintgranule_shiftjava.lang.StringlanguageKateMarkupTypemarkup_typeMotion[]motionsintnum_headersintoriginal_canvas_heightintoriginal_canvas_widthPalette[]palettesRegion[]regionsStyle[]stylesKateTextDirectionalitytext_directionalityKateTextEncodingtext_encoding
-
Constructor Summary
Constructors Constructor Description Info()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()Resets the header decoder to the start, so a new stream may be decoded.intdecodeHeader(Comment kc, com.jcraft.jogg.Packet op)Decodes a Kate header, updating the info with the data decoded from the header.BitmapunpackBitmap(com.jcraft.jogg.Buffer opb)Decode a single bitmap.MotionunpackMotion(com.jcraft.jogg.Buffer opb)Decode a single motion.PaletteunpackPalette(com.jcraft.jogg.Buffer opb)Decode a single palette.RegionunpackRegion(com.jcraft.jogg.Buffer opb)Decode a single region.StyleunpackStyle(com.jcraft.jogg.Buffer opb)Decode a single style.
-
-
-
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
-
-
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.
-
-