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).
파일 보기 프로젝트 열기: i-e-b/HLS---Smooth-Encoder 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
_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