C# Class Bombsquad.DynamicMedia.Implementations.Transformation.TransformerFactoryBase

Inheritance: IMediaTransformerFactory
Show file Open project: bmbsqd/dynamic-media Class Usage Examples

Public Methods

Method Description
TryCreateTransformer ( System.Web.HttpRequestBase request, IFormatInfo originalFormat, IFormatInfoProvider formatInfoProvider, IMediaTransformer &mediaTransformer ) : bool

Protected Methods

Method Description
CanHandleFormat ( IFormatInfo format ) : bool
IsValidFilePath ( string absolutePath ) : bool
ModifyAbsolutePath ( string absolutePath ) : string
TransformStream ( Stream stream, Stream &transformedStream ) : MediaTransformResult
TryGetOutputFormat ( System.Web.HttpRequestBase request, IFormatInfo originalFormat, IFormatInfoProvider formatInfoProvider, IFormatInfo &outputFormat ) : bool

Method Details

CanHandleFormat() protected abstract method

protected abstract CanHandleFormat ( IFormatInfo format ) : bool
format IFormatInfo
return bool

IsValidFilePath() protected abstract method

protected abstract IsValidFilePath ( string absolutePath ) : bool
absolutePath string
return bool

ModifyAbsolutePath() protected method

protected ModifyAbsolutePath ( string absolutePath ) : string
absolutePath string
return string

TransformStream() protected abstract method

protected abstract TransformStream ( Stream stream, Stream &transformedStream ) : MediaTransformResult
stream System.IO.Stream
transformedStream System.IO.Stream
return MediaTransformResult

TryCreateTransformer() public method

public TryCreateTransformer ( System.Web.HttpRequestBase request, IFormatInfo originalFormat, IFormatInfoProvider formatInfoProvider, IMediaTransformer &mediaTransformer ) : bool
request System.Web.HttpRequestBase
originalFormat IFormatInfo
formatInfoProvider IFormatInfoProvider
mediaTransformer IMediaTransformer
return bool

TryGetOutputFormat() protected method

protected TryGetOutputFormat ( System.Web.HttpRequestBase request, IFormatInfo originalFormat, IFormatInfoProvider formatInfoProvider, IFormatInfo &outputFormat ) : bool
request System.Web.HttpRequestBase
originalFormat IFormatInfo
formatInfoProvider IFormatInfoProvider
outputFormat IFormatInfo
return bool