dicom-rs icon indicating copy to clipboard operation
dicom-rs copied to clipboard

[encoder/ts-registry] Fix submit_ele_transfer_syntax! and extend Codec

Open Enet4 opened this issue 8 months ago • 0 comments

It turned out that submit_ele_transfer_syntax! was not usable unless to specify a stub. This is not ideal, but since type parameter defaults are not supported, the Codec expression in the macro has to be annotated with the remaining types. I added some associated constructor functions to help mitigate this.

Summary

  • add utility constructor functions to Codec
  • generalize submit_ele_transfer_syntax! macro so that it is usable in non-stub scenarios
  • add TransferSyntax::pixel_data_reader and TransferSyntax::pixel_data_writer to inspect the pixel data decoder and encoder

Enet4 avatar Mar 15 '25 21:03 Enet4