C# Класс MP4_Mangler.Box

Box is the top-level data class in MP4 files. This abstract class implements most of the ISO file system requirements. It does not yet handle parsing (input from files).
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
_children List
_data System.IO.MemoryStream
_flags byte[]
_fourCC System.UInt32

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

Метод Описание
AddChild ( Box child ) : void

Add a child box into this box. Child box should be a sub-class of Box (i.e. not a generic 'Box')

Box ( string FOURCC ) : System

Create a generic box

BoxDate ( System.DateTime date ) : System.UInt64

Gives a date as a number of seconds since 1904-01-01 T 00:00

FourCC ( string fourcc ) : UInt32

Convert a four character code string into a 32 bit int, suitable for writing with 'BigEndianWriter'

Prepare ( ) : void

Prepare for data gathering. Your '_data' members should be populated here at the latest.

deepData ( ) : byte[]

Return data for this and all children, in correct order.

You probably don't need to override this

deepSize ( ) : ulong

Size of self plus all children (container size). Includes size for FOURCC and basic 'FullBox' flags.

You probably don't need to override this

Защищенные методы

Метод Описание
NetToMpgTicks ( ulong MpgTicks ) : ulong

Convert .Net ticks (100ns) to Mpeg ticks (90MHz)

selfData ( ) : byte[]

Output the header data for this Box. Override this to add extra data if your sub-class adds extra fields

selfSize ( ) : ulong

Size of self, disregarding children (in bytes) Override this to add extra size to base() if your sub-class adds extra fields

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

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

Add a child box into this box. Child box should be a sub-class of Box (i.e. not a generic 'Box')
public AddChild ( Box child ) : void
child Box
Результат void

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

Create a generic box
public Box ( string FOURCC ) : System
FOURCC string
Результат System

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

Gives a date as a number of seconds since 1904-01-01 T 00:00
public static BoxDate ( System.DateTime date ) : System.UInt64
date System.DateTime
Результат System.UInt64

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

Convert a four character code string into a 32 bit int, suitable for writing with 'BigEndianWriter'
public static FourCC ( string fourcc ) : UInt32
fourcc string
Результат System.UInt32

NetToMpgTicks() защищенный Метод

Convert .Net ticks (100ns) to Mpeg ticks (90MHz)
protected NetToMpgTicks ( ulong MpgTicks ) : ulong
MpgTicks ulong
Результат ulong

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

Prepare for data gathering. Your '_data' members should be populated here at the latest.
public abstract Prepare ( ) : void
Результат void

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

Return data for this and all children, in correct order.
You probably don't need to override this
public deepData ( ) : byte[]
Результат byte[]

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

Size of self plus all children (container size). Includes size for FOURCC and basic 'FullBox' flags.
You probably don't need to override this
public deepSize ( ) : ulong
Результат ulong

selfData() защищенный Метод

Output the header data for this Box. Override this to add extra data if your sub-class adds extra fields
protected selfData ( ) : byte[]
Результат byte[]

selfSize() защищенный Метод

Size of self, disregarding children (in bytes) Override this to add extra size to base() if your sub-class adds extra fields
protected selfSize ( ) : ulong
Результат ulong

Описание свойств

_children защищенное свойство

protected List _children
Результат List

_data защищенное свойство

protected MemoryStream,System.IO _data
Результат System.IO.MemoryStream

_flags защищенное свойство

protected byte[] _flags
Результат byte[]

_fourCC защищенное свойство

protected UInt32,System _fourCC
Результат System.UInt32