Class TranscoderManager
Abstract manager class for DICOM transcoder operations.
Inheritance
Inherited Members
Namespace: Dicom.Imaging.Codec
Assembly: cs.temp.dll.dll
Syntax
public abstract class TranscoderManager
Fields
Codecs
Collection of known transfer syntaxes and their associated codecs.
Declaration
protected static readonly Dictionary<DicomTransferSyntax, IDicomCodec> Codecs
Field Value
Type | Description |
---|---|
Dictionary<DicomTransferSyntax, IDicomCodec> |
Methods
CanTranscode(DicomTransferSyntax, DicomTransferSyntax)
Checks whether transcoder can convert from inSyntax
to outSyntax
.
Declaration
public static 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 |
---|---|
Boolean | True if transcoder can convert from |
GetCodec(DicomTransferSyntax)
Get codec associated with specified DICOM transfer syntax.
Declaration
public static 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 static bool HasCodec(DicomTransferSyntax syntax)
Parameters
Type | Name | Description |
---|---|---|
DicomTransferSyntax | syntax | Transfer syntax. |
Returns
Type | Description |
---|---|
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 static void LoadCodecs(string path = null, string search = null)
Parameters
Type | Name | Description |
---|---|---|
String | path | Directory path to codec assemblies. |
String | search | Search pattern for codec assemblies. |
LoadCodecsImpl(String, String)
Implementation of method to load codecs from assembly(ies) at the specified path
and
with the specified search
pattern.
Declaration
protected abstract void LoadCodecsImpl(string path, string search)
Parameters
Type | Name | Description |
---|---|---|
String | path | Directory path to codec assemblies. |
String | search | Search pattern for codec assemblies. |
SetImplementation(TranscoderManager)
Set the implementation to use for DICOM transcoder management.
Declaration
public static void SetImplementation(TranscoderManager impl)
Parameters
Type | Name | Description |
---|---|---|
TranscoderManager | impl |