Crate swf

Source
Expand description

§swf-rs

Library for reading and writing Adobe Flash SWF files.

§Organization

This library consists of a read module for decoding SWF data, and a write library for writing SWF data.

Re-exports§

pub use read::decompress_swf;
pub use read::parse_swf;
pub use write::write_swf;

Modules§

avm1
avm2
error
extensions
read
write

Structs§

BevelFilter
BevelFilterFlags
BlurFilter
BlurFilterFlags
Button
ButtonAction
ButtonActionCondition
ButtonColorTransform
ButtonRecord
ButtonSounds
ButtonState
ClipAction
An clip action (a.k.a. clip event) placed on a MovieClip instance. Created in the Flash IDE using onClipEvent or on blocks.
ClipEventFlag
An event that can be attached to a MovieClip instance using an onClipEvent or on block.
Color
An RGBA (red, green, blue, alpha) color.
ColorMatrixFilter
ColorTransform
ConvolutionFilter
ConvolutionFilterFlags
CsmTextSettings
DefineBinaryData
DefineBitsJpeg3
DefineBitsLossless
DefineMorphShape
DefineMorphShapeFlag
DefineSceneAndFrameLabelData
DefineVideoStream
DoAbc2
DoAbc2Flag
DropShadowFilter
DropShadowFilterFlags
EditText
EditTextFlag
Encoding
An encoding as defined in the Encoding Standard.
ExportedAsset
FileAttributes
Flags that define various characteristic of an SWF file.
Fixed8
A signed fixed-point value with $frac_bits bits.
Fixed16
A signed fixed-point value with $frac_bits bits.
Font
Font4
FontAlignZone
FontFlag
FontInfo
FontInfoFlag
FontLayout
FontV1
FrameLabel
FrameLabelData
GlowFilter
GlowFilterFlags
Glyph
GlyphEntry
Gradient
GradientFilter
GradientFilterFlags
GradientRecord
Header
The header of an SWF file.
HeaderExt
The extended metadata of an SWF file.
KerningRecord
LineStyle
LineStyleFlag
Matrix
The transformation matrix used by Flash display objects.
MorphShape
NameCharacter
An undocumented and unused tag to set the instance name of a character. This seems to have no effect in the official Flash Player. Superseded by the PlaceObject2 tag.
PlaceFlag
PlaceObject
Point
A 2D position defined by x and y coordinates.
PointDelta
A difference between two 2D points.
ProductInfo
Contains information about the software used to generate the SWF.
Rectangle
A rectangular region defined by minimum and maximum x- and y-coordinate positions.
RemoveObject
Shape
ShapeContext
ShapeFlag
ShapeRecordFlag
ShapeStyles
Sound
SoundEnvelopePoint
SoundFormat
SoundInfo
SoundStreamHead
Sprite
StartSound
StyleChangeData
Swf
A complete header and tags in the SWF file. This is returned by the swf::parse_swf convenience method.
SwfBuf
Returned by read::decompress_swf. Owns the decompressed SWF data, which will be referenced when parsed by parse_swf.
SwfStr
A bstr-like string type analogous to str that’s returned by SWF parsing functions:
SymbolClassLink
Text
TextLayout
TextRecord
Twips
A type-safe wrapper type documenting where “twips” are used in the SWF format.
VideoFrame

Enums§

AudioCompression
BitmapFormat
BlendMode
Compression
The compression format used internally by the SWF file.
FillStyle
Filter
FontThickness
GradientInterpolation
GradientSpread
Language
LineCapStyle
LineJoinStyle
PlaceObjectAction
ShapeRecord
SoundEvent
Tag
Represents a tag in an SWF file.
TagCode
TextAlign
TextGridFit
VideoCodec
VideoDeblocking

Statics§

SHIFT_JIS
The Shift_JIS encoding.
UTF_8
The UTF-8 encoding.
WINDOWS_1252
The windows-1252 encoding.

Type Aliases§

ButtonSound
CharacterId
DebugId
DebugId is a UUID written to debug SWFs and used by the Flash Debugger.
Depth
DoAction
ExportAssets
JpegTables
KeyCode
A key code used in ButtonAction and ClipAction key press events.
SetBackgroundColor
SoundEnvelope
SoundStreamBlock