C# Class InputStreamSourceFilter.MediaTypeBuilder

Show file Open project: offbyoneBB/mp-onlinevideos2 Class Usage Examples

Public Methods

Method Description
AAC_LC ( InputstreamInfo streamInfo ) : DirectShow.AMMediaType
E_AC3 ( InputstreamInfo streamInfo ) : DirectShow.AMMediaType
H264_AVC1 ( InputstreamInfo streamInfo ) : DirectShow.AMMediaType

AVC1 formatted H264 bitstream

H264_AnnexB ( InputstreamInfo streamInfo ) : DirectShow.AMMediaType

AnnexB formatted h264 bitstream

HE_AAC ( InputstreamInfo streamInfo ) : DirectShow.AMMediaType
TryGetType ( InputstreamInfo streamInfo, DirectShow.AMMediaType &mediaType ) : bool

Tries to create a matching AMMediaType for the given streamInfo.

Private Methods

Method Description
AssignStreamInfoFields ( InputstreamInfo streamInfo, DirectShow.WaveFormatEx &wf, DirectShow.AMMediaType &amt ) : void
HCF ( int x, int y ) : int

Finds the Highest Common Factor of 2 ints

SetFormat ( DirectShow.Mpeg2VideoInfo vi, byte extraData, DirectShow.AMMediaType amt ) : void

Sets AMMediaType format data with Mpeg2VideoInfo and optional extra data.

Method Details

AAC_LC() public static method

public static AAC_LC ( InputstreamInfo streamInfo ) : DirectShow.AMMediaType
streamInfo MediaPortalWrapper.NativeWrappers.InputstreamInfo
return DirectShow.AMMediaType

E_AC3() public static method

public static E_AC3 ( InputstreamInfo streamInfo ) : DirectShow.AMMediaType
streamInfo MediaPortalWrapper.NativeWrappers.InputstreamInfo
return DirectShow.AMMediaType

H264_AVC1() public static method

AVC1 formatted H264 bitstream
public static H264_AVC1 ( InputstreamInfo streamInfo ) : DirectShow.AMMediaType
streamInfo MediaPortalWrapper.NativeWrappers.InputstreamInfo
return DirectShow.AMMediaType

H264_AnnexB() public static method

AnnexB formatted h264 bitstream
public static H264_AnnexB ( InputstreamInfo streamInfo ) : DirectShow.AMMediaType
streamInfo MediaPortalWrapper.NativeWrappers.InputstreamInfo
return DirectShow.AMMediaType

HE_AAC() public static method

public static HE_AAC ( InputstreamInfo streamInfo ) : DirectShow.AMMediaType
streamInfo MediaPortalWrapper.NativeWrappers.InputstreamInfo
return DirectShow.AMMediaType

TryGetType() public static method

Tries to create a matching AMMediaType for the given streamInfo.
public static TryGetType ( InputstreamInfo streamInfo, DirectShow.AMMediaType &mediaType ) : bool
streamInfo MediaPortalWrapper.NativeWrappers.InputstreamInfo stream
mediaType DirectShow.AMMediaType media type
return bool