C# Класс Vidka.Core.Model.VidkaProjExtensions

Показать файл Открыть проект

Открытые методы

Метод Описание
Crop ( this proj, long frameStart, long framesLength, int newW = null, int newH = null, bool onlyLockedClips = false ) : VidkaProj
FilenameToVarName ( this filename ) : string
FrameToSec ( this proj, long frame ) : double
GetNextLockedVideoClipStartingAtIndex ( this proj, int index, int &newIndex ) : VidkaClipVideoAbstract

returns clip at index, if it is locked, and, if not, looks for the next clip returns null if index is out of bounds

GetTotalLengthOfAudioClipsFrame ( this proj ) : long

used in ProjectDimensions.recalculateProjectWidth.

GetTotalLengthOfVideoClipsFrame ( this proj ) : long

used in ProjectDimensions.recalculateProjectWidth. The other part of this calculation is GetTotalLengthOfAudioClipsSec

GetVideoClipAbsFramePositionLeft ( this proj, VidkaClipVideoAbstract clip ) : long

The inverse of GetVideoClipIndexAtFrame. Instead returns the frame of the clip (left side) within project absolute frame space. Returns -1 if the clip is not even in the project

GetVideoClipAtIndex ( this proj, int index ) : VidkaClipVideoAbstract

returns null if index is out of bounds

GetVideoClipAtIndexForce ( this proj, int index ) : VidkaClipVideoAbstract

returns either the first or last clip if index is out of bounds respectively. If there are no clips at all, returns null

GetVideoClipIndexAtFrame ( this proj, long curFrame, long &frameOffset ) : int

Returns index of the clip under the given frame (curFrame) and also how far into the clip, the marker is (out frameOffset). NOTE: frameOffset is relative to beginning of the video file, not to clip.FrameStart! If curFrame is not on any of the clips -1 is returned

GetVideoClipIndexAtFrame_forceOnLastClip ( this proj, long curFrame, long &frameOffset ) : int

Returns same thing as GetVideoClipIndexAtFrame, except when the marker is too far out, it returns the last clip's index and frameOffset = clip.FrameEnd (again, relative to start of file) If there are no clips at all, returns -1 and frameOffset is 0

GetVideoClipsForRendering ( this proj ) : RenderableProject
HowMuchCanBeEased ( this clip, TrimDirection side, long delta ) : long
HowMuchCanBeTrimmed ( this clip, TrimDirection side, long delta ) : long

Returns what the delta should be not to violate the trimming of this clip

RenderBreakupsCount ( this proj ) : int
RenderBreakupsSplitIntoSubProjects ( this proj ) : Vidka.Core.Model.VidkaProj[]
SecToFrame ( this proj, double sec ) : int
SecToFrameDouble ( this proj, double sec ) : double
cxzxc ( this clip ) : string

Debug description

Приватные методы

Метод Описание
GetRenderableTypeOfClip ( VidkaClipVideoAbstract clip ) : VideoClipRenderableType
GetRenderableVideoFileType ( VidkaClipVideoAbstract vclip ) : RenderableMediaFileType

Описание методов

Crop() публичный статический Метод

public static Crop ( this proj, long frameStart, long framesLength, int newW = null, int newH = null, bool onlyLockedClips = false ) : VidkaProj
proj this
frameStart long
framesLength long
newW int
newH int
onlyLockedClips bool
Результат VidkaProj

FilenameToVarName() публичный статический Метод

public static FilenameToVarName ( this filename ) : string
filename this
Результат string

FrameToSec() публичный статический Метод

public static FrameToSec ( this proj, long frame ) : double
proj this
frame long
Результат double

GetNextLockedVideoClipStartingAtIndex() публичный статический Метод

returns clip at index, if it is locked, and, if not, looks for the next clip returns null if index is out of bounds
public static GetNextLockedVideoClipStartingAtIndex ( this proj, int index, int &newIndex ) : VidkaClipVideoAbstract
proj this
index int
newIndex int
Результат VidkaClipVideoAbstract

GetTotalLengthOfAudioClipsFrame() публичный статический Метод

used in ProjectDimensions.recalculateProjectWidth.
public static GetTotalLengthOfAudioClipsFrame ( this proj ) : long
proj this
Результат long

GetTotalLengthOfVideoClipsFrame() публичный статический Метод

used in ProjectDimensions.recalculateProjectWidth. The other part of this calculation is GetTotalLengthOfAudioClipsSec
public static GetTotalLengthOfVideoClipsFrame ( this proj ) : long
proj this
Результат long

GetVideoClipAbsFramePositionLeft() публичный статический Метод

The inverse of GetVideoClipIndexAtFrame. Instead returns the frame of the clip (left side) within project absolute frame space. Returns -1 if the clip is not even in the project
public static GetVideoClipAbsFramePositionLeft ( this proj, VidkaClipVideoAbstract clip ) : long
proj this
clip VidkaClipVideoAbstract
Результат long

GetVideoClipAtIndex() публичный статический Метод

returns null if index is out of bounds
public static GetVideoClipAtIndex ( this proj, int index ) : VidkaClipVideoAbstract
proj this
index int
Результат VidkaClipVideoAbstract

GetVideoClipAtIndexForce() публичный статический Метод

returns either the first or last clip if index is out of bounds respectively. If there are no clips at all, returns null
public static GetVideoClipAtIndexForce ( this proj, int index ) : VidkaClipVideoAbstract
proj this
index int
Результат VidkaClipVideoAbstract

GetVideoClipIndexAtFrame() публичный статический Метод

Returns index of the clip under the given frame (curFrame) and also how far into the clip, the marker is (out frameOffset). NOTE: frameOffset is relative to beginning of the video file, not to clip.FrameStart! If curFrame is not on any of the clips -1 is returned
public static GetVideoClipIndexAtFrame ( this proj, long curFrame, long &frameOffset ) : int
proj this
curFrame long
frameOffset long
Результат int

GetVideoClipIndexAtFrame_forceOnLastClip() публичный статический Метод

Returns same thing as GetVideoClipIndexAtFrame, except when the marker is too far out, it returns the last clip's index and frameOffset = clip.FrameEnd (again, relative to start of file) If there are no clips at all, returns -1 and frameOffset is 0
public static GetVideoClipIndexAtFrame_forceOnLastClip ( this proj, long curFrame, long &frameOffset ) : int
proj this
curFrame long
frameOffset long
Результат int

GetVideoClipsForRendering() публичный статический Метод

public static GetVideoClipsForRendering ( this proj ) : RenderableProject
proj this
Результат RenderableProject

HowMuchCanBeEased() публичный статический Метод

public static HowMuchCanBeEased ( this clip, TrimDirection side, long delta ) : long
clip this
side TrimDirection
delta long
Результат long

HowMuchCanBeTrimmed() публичный статический Метод

Returns what the delta should be not to violate the trimming of this clip
public static HowMuchCanBeTrimmed ( this clip, TrimDirection side, long delta ) : long
clip this
side TrimDirection
delta long
Результат long

RenderBreakupsCount() публичный статический Метод

public static RenderBreakupsCount ( this proj ) : int
proj this
Результат int

RenderBreakupsSplitIntoSubProjects() публичный статический Метод

public static RenderBreakupsSplitIntoSubProjects ( this proj ) : Vidka.Core.Model.VidkaProj[]
proj this
Результат Vidka.Core.Model.VidkaProj[]

SecToFrame() публичный статический Метод

public static SecToFrame ( this proj, double sec ) : int
proj this
sec double
Результат int

SecToFrameDouble() публичный статический Метод

public static SecToFrameDouble ( this proj, double sec ) : double
proj this
sec double
Результат double

cxzxc() публичный статический Метод

Debug description
public static cxzxc ( this clip ) : string
clip this
Результат string