tag

package
v0.0.0-...-0793f5b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 3, 2023 License: MIT Imports: 9 Imported by: 2

Documentation

Index

Constants

View Source
const (
	BlendNormal0 = BlendMode(iota)
	BlendNormal1
	BlendLayer
	BlendMultiply
	BlendScreen
	BlendLighten
	BlendDarken
	BlendDifference
	BlendAdd
	BlendSubtract
	BlendInvert
	BlendAlpha
	BlendErase
	BlendOverlay
	BlenHardlight
)
View Source
const (
	SoundFormatPCMNative = SoundFormat(iota)
	SoundFormatADPCM
	SoundFormatMP3
	SoundFormatPCMLittle
	SoundFormatNellymoser16KHz
	SoundFormatNellymoser8KHz
	SoundFormatNellymoser

	SoundFormatSpeex
)
View Source
const (
	SoundRate5512Hz = SoundRate(iota)
	SoundRate11025Hz
	SoundRate22050Hz
	SoundRate44100Hz
)
View Source
const (
	SoundCompressionADPCM
	SoundCompressionMP3
)
View Source
const (
	RecordEnd = Code(iota)
	RecordShowFrame
	RecordDefineShape

	RecordPlaceObject
	RecordRemoveObject
	RecordDefineBits

	RecordJPEGTables
	RecordSetBackgroundColor
	RecordDefineFont
	RecordDefineText
	RecordDoAction
	RecordDefineFontInfo
	RecordDefineSound
	RecordStartSound

	RecordSoundStreamHead
	RecordSoundStreamBlock
	RecordDefineBitsLossless
	RecordDefineBitsJPEG2
	RecordDefineShape2

	RecordProtect

	RecordPlaceObject2

	RecordRemoveObject2

	RecordDefineShape3
	RecordDefineText2

	RecordDefineBitsJPEG3
	RecordDefineBitsLossless2
	RecordDefineEditText

	RecordDefineSprite

	RecordFrameLabel

	RecordSoundStreamHead2
	RecordDefineMorphShape

	RecordDefineFont2

	RecordExportAssets
	RecordImportAssets

	RecordDoInitAction

	RecordDefineFontInfo2

	RecordFileAttributes
	RecordPlaceObject3
	RecordImportAssets2

	RecordDefineFontAlignZones
	RecordCSMTextSettings
	RecordDefineFont3
	RecordSymbolClass
	RecordMetadata
	RecordDefineScalingGrid

	RecordDoABC
	RecordDefineShape4
	RecordDefineMorphShape2

	RecordDefineSceneAndFrameLabelData
	RecordDefineBinaryData
	RecordDefineFontName
	RecordStartSound2
	RecordDefineBitsJPEG4
	RecordDefineFont4

	RecordEnableTelemetry
	RecordPlaceObject4
)

Variables

View Source
var ErrMismatchedTag = errors.New("mismatched tag and code")
View Source
var ErrUnknownTag = errors.New("unknown tag")

Functions

This section is empty.

Types

type BlendMode

type BlendMode uint8

type CSMTextSettings

type CSMTextSettings struct {
	TextId       uint16
	UseFlashType uint8 `swfBits:",2"`
	GridFit      uint8 `swfBits:",3"`
	Reserved     uint8 `swfBits:",3"`
	Thickness    float32
	Sharpness    float32
	Reserved2    uint8
}

func (*CSMTextSettings) Code

func (t *CSMTextSettings) Code() Code

type Code

type Code uint16

type DefineBinaryData

type DefineBinaryData struct {
	CharacterId uint16
	Reserved    uint32
	Data        types.UntilEndBytes
}

func (*DefineBinaryData) Code

func (t *DefineBinaryData) Code() Code

type DefineBits

type DefineBits struct {
	CharacterId uint16
	Data        types.UntilEndBytes
	// contains filtered or unexported fields
}

func (*DefineBits) Code

func (t *DefineBits) Code() Code

type DefineBitsJPEG2

type DefineBitsJPEG2 struct {
	CharacterId uint16
	Data        types.UntilEndBytes
	// contains filtered or unexported fields
}

func (*DefineBitsJPEG2) Code

func (t *DefineBitsJPEG2) Code() Code

type DefineBitsJPEG3

type DefineBitsJPEG3 struct {
	CharacterId     uint16
	AlphaDataOffset uint32
	ImageData       []byte `swfCount:"AlphaDataOffset"`
	BitmapAlphaData types.UntilEndBytes
	// contains filtered or unexported fields
}

func (*DefineBitsJPEG3) Code

func (t *DefineBitsJPEG3) Code() Code

func (*DefineBitsJPEG3) GetAlphaData

func (t *DefineBitsJPEG3) GetAlphaData() []byte

type DefineBitsJPEG4

type DefineBitsJPEG4 struct {
	CharacterId     uint16
	AlphaDataOffset uint32
	DeblockParam    types.Fixed8
	ImageData       []byte `swfCount:"AlphaDataOffset"`
	BitmapAlphaData types.UntilEndBytes
	// contains filtered or unexported fields
}

func (*DefineBitsJPEG4) Code

func (t *DefineBitsJPEG4) Code() Code

func (*DefineBitsJPEG4) GetAlphaData

func (t *DefineBitsJPEG4) GetAlphaData() []byte

type DefineBitsLossless

type DefineBitsLossless struct {
	CharacterId    uint16
	Format         subtypes.ImageBitsFormat
	Width, Height  uint16
	ColorTableSize uint8 `swfCondition:"HasColorTableSize()"`
	ZlibData       types.UntilEndBytes
	// contains filtered or unexported fields
}

func (*DefineBitsLossless) Code

func (t *DefineBitsLossless) Code() Code

func (*DefineBitsLossless) GetImage

func (t *DefineBitsLossless) GetImage() (image.Image, error)

func (*DefineBitsLossless) HasColorTableSize

func (t *DefineBitsLossless) HasColorTableSize(ctx types.ReaderContext) bool

type DefineBitsLossless2

type DefineBitsLossless2 struct {
	CharacterId    uint16
	Format         subtypes.ImageBitsFormat
	Width, Height  uint16
	ColorTableSize uint8 `swfCondition:"HasColorTableSize()"`
	ZlibData       types.UntilEndBytes
	// contains filtered or unexported fields
}

func (*DefineBitsLossless2) Code

func (t *DefineBitsLossless2) Code() Code

func (*DefineBitsLossless2) GetImage

func (t *DefineBitsLossless2) GetImage() (image.Image, error)

func (*DefineBitsLossless2) HasColorTableSize

func (t *DefineBitsLossless2) HasColorTableSize(ctx types.ReaderContext) bool

type DefineEditText

type DefineEditText struct {
	CharacterId uint16
	Bounds      types.RECT
	Flag        struct {
		HasText      bool
		WordWrap     bool
		Multiline    bool
		Password     bool
		ReadOnly     bool
		HasTextColor bool
		HasMaxLength bool
		HasFont      bool
		HasFontClass bool
		AutoSize     bool
		HasLayout    bool
		NoSelect     bool
		Border       bool
		WasStatic    bool
		HTML         bool
		UseOutlines  bool
	}

	FontId       uint16     `swfCondition:"Flag.HasFont"`
	FontClass    string     `swfCondition:"Flag.HasFontClass"`
	FontHeight   uint16     `swfCondition:"Flag.HasFont"`
	TextColor    color.RGBA `swfCondition:"Flag.HasTextColor"`
	MaxLength    uint16     `swfCondition:"Flag.HasMaxLength"`
	Align        uint8      `swfCondition:"Flag.HasLayout"`
	LeftMargin   uint16     `swfCondition:"Flag.HasLayout"`
	RightMargin  uint16     `swfCondition:"Flag.HasLayout"`
	Indent       uint16     `swfCondition:"Flag.HasLayout"`
	Leading      int16      `swfCondition:"Flag.HasLayout"`
	VariableName string
	InitialText  string `swfCondition:"Flag.HasText"`
	// contains filtered or unexported fields
}

func (*DefineEditText) Code

func (t *DefineEditText) Code() Code

type DefineFont

type DefineFont struct {
	FontId           uint16
	NumGlyphsEntries uint16
	OffsetTable      []uint16         `swfCount:"OffsetTableLength()"`
	ShapeTable       []subtypes.SHAPE `swfCount:"ShapeTableLength()"`
	// contains filtered or unexported fields
}

func (*DefineFont) Code

func (t *DefineFont) Code() Code

func (*DefineFont) OffsetTableLength

func (t *DefineFont) OffsetTableLength(ctx types.ReaderContext) uint64

func (*DefineFont) Scale

func (t *DefineFont) Scale() float64

func (*DefineFont) ShapeTableLength

func (t *DefineFont) ShapeTableLength(ctx types.ReaderContext) uint64

type DefineFont2

type DefineFont2 struct {
	FontId uint16
	Flag   struct {
		HasLayout   bool
		ShiftJIS    bool
		SmallText   bool
		ANSI        bool
		WideOffsets bool
		WideCodes   bool
		Italic      bool
		Bold        bool
	}
	LanguageCode uint8
	FontNameLen  uint8
	FontName     []byte `swfCount:"FontNameLen"`
	NumGlyphs    uint16

	OffsetTable16     []uint16 `swfCount:"NumGlyphs" swfCondition:"!Flag.WideOffsets"`
	CodeTableOffset16 uint16   `swfCondition:"!Flag.WideOffsets"`

	OffsetTable32     []uint32 `swfCount:"NumGlyphs" swfCondition:"Flag.WideOffsets"`
	CodeTableOffset32 uint32   `swfCondition:"Flag.WideOffsets"`

	ShapeTable []subtypes.SHAPE `swfCount:"NumGlyphs"`

	CodeTable8  []uint8  `swfCount:"NumGlyphs" swfCondition:"!Flag.WideCodes"`
	CodeTable16 []uint16 `swfCount:"NumGlyphs" swfCondition:"Flag.WideCodes"`

	FontAscent       uint16                   `swfCondition:"Flag.HasLayout"`
	FontDescent      uint16                   `swfCondition:"Flag.HasLayout"`
	FontLeading      int16                    `swfCondition:"Flag.HasLayout"`
	FontAdvanceTable []int16                  `swfCount:"NumGlyphs" swfCondition:"Flag.HasLayout"`
	FontBoundsTable  []types.RECT             `swfCount:"NumGlyphs" swfCondition:"Flag.HasLayout"`
	KerningCount     uint16                   `swfCondition:"Flag.HasLayout"`
	KerningTable     []subtypes.KERNINGRECORD `swfCount:"KerningCount" swfCondition:"Flag.HasLayout"`
	// contains filtered or unexported fields
}

func (*DefineFont2) Code

func (t *DefineFont2) Code() Code

func (*DefineFont2) Scale

func (t *DefineFont2) Scale() float64

type DefineFont3

type DefineFont3 struct {

	// DefineFont2 Equal except that DefineFont2.Flag.WideCodes must be true
	DefineFont2
	// contains filtered or unexported fields
}

func (*DefineFont3) Code

func (t *DefineFont3) Code() Code

func (*DefineFont3) Scale

func (t *DefineFont3) Scale() float64

type DefineFont4

type DefineFont4 struct {
	FontId uint16
	Flag   struct {
		Reserved    uint8 `swfBits:",5"`
		HasFontData bool
		Italic      bool
		Bold        bool
	}
	Name     string
	FontData types.UntilEndBytes `swfCondition:"Flag.HasFontData"`
	// contains filtered or unexported fields
}

func (*DefineFont4) Code

func (t *DefineFont4) Code() Code

func (*DefineFont4) Scale

func (t *DefineFont4) Scale() float64

type DefineFontAlignZones

type DefineFontAlignZones struct {
	FontId       uint16
	CSMTableHint uint8 `swfBits:",2"`
	Reserved     uint8 `swfBits:",6"`
	ZoneTable    types.UntilEnd[subtypes.ZONERECORD]
	// contains filtered or unexported fields
}

func (*DefineFontAlignZones) Code

func (t *DefineFontAlignZones) Code() Code

type DefineFontInfo

type DefineFontInfo struct {
	FontId      uint16
	FontNameLen uint8
	FontName    []byte `swfCount:"FontNameLen"`
	Flag        struct {
		Reserved  uint8 `swfBits:",2"`
		SmallText bool
		ShiftJIS  bool
		ANSI      bool
		Italic    bool
		Bold      bool
		WideCodes bool
	}
	CodeTable8  types.UntilEnd[uint8]  `swfCondition:"!Flag.WideCodes"`
	CodeTable16 types.UntilEnd[uint16] `swfCondition:"Flag.WideCodes"`
	// contains filtered or unexported fields
}

func (*DefineFontInfo) Code

func (t *DefineFontInfo) Code() Code

type DefineFontInfo2

type DefineFontInfo2 struct {
	FontId      uint16
	FontNameLen uint8
	FontName    []byte `swfCount:"FontNameLen"`
	Flag        struct {
		Reserved  uint8 `swfBits:",2"`
		SmallText bool
		ShiftJIS  bool
		ANSI      bool
		Italic    bool
		Bold      bool
		WideCodes bool
	}
	LanguageCode uint8
	CodeTable8   types.UntilEnd[uint8]  `swfCondition:"!Flag.WideCodes"`
	CodeTable16  types.UntilEnd[uint16] `swfCondition:"Flag.WideCodes"`
	// contains filtered or unexported fields
}

func (*DefineFontInfo2) Code

func (t *DefineFontInfo2) Code() Code

type DefineFontName

type DefineFontName struct {
	FontId    uint16
	Name      string
	Copyright string
	// contains filtered or unexported fields
}

func (*DefineFontName) Code

func (t *DefineFontName) Code() Code

type DefineMorphShape

type DefineMorphShape struct {
	CharacterId            uint16
	StartBounds, EndBounds types.RECT
	Offset                 uint32
	MorphFillStyles        subtypes.MORPHFILLSTYLEARRAY
	MorphLineStyles        subtypes.MORPHLINESTYLEARRAY
	StartEdges, EndEdges   subtypes.SHAPE
	// contains filtered or unexported fields
}

func (*DefineMorphShape) Code

func (t *DefineMorphShape) Code() Code

type DefineMorphShape2

type DefineMorphShape2 struct {
	CharacterId                    uint16
	StartBounds, EndBounds         types.RECT
	StartEdgeBounds, EndEdgeBounds types.RECT
	Reserved                       uint8 `swfBits:",6"`
	UsesNonScalingStrokes          bool
	UsesScalingStrokes             bool
	Offset                         uint32
	MorphFillStyles                subtypes.MORPHFILLSTYLEARRAY
	MorphLineStyles                subtypes.MORPHLINESTYLEARRAY `swfFlags:"MorphShape2"`
	StartEdges, EndEdges           subtypes.SHAPE
	// contains filtered or unexported fields
}

func (*DefineMorphShape2) Code

func (t *DefineMorphShape2) Code() Code

type DefineScalingGrid

type DefineScalingGrid struct {
	CharacterId uint16
	Splitter    types.RECT
}

func (*DefineScalingGrid) Code

func (t *DefineScalingGrid) Code() Code

type DefineSceneAndFrameLabelData

type DefineSceneAndFrameLabelData struct {
	SceneCount uint32 `swfFlags:"encoded"`
	Scenes     []struct {
		Offset uint32 `swfFlags:"encoded"`
		Name   string
	} `swfCount:"SceneCount"`

	FrameLabelCount uint32 `swfFlags:"encoded"`
	FrameLabels     []struct {
		FrameNumber uint32 `swfFlags:"encoded"`
		Label       string
	} `swfCount:"FrameLabelCount"`
	// contains filtered or unexported fields
}

func (*DefineSceneAndFrameLabelData) Code

type DefineShape

type DefineShape struct {
	ShapeId     uint16
	ShapeBounds types.RECT
	Shapes      subtypes.SHAPEWITHSTYLE
	// contains filtered or unexported fields
}

func (*DefineShape) Code

func (t *DefineShape) Code() Code

type DefineShape2

type DefineShape2 struct {
	ShapeId     uint16
	ShapeBounds types.RECT
	Shapes      subtypes.SHAPEWITHSTYLE
	// contains filtered or unexported fields
}

func (*DefineShape2) Code

func (t *DefineShape2) Code() Code

type DefineShape3

type DefineShape3 struct {
	ShapeId     uint16
	ShapeBounds types.RECT
	Shapes      subtypes.SHAPEWITHSTYLE `swfFlags:"Shape3"`
	// contains filtered or unexported fields
}

func (*DefineShape3) Code

func (t *DefineShape3) Code() Code

type DefineShape4

type DefineShape4 struct {
	ShapeId               uint16
	ShapeBounds           types.RECT
	EdgeBounds            types.RECT
	Reserved              uint8 `swfBits:",5"`
	UsesFillWindingRule   bool
	UsesNonScalingStrokes bool
	UsesScalingStrokes    bool
	Shapes                subtypes.SHAPEWITHSTYLE `swfFlags:"Shape4"`
	// contains filtered or unexported fields
}

func (*DefineShape4) Code

func (t *DefineShape4) Code() Code

type DefineSound

type DefineSound struct {
	SoundId          uint16
	SoundFormat      SoundFormat `swfBits:",4"`
	SoundRate        SoundRate   `swfBits:",2"`
	SoundSize        uint8       `swfBits:",1"`
	IsStereo         bool
	SoundSampleCount uint32
	SoundData        types.UntilEndBytes
	// contains filtered or unexported fields
}

func (*DefineSound) Code

func (t *DefineSound) Code() Code

type DefineSprite

type DefineSprite struct {
	SpriteId    uint16
	FrameCount  uint16
	ControlTags []Tag
	// contains filtered or unexported fields
}

func (*DefineSprite) Code

func (t *DefineSprite) Code() Code

func (*DefineSprite) SWFRead

func (t *DefineSprite) SWFRead(r types.DataReader, ctx types.ReaderContext) (err error)

type DefineText

type DefineText struct {
	CharacterId uint16
	Bounds      types.RECT
	Matrix      types.MATRIX
	GlyphBits   uint8
	AdvanceBits uint8
	TextRecords subtypes.TEXTRECORDS
	// contains filtered or unexported fields
}

func (*DefineText) Code

func (t *DefineText) Code() Code

type DefineText2

type DefineText2 struct {
	CharacterId uint16
	Bounds      types.RECT
	Matrix      types.MATRIX
	GlyphBits   uint8
	AdvanceBits uint8
	TextRecords subtypes.TEXTRECORDS `swfFlags:"Text2"`
	// contains filtered or unexported fields
}

func (*DefineText2) Code

func (t *DefineText2) Code() Code

type DoABC

type DoABC struct {
	Flags uint32
	Name  string
	Data  types.UntilEndBytes
}

func (*DoABC) Code

func (t *DoABC) Code() Code

type DoAction

type DoAction struct {
	Actions []subtypes.ACTIONRECORD
}

func (*DoAction) Code

func (t *DoAction) Code() Code

func (*DoAction) SWFRead

func (t *DoAction) SWFRead(r types.DataReader, ctx types.ReaderContext) (err error)

type DoInitAction

type DoInitAction struct {
	SpriteID uint16
	Actions  []subtypes.ACTIONRECORD
}

func (*DoInitAction) Code

func (t *DoInitAction) Code() Code

func (*DoInitAction) SWFRead

func (t *DoInitAction) SWFRead(r types.DataReader, ctx types.ReaderContext) (err error)

type EnableTelemetry

type EnableTelemetry struct {
	Reserved     uint16 `swfBits:",16"`
	PasswordHash [32]byte
}

func (*EnableTelemetry) Code

func (t *EnableTelemetry) Code() Code

type End

type End struct {
}

func (*End) Code

func (t *End) Code() Code

type FileAttributes

type FileAttributes struct {
	Reserved1     uint8 `swfBits:",1"`
	UseDirectBlit bool
	UseGPU        bool
	HasMetadata   bool
	ActionScript3 bool
	Reserved2     uint8 `swfBits:",2"`
	UseNetwork    bool
	Reserved      uint32 `swfBits:",24"`
}

func (*FileAttributes) Code

func (s *FileAttributes) Code() Code

type FrameLabel

type FrameLabel struct {
	Name      string
	HasAnchor bool
	Anchor    uint8
}

func (*FrameLabel) Code

func (t *FrameLabel) Code() Code

func (*FrameLabel) SWFRead

func (t *FrameLabel) SWFRead(r types.DataReader, ctx types.ReaderContext) (err error)

type JPEGTables

type JPEGTables struct {
	Data types.UntilEndBytes
	// contains filtered or unexported fields
}

func (*JPEGTables) Code

func (t *JPEGTables) Code() Code

type Metadata

type Metadata struct {
	Metadata string
}

func (*Metadata) Code

func (t *Metadata) Code() Code

type PlaceObject

type PlaceObject struct {
	Flag struct {
		HasColorTransform bool
	}
	CharacterId    uint16
	Depth          uint16
	Matrix         types.MATRIX
	ColorTransform *types.CXFORM
}

func (*PlaceObject) Code

func (t *PlaceObject) Code() Code

func (*PlaceObject) SWFRead

func (t *PlaceObject) SWFRead(r types.DataReader, ctx types.ReaderContext) (err error)

type PlaceObject2

type PlaceObject2 struct {
	Flag struct {
		HasClipActions    bool
		HasClipDepth      bool
		HasName           bool
		HasRatio          bool
		HasColorTransform bool
		HasMatrix         bool
		HasCharacter      bool
		Move              bool
	}
	Depth          uint16
	CharacterId    uint16                `swfCondition:"Flag.HasCharacter"`
	Matrix         types.MATRIX          `swfCondition:"Flag.HasMatrix"`
	ColorTransform types.CXFORMWITHALPHA `swfCondition:"Flag.HasColorTransform"`
	Ratio          uint16                `swfCondition:"Flag.HasRatio"`
	Name           string                `swfCondition:"Flag.HasName"`
	ClipDepth      uint16                `swfCondition:"Flag.HasClipDepth"`
	ClipActions    subtypes.CLIPACTIONS  `swfCondition:"Flag.HasClipActions"`
	// contains filtered or unexported fields
}

func (*PlaceObject2) Code

func (t *PlaceObject2) Code() Code

type PlaceObject3

type PlaceObject3 struct {
	Flag struct {
		HasClipActions    bool
		HasClipDepth      bool
		HasName           bool
		HasRatio          bool
		HasColorTransform bool
		HasMatrix         bool
		HasCharacter      bool
		Move              bool
		Reserved          bool
		OpaqueBackground  bool
		HasVisible        bool
		HasImage          bool
		HasClassName      bool
		HasCacheAsBitmap  bool
		HasBlendMode      bool
		HasFilterList     bool
	}
	Depth             uint16
	ClassName         string                `swfCondition:"HasClassName()"`
	CharacterId       uint16                `swfCondition:"Flag.HasCharacter"`
	Matrix            types.MATRIX          `swfCondition:"Flag.HasMatrix"`
	ColorTransform    types.CXFORMWITHALPHA `swfCondition:"Flag.HasColorTransform"`
	Ratio             uint16                `swfCondition:"Flag.HasRatio"`
	Name              string                `swfCondition:"Flag.HasName"`
	ClipDepth         uint16                `swfCondition:"Flag.HasClipDepth"`
	SurfaceFilterList subtypes.FILTERLIST   `swfCondition:"Flag.HasFilterList"`
	BlendMode         BlendMode             `swfCondition:"Flag.HasBlendMode"`
	BitmapCache       uint8                 `swfCondition:"Flag.HasCacheAsBitmap"`
	Visible           uint8                 `swfCondition:"Flag.HasVisible"`
	BackgroundColor   types.RGBA            `swfCondition:"Flag.OpaqueBackground"`
	ClipActions       subtypes.CLIPACTIONS  `swfCondition:"Flag.HasClipActions"`
	// contains filtered or unexported fields
}

func (*PlaceObject3) Code

func (t *PlaceObject3) Code() Code

func (*PlaceObject3) HasClassName

func (t *PlaceObject3) HasClassName(ctx types.ReaderContext) bool

type PlaceObject4

type PlaceObject4 struct {
	Flag struct {
		HasClipActions    bool
		HasClipDepth      bool
		HasName           bool
		HasRatio          bool
		HasColorTransform bool
		HasMatrix         bool
		HasCharacter      bool
		Move              bool
		Reserved          bool
		OpaqueBackground  bool
		HasVisible        bool
		HasImage          bool
		HasClassName      bool
		HasCacheAsBitmap  bool
		HasBlendMode      bool
		HasFilterList     bool
	}
	Depth             uint16
	ClassName         string                `swfCondition:"HasClassName()"`
	CharacterId       uint16                `swfCondition:"Flag.HasCharacter"`
	Matrix            types.MATRIX          `swfCondition:"Flag.HasMatrix"`
	ColorTransform    types.CXFORMWITHALPHA `swfCondition:"Flag.HasColorTransform"`
	Ratio             uint16                `swfCondition:"Flag.HasRatio"`
	Name              string                `swfCondition:"Flag.HasName"`
	ClipDepth         uint16                `swfCondition:"Flag.HasClipDepth"`
	SurfaceFilterList subtypes.FILTERLIST   `swfCondition:"Flag.HasFilterList"`
	BlendMode         BlendMode             `swfCondition:"Flag.HasBlendMode"`
	BitmapCache       uint8                 `swfCondition:"Flag.HasCacheAsBitmap"`
	Visible           uint8                 `swfCondition:"Flag.HasVisible"`
	BackgroundColor   types.RGBA            `swfCondition:"Flag.OpaqueBackground"`
	ClipActions       subtypes.CLIPACTIONS  `swfCondition:"Flag.HasClipActions"`
	AMFData           types.UntilEndBytes
	// contains filtered or unexported fields
}

func (*PlaceObject4) Code

func (t *PlaceObject4) Code() Code

func (*PlaceObject4) HasClassName

func (t *PlaceObject4) HasClassName(ctx types.ReaderContext) bool

type Protect

type Protect struct {
}

func (*Protect) Code

func (t *Protect) Code() Code

type Record

type Record struct {
	TagCodeAndLength uint16
	ExtraLength      uint32 `swfCondition:"HasExtraLength()"`
	Data             []byte `swfCount:"DataLength()"`
	// contains filtered or unexported fields
}

func (*Record) Code

func (r *Record) Code() Code

func (*Record) DataLength

func (r *Record) DataLength(ctx types.ReaderContext) uint64

func (*Record) Decode

func (r *Record) Decode() (readTag Tag, err error)

func (*Record) HasExtraLength

func (r *Record) HasExtraLength(ctx types.ReaderContext) bool

func (*Record) SWFDefault

func (r *Record) SWFDefault(ctx types.ReaderContext)

type RemoveObject

type RemoveObject struct {
	CharacterId uint16
	Depth       uint16
}

func (*RemoveObject) Code

func (t *RemoveObject) Code() Code

type RemoveObject2

type RemoveObject2 struct {
	Depth uint16
}

func (*RemoveObject2) Code

func (t *RemoveObject2) Code() Code

type SOUNDENVELOPE

type SOUNDENVELOPE struct {
	Pos44      uint32
	LeftLevel  uint16
	RightLevel uint16
}

type SOUNDINFO

type SOUNDINFO struct {
	Flag struct {
		Reserved       uint8 `swfBits:",2"`
		SyncStop       bool
		SyncNoMultiple bool
		HasEnvelope    bool
		HasLoops       bool
		HasOutPoint    bool
		HasInPoint     bool
	}
	InPoint         uint32          `swfCondition:"Flag.HasInPoint"`
	OutPoint        uint32          `swfCondition:"Flag.HasOutPoint"`
	LoopCount       uint16          `swfCondition:"Flag.HasLoops"`
	EnvPoints       uint8           `swfCondition:"Flag.HasEnvelope"`
	EnvelopeRecords []SOUNDENVELOPE `swfCondition:"Flag.HasEnvelope" swfCount:"EnvPoints"`
	// contains filtered or unexported fields
}

type SetBackgroundColor

type SetBackgroundColor struct {
	BackgroundColor types.RGB
}

func (*SetBackgroundColor) Code

func (s *SetBackgroundColor) Code() Code

type ShowFrame

type ShowFrame struct {
}

func (*ShowFrame) Code

func (t *ShowFrame) Code() Code

type SoundCompression

type SoundCompression uint8

type SoundFormat

type SoundFormat uint8

type SoundRate

type SoundRate uint8

type SoundStreamBlock

type SoundStreamBlock struct {
	Data types.UntilEndBytes
	// contains filtered or unexported fields
}

func (*SoundStreamBlock) Code

func (t *SoundStreamBlock) Code() Code

type SoundStreamHead

type SoundStreamHead struct {
	Reserved               uint8     `swfBits:",4"`
	PlaybackSoundRate      SoundRate `swfBits:",2"`
	PlaybackSoundSize      uint8     `swfBits:",1"`
	PlaybackIsStereo       bool
	StreamSoundCompression SoundCompression `swfBits:",4"`
	StreamSoundRate        SoundRate        `swfBits:",2"`
	StreamSoundSize        uint8            `swfBits:",1"`
	StreamIsStereo         bool
	StreamSampleCount      uint16
	LatencySeek            int16 `swfCondition:"HasLatencySeek()"`
	// contains filtered or unexported fields
}

func (*SoundStreamHead) Code

func (t *SoundStreamHead) Code() Code

func (*SoundStreamHead) HasLatencySeek

func (t *SoundStreamHead) HasLatencySeek(ctx types.ReaderContext) bool

type SoundStreamHead2

type SoundStreamHead2 struct {
	Reserved          uint8     `swfBits:",4"`
	PlaybackSoundRate SoundRate `swfBits:",2"`
	PlaybackSoundSize uint8     `swfBits:",1"`
	PlaybackIsStereo  bool
	StreamSoundFormat SoundFormat `swfBits:",4"`
	StreamSoundRate   SoundRate   `swfBits:",2"`
	StreamSoundSize   uint8       `swfBits:",1"`
	StreamIsStereo    bool
	StreamSampleCount uint16
	LatencySeek       int16 `swfCondition:"HasLatencySeek()"`
	// contains filtered or unexported fields
}

func (*SoundStreamHead2) Code

func (t *SoundStreamHead2) Code() Code

func (*SoundStreamHead2) HasLatencySeek

func (t *SoundStreamHead2) HasLatencySeek(ctx types.ReaderContext) bool

type StartSound

type StartSound struct {
	SoundId   uint16
	SoundInfo SOUNDINFO
	// contains filtered or unexported fields
}

func (*StartSound) Code

func (t *StartSound) Code() Code

type StartSound2

type StartSound2 struct {
	SoundId        uint16
	SoundClassName string
	SoundInfo      SOUNDINFO
	// contains filtered or unexported fields
}

func (*StartSound2) Code

func (t *StartSound2) Code() Code

type Tag

type Tag interface {
	Code() Code
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL