Examples of UBits


Examples of tv.porst.splib.binaryparser.UBits

    final Flag placeFlagHasRatio = parseFlag(parser, 0x00006, "PlaceObject3::PlaceFlagHasRatio");
    final Flag placeFlagHasColorTransform = parseFlag(parser, 0x00006, "PlaceObject3::PlaceFlagHasColorTransform");
    final Flag placeFlagHasMatrix = parseFlag(parser, 0x00006, "PlaceObject3::PlaceFlagHasMatrix");
    final Flag placeFlagHasCharacter = parseFlag(parser, 0x00006, "PlaceObject3::PlaceFlagHasCharacter");
    final Flag placeFlagHasMove = parseFlag(parser, 0x00006, "PlaceObject3::PlaceFlagHasMove");
    final UBits reserved = parseUBits(parser, 3, 0x0000006, "PlaceObject3::Reserved");
    final Flag placeFlagHasImage = parseFlag(parser, 0x00006, "PlaceObject3::PlaceFlagHasImage");
    final Flag placeFlagHasClassName = parseFlag(parser, 0x00006, "PlaceObject3::PlaceFlagHasClassName");
    final Flag placeFlagHasCacheAsBitmap = parseFlag(parser, 0x00006, "PlaceObject3::PlaceFlagHasCacheAsBitmap");
    final Flag placeFlagHasBlendMode = parseFlag(parser, 0x00006, "PlaceObject3::PlaceFlagHasBlendMode");
    final Flag placeFlagHasFilterList = parseFlag(parser, 0x00006, "PlaceObject3::PlaceFlagHasFilterList");
View Full Code Here

Examples of tv.porst.splib.binaryparser.UBits

   * @throws SWFParserException Thrown if parsing the tag failed.
   */
  public static DefineButton2Tag parse(final RecordHeader header, final SWFBinaryParser parser) throws SWFParserException {

    final UINT16 buttonId = parseUINT16(parser, 0x00006, "DefineButton2::ButtonId");
    final UBits reservedFlags = parseUBits(parser, 7, 0x00006, "DefineButton2::ReservedFlags");
    final Flag trackAsMenu = parseFlag(parser, 0x00006, "DefineButton2::TrackAsMenu");
    final UINT16 actionOffset = parseUINT16(parser, 0x00006, "DefineButton2::ActionOffset");

    final List<ButtonRecord2> characters = new ArrayList<ButtonRecord2>();

View Full Code Here

Examples of tv.porst.splib.binaryparser.UBits

   * @throws SWFParserException Thrown if parsing the tag failed.
   */
  public static DefineSoundTag parse(final RecordHeader header, final SWFBinaryParser parser) throws SWFParserException {

    final UINT16 soundId = parseUINT16(parser, 0x00006, "DefineSound::SoundId");
    final UBits soundFormat = parseUBits(parser, 4, 0x00006, "DefineSound::SoundFormat");
    final UBits soundRate = parseUBits(parser, 2, 0x00006, "DefineSound::SoundRate");
    final UBits soundSize = parseUBits(parser, 1, 0x00006, "DefineSound::SoundSize");
    final UBits soundType = parseUBits(parser, 1, 0x00006, "DefineSound::SoundType");
    final UINT32 soundSampleCount = parseUINT32(parser, 0x00006, "DefineSound::SoundSampleCount");

    final int remainingBytes = header.getNormalizedLength() - 2 - 1 - 4;

    final ByteArray soundData = parseByteArray(parser, remainingBytes, 0x00006, "DefineSound::SoundData");
View Full Code Here

Examples of tv.porst.splib.binaryparser.UBits

   *
   * @throws SWFParserException Thrown if parsing the tag failed.
   */
  public static FileAttributesTag parse(final RecordHeader header, final SWFBinaryParser parser) throws SWFParserException {

    final UBits reserved = parseUBits(parser, 1, 0x00006, "FileAttributes::Reserved");
    final Flag useDirectBit = parseFlag(parser, 0x00006, "FileAttributes::UseDirectBit");
    final Flag useGPU = parseFlag(parser, 0x00006, "FileAttributes::UseGPU");
    final Flag hasMetadata = parseFlag(parser, 0x00006, "FileAttributes::HasMetadata");
    final Flag actionScript3 = parseFlag(parser, 0x00006, "FileAttributes::ActionScript3");
    final UBits reserved2 = parseUBits(parser, 2, 0x00006, "FileAttributes::Reserved2");
    final Flag useNetwork = parseFlag(parser, 0x00006, "FileAttributes::UseNetwork");
    final UBits reserved3 = parseUBits(parser, 24, 0x00006, "FileAttributes::Reserved3");

    return new FileAttributesTag(header, reserved, useDirectBit, useGPU, hasMetadata, actionScript3, reserved2, useNetwork, reserved3);
  }
View Full Code Here

Examples of tv.porst.splib.binaryparser.UBits

   * @throws SWFParserException Thrown if parsing the tag failed.
   */
  public static DefineFontAlignZonesTag parse(final RecordHeader header, final SWFBinaryParser parser) throws SWFParserException {

    final UINT16 fontId = parseUINT16(parser, 0x00006, "DefineFontAlignZones::FontId");
    final UBits csmTableHint = parseUBits(parser, 2, 0x00006, "DefineFontAlignZones::CSMTableHint");
    final UBits reserved = parseUBits(parser, 6, 0x00006, "DefineFontAlignZones::Reserved");

    final List<ZoneRecord> zoneTable = new ArrayList<ZoneRecord>();

    int toParse = header.getNormalizedLength() - 2 - 1;

View Full Code Here

Examples of tv.porst.splib.binaryparser.UBits

    final UINT16 characterId = parseUINT16(parser, 0x00006, "DefineMorphShape2::CharacterId");
    final Rect startBounds = RectParser.parse(parser, "DefineMorphShape2::StartBounds");
    final Rect endBounds = RectParser.parse(parser, "DefineMorphShape2::EndBounds");
    final Rect startEdgeBounds = RectParser.parse(parser, "DefineMorphShape2::StartEdgeBounds");
    final Rect endEdgeBounds = RectParser.parse(parser, "DefineMorphShape2::EndEdgeBounds");
    final UBits reserved = parseUBits(parser, 6, 0x00006, "DefineMorphShape::Reserved");
    final Flag useNonScalingStrokes = parseFlag(parser, 0x00006, "DefineMorphShape2::UseNonScalingStrokes");
    final Flag useScalingStrokes = parseFlag(parser, 0x00006, "DefineMorphShape2::UseScalingStrokes");
    final UINT32 offset = parseUINT32(parser, 0x00006, "DefineMorphShape2::Offset");
    final MorphFillStyleArray morphFillStyles = MorphFillStyleArrayParser.parse(parser, "DefineMorphShape::MorphFillStyleArray");
    final MorphLineStyleArray2 morphLineStyles = MorphLineStyleArray2Parser.parse(parser, "DefineMorphShape::MorphLineSyleArray");
View Full Code Here

Examples of tv.porst.splib.binaryparser.UBits

   *
   * @throws SWFParserException Thrown if parsing the tag failed.
   */
  public static SoundStreamHeadTag parse(final RecordHeader header, final SWFBinaryParser parser) throws SWFParserException {

    final UBits reserved = parseUBits(parser, 4, 0x00006, "SoundStreamHead::Reserved");
    final UBits playbackSoundRate = parseUBits(parser, 2, 0x00006, "SoundStreamHead::PlaybackSoundRate");
    final UBits playbackSoundSize = parseUBits(parser, 1, 0x00006, "SoundStreamHead::PlaybackSoundSize");
    final UBits playbackSoundType = parseUBits(parser, 1, 0x00006, "SoundStreamHead::PlaybackSoundType");
    final UBits streamSoundCompression = parseUBits(parser, 4, 0x00006, "SoundStreamHead::StreamSoundCompression");
    final UBits streamSoundRate = parseUBits(parser, 2, 0x00006, "SoundStreamHead::StreamSoundRate");
    final UBits streamSoundSize = parseUBits(parser, 1, 0x00006, "SoundStreamHead::StreamSoundSize");
    final UBits streamSoundType = parseUBits(parser, 1, 0x00006, "SoundStreamHead::StreamSoundSize");
    final UINT16 streamSoundSampleCount = parseUINT16(parser, 0x00006, "SoundStreamHead::StreamSoundSampleCount");
    final INT16 latencySeek = parseINT16If(parser, 0x00006, streamSoundCompression.value() == 2, "SoundStreamHead::LatencySeek");

    return new SoundStreamHeadTag(header, reserved, playbackSoundRate,
        playbackSoundSize, playbackSoundType, streamSoundCompression,
View Full Code Here

Examples of tv.porst.splib.binaryparser.UBits

    final UINT16 shapeId = parseUINT16(parser, 0x00006, "DefineShape4::ShapeID");

    final Rect shapeBounds = RectParser.parse(parser, "DefineShape4::ShapeBounds");
    final Rect edgeBounds = RectParser.parse(parser, "DefineShape4::EdgeBounds");
    final UBits reserved = parseUBits(parser, 5, 0x00006, "DefineShape4::Reserved");
    final Flag usesFillWindingRule = parseFlag(parser, 0x00006, "DefineShape4::UsesFillWindingRule");
    final Flag usesNonScalingStrokes = parseFlag(parser, 0x00006, "DefineShape4::UsesNonScalingStrokes");
    final Flag usesScalingStrokes = parseFlag(parser, 0x00006, "DefineShape4::UsesScalingStrokes");
    final ShapeWithStyle4 shapes = ShapeWithStyle4Parser.parse(parser, "DefineShape4::Shapes");
View Full Code Here

Examples of tv.porst.splib.binaryparser.UBits

  public static DefineFontInfoTag parse(final RecordHeader header, final SWFBinaryParser parser) throws SWFParserException {

    final UINT16 fontId = parseUINT16(parser, 0x00006, "DefineFontInfo::FontId");
    final UINT8 fontNameLen = parseUINT8(parser, 0x00006, "DefineFontInfo::FontNameLen");
    final AsciiString fontName = parseString(parser, fontNameLen.value(), 0x00006, "DefineFontInfo::FontName");
    final UBits fontFlagsReserved = parseUBits(parser, 2, 0x00006, "DefineFontInfo::FontFlagsReserved");
    final Flag fontFlagsSmallText = parseFlag(parser, 0x00006, "DefineFontInfo::FontFlagsSmallText");
    final Flag fontFlagsShiftJIS = parseFlag(parser, 0x00006, "DefineFontInfo::FontFlagsShiftJIS");
    final Flag fontFlagsANSI = parseFlag(parser, 0x00006, "DefineFontInfo::FontFlagsANSI");
    final Flag fontFlagsItalic = parseFlag(parser, 0x00006, "DefineFontInfo::FontFlagsItalic");
    final Flag fontFlagsBold = parseFlag(parser, 0x00006, "DefineFontInfo::FontFlagsBold");
View Full Code Here

Examples of tv.porst.splib.binaryparser.UBits

   * @throws SWFParserException Thrown if parsing the tag failed.
   */
  public static DefineFont4Tag parse(final RecordHeader header, final SWFBinaryParser parser) throws SWFParserException {

    final UINT16 fontId = parseUINT16(parser, 0x00006, "DefineText2::FontId");
    final UBits fontFlagsReserved = parseUBits(parser, 5, 0x00006, "DefineFont4::FontFlagsReserved");
    final Flag fontFlagsHasFontData = parseFlag(parser, 0x00006, "DefineFont4::FontFlagsHasFontData");
    final Flag fontFlagsItalic = parseFlag(parser, 0x00006, "DefineFont4::FontFlagsItalic");
    final Flag fontFlagsBold = parseFlag(parser, 0x00006, "DefineFont4::FontFlagsBold");
    final AsciiString fontName = parseString(parser, 0x00006, "DefineFont4::FontName");

View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.