C# Класс Unosquare.FFmpegMediaElement.Helper

Provides methods and constants for miscellaneous operations
Показать файл Открыть проект

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