C# Class InputStreamSourceFilter.H264.NaluParser

ファイルを表示 Open project: offbyoneBB/mp-onlinevideos2

Public Methods

Method Description
CreateAVC1ParameterSet ( byte sps, byte pps, int lengthSize ) : byte[]

Creates an AVC1 format nalu from SPS and PPS extradata

CreateAnnexBNalus ( byte avc1Nalus, int lengthSize ) : byte[]

Creates an Annex B format nalu from an AVC1 format nalu

CreateAnnexBParameterSet ( byte sps, byte pps ) : byte[]

Creates an Annex B format nalu from SPS and PPS extradata

Private Methods

Method Description
AddLengthCode ( byte nalu, int srcOffset, byte dst, int dstOffset, int count, int lengthSize ) : void
AddStartCode ( byte nalu, int srcOffset, byte dst, int dstOffset, int count ) : void
checkSize ( int length, int offset, int required ) : bool
intFromBigEndian ( byte buffer, int offset, int count ) : int

Method Details

CreateAVC1ParameterSet() public static method

Creates an AVC1 format nalu from SPS and PPS extradata
public static CreateAVC1ParameterSet ( byte sps, byte pps, int lengthSize ) : byte[]
sps byte
pps byte
lengthSize int
return byte[]

CreateAnnexBNalus() public static method

Creates an Annex B format nalu from an AVC1 format nalu
public static CreateAnnexBNalus ( byte avc1Nalus, int lengthSize ) : byte[]
avc1Nalus byte
lengthSize int
return byte[]

CreateAnnexBParameterSet() public static method

Creates an Annex B format nalu from SPS and PPS extradata
public static CreateAnnexBParameterSet ( byte sps, byte pps ) : byte[]
sps byte
pps byte
return byte[]