Package tv.porst.splib.binaryparser

Examples of tv.porst.splib.binaryparser.Float32


    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");
    final UINT8 reserved2 = parseUINT8(parser, 0x00006, "CSMTextSettings::Reserveds");

    return new CSMTextSettingsTag(header, textId, useFlashType, gridFit, reserved, thickness, sharpness, reserved2);
  }
View Full Code Here


   */
  public static ConvolutionFilter parse(final SWFBinaryParser parser, final String fieldName) throws SWFParserException {

    final UINT8 matrixX = parseUINT8(parser, 0x00006, fieldName + "::MatrixX");
    final UINT8 matrixY = parseUINT8(parser, 0x00006, fieldName + "::MatrixY");
    final Float32 divisor = parseFloat(parser, 0x00006, fieldName + "::Divisor");
    final Float32 bias = parseFloat(parser, 0x00006, fieldName + "::Bias");
    final List<Float32> matrix = new ArrayList<Float32>();

    for (int i=0;i<matrixX.value() * matrixY.value();i++) {
      matrix.add(parseFloat(parser, 0x00006, String.format(fieldName + "::Matrix[%d]", i)));
    }
View Full Code Here

TOP

Related Classes of tv.porst.splib.binaryparser.Float32

Copyright © 2018 www.massapicom. 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.