Documentation ¶
Index ¶
- func MillisecondsToFrames(milliseconds int64, frameRate int) int
- func PreprocessContent(content string, formatId string) *etree.Element
- type AudioVideoSettings
- type BehaviorEffects
- type BiffProject
- type Default
- type EditorSequence
- type Effects
- type FillColor
- type Format
- type Formats
- type HitFilm
- func (hf *HitFilm) AddSubTitles(subtitles *etree.Element)
- func (hf *HitFilm) AddSubTitlesFromSRTFile(file *os.File, size uint8) error
- func (hf *HitFilm) FetchFromFilePath(projectFilePath string) error
- func (hf *HitFilm) GetFrameRate() int8
- func (hf *HitFilm) GetHeight() int16
- func (hf *HitFilm) GetName() string
- func (hf *HitFilm) GetSequenceID() string
- func (hf *HitFilm) GetWidth() int16
- func (hf *HitFilm) SetIndent(indentSpaces int)
- type Masks
- type ObjectBase
- type Objects
- type P2
- type Project
- type Prop
- type PropertyManager
- type Sc
- type Static
- type TextBox
- type TextVisualObject
- type Tk
- type Tokens
- type Video
- type VideoTrack
- type VisualObject
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MillisecondsToFrames ¶
Types ¶
type AudioVideoSettings ¶
type AudioVideoSettings struct { Width int16 `xml:"Width"` Height int16 `xml:"Height"` FrameRate int8 `xml:"FrameRate"` Element *etree.Element }
func NewAudioVideoSettings ¶
func NewAudioVideoSettings() *AudioVideoSettings
func (*AudioVideoSettings) FetchFromEditorSequence ¶
func (avs *AudioVideoSettings) FetchFromEditorSequence(es *EditorSequence)
type BehaviorEffects ¶
func NewBehaviorEffects ¶
func NewBehaviorEffects() *BehaviorEffects
func (*BehaviorEffects) FetchFromVisualObject ¶
func (b *BehaviorEffects) FetchFromVisualObject(vo *VisualObject)
type BiffProject ¶
func NewBiffProject ¶
func NewBiffProject() *BiffProject
func NewBiffProjectFromFilePath ¶
func NewBiffProjectFromFilePath(projectFilePath string) (*BiffProject, error)
func (*BiffProject) FetchFromFilePath ¶
func (bp *BiffProject) FetchFromFilePath(projectFilePath string) error
func (*BiffProject) FetchProject ¶
func (bp *BiffProject) FetchProject()
type Default ¶
type Default struct { V int `xml:"V,attr"` B *int8 `xml:"b"` Db *int8 `xml:"db"` Fl *int8 `xml:"fl"` P2 *P2 `xml:"p2"` Sc *Sc `xml:"sc"` Element *etree.Element }
func (*Default) FetchFromProp ¶
type EditorSequence ¶
type EditorSequence struct { ID string `xml:"ID"` AudioVideoSettings *AudioVideoSettings `xml:"AudioVideoSettings"` Video *Video `xml:"Video"` Element *etree.Element }
func NewEditorSequence ¶
func NewEditorSequence() *EditorSequence
func (*EditorSequence) FetchFromProject ¶
func (es *EditorSequence) FetchFromProject(p *Project)
type Effects ¶
func NewEffects ¶
func NewEffects() *Effects
func (*Effects) FetchFromObjectBase ¶
func (e *Effects) FetchFromObjectBase(o *ObjectBase)
type FillColor ¶
type FillColor struct { G int8 `xml:"G,attr"` R int8 `xml:"R,attr"` A int8 `xml:"A,attr"` B int8 `xml:"B,attr"` Element *etree.Element }
func NewFillColor ¶
func NewFillColor() *FillColor
func (*FillColor) FetchFromFillColors ¶
type Format ¶
type Format struct { Version int `xml:"Version,attr"` ID string `xml:"ID,attr"` VerticalScale int8 `xml:"VerticalScale,attr"` HorizontalScale int8 `xml:"HorizontalScale,attr"` Size uint8 `xml:"Size,attr"` Script int8 `xml:"Script,attr"` BaselineShift int8 `xml:"BaselineShift,attr"` Strikethrough int8 `xml:"Strikethrough,attr"` Tracking int8 `xml:"Tracking,attr"` Leading int8 `xml:"Leading,attr"` Underline int8 `xml:"Underline,attr"` Capitalization int8 `xml:"Capitalization,attr"` StrokeLocation int8 `xml:"StrokeLocation,attr"` Family string `xml:"Family"` Style string `xml:"Style"` PostscriptName string `xml:"PostscriptName"` FillColor *FillColor `xml:"FillColor"` Element *etree.Element }
func (*Format) FetchFromFormats ¶
type HitFilm ¶
type HitFilm struct { BiffProject *BiffProject // contains filtered or unexported fields }
func NewHitFilm ¶
func NewHitFilm() *HitFilm
func NewHitFilmFromFilePath ¶
func (*HitFilm) AddSubTitles ¶
func (*HitFilm) AddSubTitlesFromSRTFile ¶
func (*HitFilm) FetchFromFilePath ¶
func (*HitFilm) GetFrameRate ¶
func (*HitFilm) GetSequenceID ¶
type Masks ¶
func (*Masks) FetchFromVisualObject ¶
func (m *Masks) FetchFromVisualObject(vo *VisualObject)
type ObjectBase ¶
type ObjectBase struct { Version int `xml:"Version,attr"` ID string `xml:"ID"` SequenceID string `xml:"SequenceID"` ParentTrackID string `xml:"ParentTrackID"` LinkedObjectID string `xml:"LinkedObjectID"` Name string `xml:"Name"` StartFrame int16 `xml:"StartFrame"` EndFrame int16 `xml:"EndFrame"` Label string `xml:"Label"` Effects *Effects `xml:"Effects"` PropertyManager *PropertyManager `xml:"PropertyManager"` Element *etree.Element }
func NewObjectBase ¶
func (*ObjectBase) FetchFromVisualObject ¶
func (ob *ObjectBase) FetchFromVisualObject(vo *VisualObject)
type Objects ¶
type Objects struct { TextVisualObjects []*TextVisualObject `xml:"TextVisualObject"` Element *etree.Element }
func (*Objects) AddTextVisualObject ¶
func (o *Objects) AddTextVisualObject(textVisualObject *TextVisualObject)
func (*Objects) FetchFromVideoTrack ¶
func (o *Objects) FetchFromVideoTrack(vt *VideoTrack)
type Project ¶
type Project struct { Name string `xml:"Name"` EditorSequence *EditorSequence `xml:"EditorSequence"` Element *etree.Element }
func NewProject ¶
func NewProject() *Project
func (*Project) FetchFromBiffProject ¶
func (p *Project) FetchFromBiffProject(bp *BiffProject)
type Prop ¶
type Prop struct { Spatial int8 `xml:"Spatial,attr"` CanInterpT int8 `xml:"CanInterpT,attr"` Type int8 `xml:"Type,attr"` Name string `xml:"Name"` Default *Default `xml:"Default"` Static *Static `xml:"Static"` Element *etree.Element }
func (*Prop) FetchFromPropertyManager ¶
func (p *Prop) FetchFromPropertyManager(pm *PropertyManager, k int)
type PropertyManager ¶
type PropertyManager struct { Version int `xml:"Version,attr"` Props []*Prop `xml:"Prop"` Element *etree.Element }
func NewPropertyManager ¶
func NewPropertyManager(height int16) *PropertyManager
func (*PropertyManager) FetchFromObjectBase ¶
func (pm *PropertyManager) FetchFromObjectBase(o *ObjectBase)
type Sc ¶
type Sc struct { X float64 `xml:"X,attr"` Y float64 `xml:"Y,attr"` Z float64 `xml:"Z,attr"` Element *etree.Element }
func (*Sc) FetchFromDefault ¶
type TextBox ¶
type TextBox struct { Version int `xml:"Version,attr"` ID string `xml:"ID"` MinX string `xml:"MinX"` MaxX string `xml:"MaxX"` MinY string `xml:"MinY"` MaxY string `xml:"MaxY"` Mode int8 `xml:"Mode"` VerticalAlignment int8 `xml:"VerticalAlignment"` TopIndentation int8 `xml:"TopIndentation"` BottomIndentation int8 `xml:"BottomIndentation"` Tokens *Tokens `xml:"Tokens"` Formats *Formats `xml:"Formats"` Element *etree.Element }
func (*TextBox) FetchFromTextVisualObject ¶
func (t *TextBox) FetchFromTextVisualObject(tvo *TextVisualObject)
type TextVisualObject ¶
type TextVisualObject struct { Version int `xml:"Version,attr"` TextBox *TextBox `xml:"TextBox"` VisualObject *VisualObject `xml:"VisualObject"` Element *etree.Element }
func NewTextVisualObject ¶
func (*TextVisualObject) AddChild ¶
func (tvo *TextVisualObject) AddChild(element *etree.Element)
func (*TextVisualObject) FetchFromObjects ¶
func (tvo *TextVisualObject) FetchFromObjects(o *Objects, k int)
type Tk ¶
type Tk struct { Ri *int8 `xml:"Ri,attr,omitempty"` Jf *int8 `xml:"Jf,attr,omitempty"` V int8 `xml:"V,attr"` Tp int8 `xml:"Tp,attr"` Fi *int8 `xml:"Fi,attr,omitempty"` Sb *int8 `xml:"Sb,attr,omitempty"` Sa *int8 `xml:"Sa,attr,omitempty"` Li *int8 `xml:"Li,attr,omitempty"` Ch *int32 `xml:"Ch,attr,omitempty"` Ft *string `xml:"Ft,attr,omitempty"` Element *etree.Element }
func (*Tk) FetchFromTokens ¶
type Tokens ¶
func (*Tokens) FetchFromTextBox ¶
type Video ¶
type Video struct { VideoTracks []*VideoTrack `xml:"VideoTrack"` Element *etree.Element }
func (*Video) AddVideoTrack ¶
func (v *Video) AddVideoTrack(videoTrack *VideoTrack)
func (*Video) FetchFromEditorSequence ¶
func (v *Video) FetchFromEditorSequence(es *EditorSequence)
type VideoTrack ¶
type VideoTrack struct { Version int `xml:"Version,attr"` ID string `xml:"ID"` Name string `xml:"Name"` Visible int8 `xml:"Visible"` Locked int8 `xml:"Locked"` Objects *Objects `xml:"Objects"` Element *etree.Element }
func NewVideoTrack ¶
func NewVideoTrack( sequenceID string, witdh int16, ) *VideoTrack
func (*VideoTrack) FetchFromVideo ¶
func (vt *VideoTrack) FetchFromVideo(v *Video, k int)
type VisualObject ¶
type VisualObject struct { Version int `xml:"Version,attr"` BlendMode int8 `xml:"BlendMode"` MotionBlur int8 `xml:"MotionBlur"` Masks *Masks `xml:"Masks"` BehaviorEffects *BehaviorEffects `xml:"BehaviorEffects"` ObjectBase *ObjectBase `xml:"ObjectBase"` Element *etree.Element }
func NewVisualObject ¶
func (*VisualObject) FetchFromTextVisualObject ¶
func (vo *VisualObject) FetchFromTextVisualObject(tvo *TextVisualObject)
Source Files ¶
- audiovideosettings.go
- behavioreffects.go
- biffproject.go
- default.go
- editorsequence.go
- effects.go
- fillcolor.go
- format.go
- formats.go
- hitfilm.go
- masks.go
- objectbase.go
- objects.go
- p2.go
- project.go
- prop.go
- propertymanager.go
- sc.go
- setter.go
- static.go
- textbox.go
- textvisualobject.go
- tk.go
- tokens.go
- video.go
- videotrack.go
- visualobject.go
Click to show internal directories.
Click to hide internal directories.