Examples of UINT16


Examples of tv.porst.splib.binaryparser.UINT16

   *
   * @throws SWFParserException Thrown if the structure could not be parsed.
   */
  public static Fixed parse(final SWFBinaryParser parser, final String fieldName) throws SWFParserException {

    final UINT16 integer = parseUINT16(parser, 0x00006, fieldName + "::Integer");
    final UINT16 decimal = parseUINT16(parser, 0x00006, fieldName + "::Decimal");

    return new Fixed(integer, decimal);
  }
View Full Code Here

Examples of tv.porst.splib.binaryparser.UINT16

import tv.porst.swfretools.parser.SWFParserException;

public class ActionGetURL2Parser {

  public static ActionGetURL2 parse(final SWFBinaryParser parser, final UINT8 actionCode, final String fieldName) throws SWFParserException {
    final UINT16 length = parseUINT16(parser, 0x00006, fieldName + "::Length");
    final UBits sendVarsMethod = parseUBits(parser, 2, 0x00006, fieldName + "::SendVarsMethod");
    final UBits reserved = parseUBits(parser, 4, 0x00006, fieldName + "::Reserved");
    final Flag loadTargetFlag = parseFlag(parser, 0x00006, fieldName + "::LoadTargetFlag");
    final Flag loadVariablesFlag = parseFlag(parser, 0x00006, fieldName + "::LoadVariablesFlag");
View Full Code Here

Examples of tv.porst.splib.binaryparser.UINT16

import tv.porst.swfretools.parser.SWFParserException;

public class ActionGotoFrame2Parser {

  public static ActionGotoFrame2 parse(final SWFBinaryParser parser, final UINT8 actionCode, final String fieldName) throws SWFParserException {
    final UINT16 length = parseUINT16(parser, 0x00006, fieldName + "::Length");
    final UBits reserved = parseUBits(parser, 6, 0x00006, fieldName + "::Reserved");
    final Flag sceneBiasFlag = parseFlag(parser, 0x00006, fieldName + "::SceneBiasFlag");
    final Flag playFlag = parseFlag(parser, 0x00006, fieldName + "::PlayFlag");
    final UINT16 sceneBias = parseUINT16If(parser, 0x00006, sceneBiasFlag, fieldName + "::SceneBias");

    return new ActionGotoFrame2(actionCode, length, reserved, sceneBiasFlag, playFlag, sceneBias);
  }
View Full Code Here

Examples of tv.porst.splib.binaryparser.UINT16

   * @throws SWFParserException Thrown if the structure could not be parsed.
   */
  public static MorphLineStyleArray parse(final SWFBinaryParser parser, final String fieldName) throws SWFParserException {

    final UINT8 lineStyleCount = parseUINT8(parser, 0x00006, fieldName + "::LineStyleCount");
    final UINT16 lineStyleCountExtended = parseUINT16If(parser, 0x00006, lineStyleCount.value() == 0xFF, fieldName + "::LineStyleCountExtended");

    final int normalizedCount = lineStyleCount.value() == 0xFF ? lineStyleCountExtended.value() : lineStyleCount.value();

    final List<MorphLineStyle> lineStyles = new ArrayList<MorphLineStyle>();

    for (int i=0;i<normalizedCount;i++) {
      lineStyles.add(MorphLineStyleParser.parse(parser, String.format(fieldName + "::LineStyles[%d]", i)));
View Full Code Here

Examples of tv.porst.splib.binaryparser.UINT16

    final Flag buttonHasFilterList = parseFlag(parser, 0x00006, fieldName + "::ButtonHasFilterList");
    final Flag buttonStateHitTest = parseFlag(parser, 0x00006, fieldName + "::ButtonStateHitTest");
    final Flag buttonStateDown = parseFlag(parser, 0x00006, fieldName + "::ButtonStateDown");
    final Flag buttonStateOver = parseFlag(parser, 0x00006, fieldName + "::ButtonStateOver");
    final Flag buttonStateUp = parseFlag(parser, 0x00006, fieldName + "::ButtonStateUp");
    final UINT16 characterID = parseUINT16(parser, 0x00006, fieldName + "::CharacterID");
    final UINT16 placeDepth = parseUINT16(parser, 0x00006, fieldName + "::PlaceDepth");
    final Matrix placeMatrix = MatrixParser.parse(parser, fieldName + "::PlaceMatrix");
    final CxFormWithAlpha colorTransform = CxFormWithAlphaParser.parse(parser, fieldName + "::CxFormWithAlpha");
    final FilterList filterList = FilterListParser.parseIf(parser, buttonHasFilterList, fieldName + "::FilterList");
    final UINT8 blendMode = parseUINT8If(parser, 0x00006, buttonHasBlendMode, fieldName + "::BlendMode");
View Full Code Here

Examples of tv.porst.splib.binaryparser.UINT16

import tv.porst.swfretools.parser.SWFParserException;

public class ActionIfParser {

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

    return new ActionIf(actionCode, length, branchOffset);
  }
View Full Code Here

Examples of tv.porst.splib.binaryparser.UINT16

   * @throws SWFParserException Thrown if the structure could not be parsed.
   */
  public static MorphFillStyleArray parse(final SWFBinaryParser parser, final String fieldName) throws SWFParserException {

    final UINT8 fillStyleCount = parseUINT8(parser, 0x00006, fieldName + "::FillStyleCount");
    final UINT16 fillStyleCountExtended = parseUINT16If(parser, 0x00006, fillStyleCount.value() == 0xFF, fieldName + "::FillStyleCountExtended");

    final int normalizedCount = fillStyleCount.value() == 0xFF ? fillStyleCountExtended.value() : fillStyleCount.value();

    final List<MorphFillStyle> fillStyles = new ArrayList<MorphFillStyle>();

    for (int i=0;i<normalizedCount;i++) {
      fillStyles.add(MorphFillStyleParser.parse(parser, String.format(fieldName + "::FillStyles[%d]", i)));
View Full Code Here

Examples of tv.porst.splib.binaryparser.UINT16

    final UINT8 fillStyleType = parseUINT8(parser, 0x00006, fieldName + "::FillStyleType");
    final int fillStyleTypeValue = fillStyleType.value();
    final RGBA color = RGBAParser.parseIf(parser, fillStyleTypeValue == 0x00, fieldName + "::Color");
    final Matrix gradientMatrix = MatrixParser.parseIf(parser, fillStyleTypeValue == 0x10 || fillStyleTypeValue == 0x12 || fillStyleTypeValue == 0x13, fieldName + "::GradientMatrix");
    final IGradient gradient = getGradient(parser, fillStyleTypeValue, fieldName + "::Gradient");
    final UINT16 bitmapId = parseUINT16If(parser, 0x00006, fillStyleTypeValue >= 0x40 && fillStyleTypeValue <= 0x43, fieldName + "::BitmapID");
    final Matrix bitmapMatrix= MatrixParser.parseIf(parser, fillStyleTypeValue >= 0x40 && fillStyleTypeValue <= 0x43, fieldName + "::BitmapMatrix");

    return new FillStyle3(fillStyleType, color, gradientMatrix, gradient, bitmapId, bitmapMatrix);

  }
View Full Code Here

Examples of tv.porst.splib.binaryparser.UINT16

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

    final UINT16 streamId = parseUINT16(parser, 0x00006, "VideoFrame::StreamId");
    final UINT16 frameNum = parseUINT16(parser, 0x00006, "VideoFrame::FrameNum");

    final int dataBytes = header.getNormalizedLength() - UINT16.BYTE_LENGTH - UINT16.BYTE_LENGTH;

    final ByteArray videoData = parseByteArray(parser, dataBytes < 0 ? 0 : dataBytes, 0x00006, "VideoFrame::VideoData");

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 characterId = parseUINT16(parser, 0x00006, "DefineBitsLossless::CharacterId");
    final UINT8 bitmapFormat = parseUINT8(parser, 0x00006, "DefineBitsLossless::BitmapFormat");
    final UINT16 bitmapWidth = parseUINT16(parser, 0x00006, "DefineBitsLossless::BitmapWidth");
    final UINT16 bitmapHeight = parseUINT16(parser, 0x00006, "DefineBitsLossless::BitmapHeight");

    final int bitmapFormatValue = bitmapFormat.value();

    final UINT8 bitmapColorTableSize = parseUINT8If(parser, 0x00006, bitmapFormatValue == 3, "DefineBitsLossless::BitmapColorTableSize");

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.