Skip to content

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

Merged
Enet4 merged 1 commit intomasterfrom
change/encoding/submit_ele_transfer_syntax
Jul 27, 2025
Merged

[encoder/ts-registry] Fix submit_ele_transfer_syntax! and extend Codec#640
Enet4 merged 1 commit intomasterfrom
change/encoding/submit_ele_transfer_syntax

Conversation

@Enet4
Copy link
Copy Markdown
Owner

@Enet4 Enet4 commented Mar 15, 2025

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 Enet4 added breaking change Hint that this may require a major version bump on release A-lib Area: library C-encoding Crate: dicom-encoding C-transfer-syntax Crate: dicom-transfer-syntax-registry labels Mar 15, 2025
@Enet4 Enet4 force-pushed the change/encoding/submit_ele_transfer_syntax branch from 5ce94d6 to 99df1fc Compare July 27, 2025 11:34
- 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
@Enet4 Enet4 force-pushed the change/encoding/submit_ele_transfer_syntax branch from 99df1fc to cce5feb Compare July 27, 2025 12:12
@Enet4 Enet4 added this to the DICOM-rs 0.9 milestone Jul 27, 2025
@Enet4 Enet4 merged commit ed5e292 into master Jul 27, 2025
5 checks passed
@Enet4 Enet4 deleted the change/encoding/submit_ele_transfer_syntax branch July 27, 2025 12:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-lib Area: library breaking change Hint that this may require a major version bump on release C-encoding Crate: dicom-encoding C-transfer-syntax Crate: dicom-transfer-syntax-registry

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant