C# 클래스 Unosquare.FFmpegMediaElement.Helper

Provides methods and constants for miscellaneous operations
파일 보기 프로젝트 열기: bbougot/Popcorn

Private Properties

프로퍼티 타입 설명
ExtractFFmpegDlls string
IsNoPtsValue bool

공개 메소드들

메소드 설명
GetFFmpegErrorMessage ( int code ) : string

Gets the FFmpeg error mesage based on the error code

RegisterFFmpeg ( ) : void

Registers FFmpeg library and initializes its components.

RoundSeconds ( decimal seconds ) : decimal
RoundTicks ( long ticks ) : long
SecondsToTimestamp ( decimal seconds, FFmpeg.AutoGen.AVRational streamTimeBase ) : long

Converts seconds to a timestamp value.

TimestampToSeconds ( long ts, FFmpeg.AutoGen.AVRational streamTimeBase ) : decimal

Converts a Timestamp to seconds.

비공개 메소드들

메소드 설명
ExtractFFmpegDlls ( string resourcePrefix ) : string

Extracts the FFmpeg Dlls.

IsNoPtsValue ( long timestamp ) : bool

메소드 상세

GetFFmpegErrorMessage() 공개 정적인 메소드

Gets the FFmpeg error mesage based on the error code
public static GetFFmpegErrorMessage ( int code ) : string
code int The code.
리턴 string

RegisterFFmpeg() 공개 정적인 메소드

Registers FFmpeg library and initializes its components.
public static RegisterFFmpeg ( ) : void
리턴 void

RoundSeconds() 공개 정적인 메소드

public static RoundSeconds ( decimal seconds ) : decimal
seconds decimal
리턴 decimal

RoundTicks() 공개 정적인 메소드

public static RoundTicks ( long ticks ) : long
ticks long
리턴 long

SecondsToTimestamp() 공개 정적인 메소드

Converts seconds to a timestamp value.
public static SecondsToTimestamp ( decimal seconds, FFmpeg.AutoGen.AVRational streamTimeBase ) : long
seconds decimal The seconds.
streamTimeBase FFmpeg.AutoGen.AVRational The stream time base.
리턴 long

TimestampToSeconds() 공개 정적인 메소드

Converts a Timestamp to seconds.
public static TimestampToSeconds ( long ts, FFmpeg.AutoGen.AVRational streamTimeBase ) : decimal
ts long The ts.
streamTimeBase FFmpeg.AutoGen.AVRational The stream time base.
리턴 decimal