Mercurial > hg > orthanc
diff UnitTestsSources/FromDcmtkTests.cpp @ 3910:1f71c2f20e16 transcoding
cont
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 08 May 2020 12:03:26 +0200 |
parents | 6762a97deabc |
children | 7dc5e7e0045d |
line wrap: on
line diff
--- a/UnitTestsSources/FromDcmtkTests.cpp Fri May 08 11:40:12 2020 +0200 +++ b/UnitTestsSources/FromDcmtkTests.cpp Fri May 08 12:03:26 2020 +0200 @@ -1987,22 +1987,23 @@ for (int i = 0; i <= DicomTransferSyntax_XML; i++) { DicomTransferSyntax a = (DicomTransferSyntax) i; - std::set<DicomTransferSyntax> s; - s.insert(a); std::string t; bool hasSopInstanceUidChanged; - DicomTransferSyntax sourceSyntax2, targetSyntax; + DicomTransferSyntax sourceSyntax2; std::unique_ptr<DcmFileFormat> cloned(dynamic_cast<DcmFileFormat*>(toto->clone())); - if (!transcoder.TranscodeParsedToBuffer(t, sourceSyntax2, targetSyntax, hasSopInstanceUidChanged, *cloned, s, true)) + if (!transcoder.TranscodeParsedToBuffer(t, sourceSyntax2, hasSopInstanceUidChanged, *cloned, a, true)) { printf("**************** CANNOT: [%s] => [%s]\n", GetTransferSyntaxUid(sourceSyntax), GetTransferSyntaxUid(a)); } else { + DicomTransferSyntax targetSyntax; + ASSERT_TRUE(FromDcmtkBridge::LookupOrthancTransferSyntax(targetSyntax, *cloned)); + ASSERT_EQ(targetSyntax, a); ASSERT_EQ(sourceSyntax, sourceSyntax2); bool lossy = (a == DicomTransferSyntax_JPEGProcess1 ||