Examples of Uint16


Examples of tv.porst.splib.binaryparser.UINT16

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

    final UINT16 characterId = parseUINT16(parser, 0x00006, "DefineText::CharacterId");
    final Rect textBounds = RectParser.parse(parser, "DefineText::TextBounds");
    final Matrix textMatrix = MatrixParser.parse(parser, "DefineText::TextMatrix");
    final UINT8 glyphBits = parseUINT8(parser, 0x00006, "DefineText::GlyphBits");
    final UINT8 advanceBits = parseUINT8(parser, 0x00006, "DefineText::AdvanceBits");

View Full Code Here

Examples of tv.porst.splib.binaryparser.UINT16

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

    final UINT16 depth = parseUINT16(parser, 0x00006, "RemoveObject2::Depth");

    return new RemoveObject2Tag(header, depth);
  }
View Full Code Here

Examples of tv.porst.splib.binaryparser.UINT16

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

    final UINT16 reserved = parseUINT16(parser, 0x00006, "EnableDebugger2::Reserved");
    final AsciiString password = parseString(parser, 0x00006, "EnableDebugger2::Reserved");

    return new EnableDebugger2Tag(header, reserved, password);
  }
View Full Code Here

Examples of tv.porst.splib.binaryparser.UINT16

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

    final UINT16 textId = parseUINT16(parser, 0x00006, "CSMTextSettings::TextId");
    final UBits useFlashType = parseUBits(parser, 2, 0x00006, "CSMTextSettings::UseFlashType");
    final UBits gridFit = parseUBits(parser, 3, 0x00006, "CSMTextSettings::GridFit");
    final UBits reserved = parseUBits(parser, 3, 0x00006, "CSMTextSettings::Reserved");
    final Float32 thickness = parseFloat(parser, 0x00006, "CSMTextSettings::Thickness");
    final Float32 sharpness = parseFloat(parser, 0x00006, "CSMTextSettings::Sharpness");
View Full Code Here

Examples of tv.porst.splib.binaryparser.UINT16

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

    final UINT16 buttonId = parseUINT16(parser, 0x00006, "DefineButtonCxform::ButtonId");
    final CxForm buttonColorTransform = CxFormParser.parse(parser, "DefineButtonCxform::ButtonColorTransform");

    return new DefineButtonCxformTag(header, buttonId, buttonColorTransform);
  }
View Full Code Here

Examples of tv.porst.splib.binaryparser.UINT16

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

    final UINT16 characterId = parseUINT16(parser, 0x00006, "DefineVideoStream::CharacterId");
    final UINT16 numFrames = parseUINT16(parser, 0x00006, "DefineVideoStream::NumFrames");
    final UINT16 width = parseUINT16(parser, 0x00006, "DefineVideoStream::Width");
    final UINT16 height = parseUINT16(parser, 0x00006, "DefineVideoStream::Height");
    final UBits videoFlagsReserved = parseUBits(parser, 4, 0x00006, "DefineVideoStream::VideoFlagsReserved");
    final UBits videoFlagsDeblocking = parseUBits(parser, 3, 0x00006, "DefineVideoStream::VideoFlagsDeblocking");
    final Flag videoFlagsSmoothing = parseFlag(parser, 0x00006, "DefineVideoStream::VideoFlagsSmoothing");
    final UINT8 codecId = parseUINT8(parser, 0x00006, "DefineVideoStream::CodecID");

View Full Code Here

Examples of tv.porst.splib.binaryparser.UINT16

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

    final UINT16 spriteId = parseUINT16(parser, 0x00006, "DefineSprite::SpriteId");
    final UINT16 frameCount = parseUINT16(parser, 0x00006, "DefineSprite::FrameCount");

    final int length = header.getNormalizedLength() - 2 - 2;

    final TagParserResult parserResult = TagParser.parse(parser, version, length);

View Full Code Here

Examples of tv.porst.splib.binaryparser.UINT16

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

    final UINT16 buttonId = parseUINT16(parser, 0x00006, "DefineButtonSound::ButtonId");
    final UINT16 buttonSoundChar0 = parseUINT16(parser, 0x00006, "DefineButtonSound::ButtonSoundChar0");
    final SoundInfo buttonSoundInfo0 = SoundInfoParser.parseIf(parser, buttonSoundChar0.value() != 0, "DefineButtonSound::ButtonSoundInfo0");
    final UINT16 buttonSoundChar1 = parseUINT16(parser, 0x00006, "DefineButtonSound::ButtonSoundChar1");
    final SoundInfo buttonSoundInfo1 = SoundInfoParser.parseIf(parser, buttonSoundChar1.value() != 0, "DefineButtonSound::ButtonSoundInfo1");
    final UINT16 buttonSoundChar2 = parseUINT16(parser, 0x00006, "DefineButtonSound::ButtonSoundChar2");
    final SoundInfo buttonSoundInfo2 = SoundInfoParser.parseIf(parser, buttonSoundChar2.value() != 0, "DefineButtonSound::ButtonSoundInfo2");
    final UINT16 buttonSoundChar3 = parseUINT16(parser, 0x00006, "DefineButtonSound::ButtonSoundChar3");
    final SoundInfo buttonSoundInfo3 = SoundInfoParser.parseIf(parser, buttonSoundChar3.value() != 0, "DefineButtonSound::ButtonSoundInfo3");

    return new DefineButtonSoundTag(header, buttonId, buttonSoundChar0, buttonSoundInfo0,
        buttonSoundChar1, buttonSoundInfo1, buttonSoundChar2, buttonSoundInfo2,
        buttonSoundChar3, buttonSoundInfo3);
  }
View Full Code Here

Examples of tv.porst.splib.binaryparser.UINT16

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

    return new SoundStreamHead2Tag(header, reserved, playbackSoundRate,
        playbackSoundSize, playbackSoundType, streamSoundCompression,
        streamSoundRate, streamSoundSize, streamSoundType,
View Full Code Here

Examples of tv.porst.splib.binaryparser.UINT16

    }

  }

  public static ActionPush parse(final SWFBinaryParser parser, final UINT8 actionCode, final String fieldName) throws SWFParserException {
    final UINT16 length = parseUINT16(parser, 0x00006, fieldName + "::Length");

    final int end = parser.getBytePosition() + length.value();

    final List<PushedValue<?>> pushedValues = new ArrayList<PushedValue<?>>();

    while (parser.getBytePosition() < end) {
      try {
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.