C# Class JarrettVance.ChapterTools.IfoUtil

Datei anzeigen Open project: jarrettv/ChapterGrabber

Public Methods

Method Description
GetFileBlock ( string strFile, long pos, int count ) : byte[]
GetTotalFrames ( System.TimeSpan time, int fps ) : long
ToFilePosition ( byte bytes ) : long
ToInt16 ( byte bytes ) : short
ToInt32 ( byte bytes ) : uint
ToShort ( byte bytes ) : short

Private Methods

Method Description
AsHex ( int val ) : int
GetChainOffset ( string ifoFile, long pcgitPosition, int programChain ) : uint
GetFrames ( System.TimeSpan time, int fps ) : int
GetFrames ( byte val ) : short?
GetNumberOfPrograms ( string ifoFile, long pcgitPosition, uint chainOffset ) : int
GetPCGIP_Position ( string ifoFile ) : long
GetProgramChains ( string ifoFile, long pcgitPosition ) : int
ReadTimeSpan ( byte playbackBytes, double &fps ) : TimeSpan?
ReadTimeSpan ( string ifoFile, long pcgitPosition, uint chainOffset, double &fps ) : TimeSpan?
TwoLong ( int val ) : string

Method Details

GetFileBlock() public static method

public static GetFileBlock ( string strFile, long pos, int count ) : byte[]
strFile string
pos long
count int
return byte[]

GetTotalFrames() public static method

public static GetTotalFrames ( System.TimeSpan time, int fps ) : long
time System.TimeSpan
fps int
return long

ToFilePosition() public static method

public static ToFilePosition ( byte bytes ) : long
bytes byte
return long

ToInt16() public static method

public static ToInt16 ( byte bytes ) : short
bytes byte
return short

ToInt32() public static method

public static ToInt32 ( byte bytes ) : uint
bytes byte
return uint

ToShort() public static method

public static ToShort ( byte bytes ) : short
bytes byte
return short