Mercurial > hg > orthanc
comparison UnitTestsSources/FromDcmtkTests.cpp @ 3862:594263db316a transcoding
DicomModalityStoreJob now uses DicomStoreUserConnection
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 27 Apr 2020 17:28:55 +0200 |
parents | 5bba4d249422 |
children | d5be23fc0106 |
comparison
equal
deleted
inserted
replaced
3861:eb8280b30031 | 3862:594263db316a |
---|---|
2514 | 2514 |
2515 TEST(Toto, DISABLED_Store) | 2515 TEST(Toto, DISABLED_Store) |
2516 { | 2516 { |
2517 DicomAssociationParameters params; | 2517 DicomAssociationParameters params; |
2518 params.SetLocalApplicationEntityTitle("ORTHANC"); | 2518 params.SetLocalApplicationEntityTitle("ORTHANC"); |
2519 params.SetRemoteApplicationEntityTitle("PACS"); | 2519 params.SetRemoteApplicationEntityTitle("STORESCP"); |
2520 params.SetRemotePort(2000); | 2520 params.SetRemotePort(2000); |
2521 | 2521 |
2522 DicomStoreUserConnection assoc(params); | 2522 DicomStoreUserConnection assoc(params); |
2523 assoc.PrepareStorageClass(UID_MRImageStorage, DicomTransferSyntax_JPEGProcess1); | 2523 assoc.PrepareStorageClass(UID_MRImageStorage, DicomTransferSyntax_JPEGProcess1); |
2524 assoc.PrepareStorageClass(UID_MRImageStorage, DicomTransferSyntax_JPEGProcess2_4); | 2524 assoc.PrepareStorageClass(UID_MRImageStorage, DicomTransferSyntax_JPEGProcess2_4); |
2525 //assoc.PrepareStorageClass(UID_MRImageStorage, DicomTransferSyntax_LittleEndianExplicit); | 2525 //assoc.PrepareStorageClass(UID_MRImageStorage, DicomTransferSyntax_LittleEndianExplicit); |
2526 | 2526 |
2527 //assoc.SetUncompressedSyntaxesProposed(false); | 2527 //assoc.SetUncompressedSyntaxesProposed(false); // Necessary for transcoding |
2528 //assoc.SetCommonClassesProposed(false); | 2528 //assoc.SetCommonClassesProposed(false); |
2529 TestTranscode(assoc, UID_MRImageStorage, DicomTransferSyntax_JPEG2000); | 2529 TestTranscode(assoc, UID_MRImageStorage, DicomTransferSyntax_JPEG2000); |
2530 //TestTranscode(assoc, UID_MRImageStorage, DicomTransferSyntax_LittleEndianExplicit); | 2530 TestTranscode(assoc, UID_MRImageStorage, DicomTransferSyntax_LittleEndianExplicit); |
2531 } | 2531 } |
2532 | 2532 |
2533 #endif | 2533 #endif |