Common type definition(e.g. rect,matrix) move to SwfBaseType module.
bitsOut
tagOut
swfBaseOut
+ swfBaseType
swfType
swfOut
swf
open Base
open StdLabels
+open SwfBaseType
open ExtString
type bit =
| `Bits of bit list
]
-type matrix = {
- scale: (float * float) option;
- rotate: (float * float) option;
- translate: (int*int)
-}
-
type compose = [
`Fixed of float
| `Fixed8 of float
| UB of int * int
| FB of int * float
-type matrix = {
- scale: (float * float) option;
- rotate: (float * float) option;
- translate: (int*int)
-}
-
type s = [
`Si8 of int
| `Si16 of int
| `ARGB of int * int * int * int
| `Str of string
| `Lang of int
-| `Matrix of matrix
+| `Matrix of SwfBaseType.matrix
]
type backpatch = [
--- /dev/null
+type rect = {
+ left : int;
+ right : int;
+ top : int;
+ bottom : int;
+}
+
+type matrix = {
+ scale: (float * float) option;
+ rotate: (float * float) option;
+ translate: (int*int)
+}
+
let char c =
`Ui8 (Char.code c)
- let of_rect {top; bottom; left; right} =
+ let of_rect {SwfBaseType.top=top; bottom; left; right} =
`Rect(left,right,top,bottom)
let of_tag tag =
-type rect = {
- left : int;
- right : int;
- top : int;
- bottom : int;
-}
type 'a t = {
version: int;
- frame_size: rect;
+ frame_size: SwfBaseType.rect;
frame_rate: float;
frame_count: int;
tags : 'a list
bottom:int
}
type t = [
-| `PlaceObject of int * int * SwfBaseOut.matrix
+| `PlaceObject of int * int * SwfBaseType.matrix
| `FrameLabel of string * bool
| `Protect
| `End