Class TranscoderManager
Abstract manager class for DICOM transcoder operations.
Implements
Inherited Members
Namespace: FellowOakDicom.Imaging.Codec
Assembly: fo-dicom.core.dll
Syntax
public abstract class TranscoderManager : ITranscoderManager
Fields
Codecs
Collection of known transfer syntaxes and their associated codecs.
Declaration
protected readonly Dictionary<DicomTransferSyntax, IDicomCodec> Codecs
Field Value
Type | Description |
---|---|
System.Collections.Generic.Dictionary<DicomTransferSyntax, IDicomCodec> |
Methods
CanTranscode(DicomTransferSyntax, DicomTransferSyntax)
Checks whether transcoder can convert from inSyntax
to outSyntax
.
Declaration
public bool CanTranscode(DicomTransferSyntax inSyntax, DicomTransferSyntax outSyntax)
Parameters
Type | Name | Description |
---|---|---|
DicomTransferSyntax | inSyntax | Input (decode) transfer syntax. |
DicomTransferSyntax | outSyntax | Output (encode) transfer syntax. |
Returns
Type | Description |
---|---|
System.Boolean | True if transcoder can convert from |
GetCodec(DicomTransferSyntax)
Get codec associated with specified DICOM transfer syntax.
Declaration
public IDicomCodec GetCodec(DicomTransferSyntax syntax)
Parameters
Type | Name | Description |
---|---|---|
DicomTransferSyntax | syntax | Transfer syntax. |
Returns
Type | Description |
---|---|
IDicomCodec | Codec associated with |
Exceptions
Type | Condition |
---|---|
DicomCodecException | if no codec is available for the specified |
HasCodec(DicomTransferSyntax)
Checks whether transcoder provides codec for specified syntax
.
Declaration
public bool HasCodec(DicomTransferSyntax syntax)
Parameters
Type | Name | Description |
---|---|---|
DicomTransferSyntax | syntax | Transfer syntax. |
Returns
Type | Description |
---|---|
System.Boolean | True if transcoder provides codec for |
LoadCodecs(String, String)
Load codecs from assembly(ies) at the specified path
and with the specified search
pattern.
Declaration
public abstract void LoadCodecs(string path = null, string search = null)
Parameters
Type | Name | Description |
---|---|---|
System.String | path | Directory path to codec assemblies. |
System.String | search | Search pattern for codec assemblies. |