C# Класс TagLib.Ogg.Codecs.Theora

Наследование: Codec, ICodec, IVideoCodec
Показать файл Открыть проект

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

Метод Описание
FromPacket ( ByteVector packet ) : Codec

Implements the CodecProvider delegate to provide support for recognizing a Theora stream from the header packet.

GetDuration ( long firstGranularPosition, long lastGranularPosition ) : System.TimeSpan

Computes the duration of the stream using the first and last granular positions of the stream.

ReadPacket ( ByteVector packet, int index ) : bool

Reads a Ogg packet that has been encountered in the stream.

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

Метод Описание
PacketType ( ByteVector packet ) : int

Gets the packet type for a specified Theora packet.

Theora ( ) : System

Constructs and initializes a new instance of .

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

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

Implements the CodecProvider delegate to provide support for recognizing a Theora stream from the header packet.
public static FromPacket ( ByteVector packet ) : Codec
packet ByteVector /// A object containing the stream /// header packet. ///
Результат Codec

GetDuration() публичный Метод

Computes the duration of the stream using the first and last granular positions of the stream.
public GetDuration ( long firstGranularPosition, long lastGranularPosition ) : System.TimeSpan
firstGranularPosition long /// A value containing the first granular /// position of the stream. ///
lastGranularPosition long /// A value containing the last granular /// position of the stream. ///
Результат System.TimeSpan

ReadPacket() публичный Метод

Reads a Ogg packet that has been encountered in the stream.
/// is . /// /// is less than zero. /// /// The data does not conform to the specificiation for the /// codec represented by the current instance. ///
public ReadPacket ( ByteVector packet, int index ) : bool
packet ByteVector /// A object containing a packet to /// be read by the current instance. ///
index int /// A value containing the index of the /// packet in the stream. ///
Результат bool