C# 클래스 Vidka.Core.Model.VidkaProjExtensions

파일 보기 프로젝트 열기: miktemk/VidkaEditor

공개 메소드들

메소드 설명
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