Struct dicom_encoding::transfer_syntax::TransferSyntax [−][src]
pub struct TransferSyntax<A = DynDataRWAdapter, B = DynPixelRWAdapter> { /* fields omitted */ }Expand description
A DICOM transfer syntax specifier. The data RW adapter A specifies
custom codec capabilities when required.
Implementations
Create a new transfer syntax descriptor. * * Note that only transfer syntax implementors are expected to construct * TS descriptors from scratch. For a practical usage of transfer syntaxes, * one should look up an existing transfer syntax registry by UID.
Obtain this transfer syntax’ expected endianness.
Check whether this transfer syntax specifier provides a complete implementation.
Check whether no codecs are required for this transfer syntax, meaning that a complete implementation is available and no pixel data conversion is required.
Check whether reading and writing of data sets is unsupported.
If this is true, encoding and decoding will not be available.
Check whether reading and writing the pixel data is unsupported.
If this is true, encoding and decoding of the data set will still
be possible, but the pixel data will only be available in its
encapsulated form.
Retrieve the appropriate data element decoder for this transfer syntax. Can yield none if decoding is not supported.
The resulting decoder does not consider pixel data encapsulation or data set compression rules. This means that the consumer of this method needs to adapt the reader before using the decoder.
Retrieve the appropriate data element decoder for this transfer syntax and given reader type (this method is not object safe). Can yield none if decoding is not supported.
The resulting decoder does not consider pixel data encapsulation or data set compression rules. This means that the consumer of this method needs to adapt the reader before using the decoder.
Retrieve the appropriate data element encoder for this transfer syntax. Can yield none if encoding is not supported. The resulting encoder does not consider pixel data encapsulation or data set compression rules.
pub fn encoder_for<'w, W: 'w>(&self) -> Option<DynEncoder<'w, W>> where
Self: Sized,
W: ?Sized + Write,
pub fn encoder_for<'w, W: 'w>(&self) -> Option<DynEncoder<'w, W>> where
Self: Sized,
W: ?Sized + Write,
Retrieve the appropriate data element encoder for this transfer syntax and the given writer type (this method is not object safe). Can yield none if encoding is not supported. The resulting encoder does not consider pixel data encapsulation or data set compression rules.
Obtain a dynamic basic decoder, based on this transfer syntax’ expected endianness.