comparison OrthancFramework/Sources/Images/PamWriter.cpp @ 5432:59e3b6f8c5be

migration to UCLouvain servers
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 21 Nov 2023 18:16:31 +0100
parents 0ea402b4d901
children 78f68ad10b69
comparison
equal deleted inserted replaced
5431:4be5f117aa0d 5432:59e3b6f8c5be
128 * pointer is 16-bit aligned (which is not the case if 128 * pointer is 16-bit aligned (which is not the case if
129 * "offset" is an odd number), and the trick that was used 129 * "offset" is an odd number), and the trick that was used
130 * in Orthanc <= 1.8.0 (i.e. make a "memcpy()" to a local 130 * in Orthanc <= 1.8.0 (i.e. make a "memcpy()" to a local
131 * uint16_t variable) doesn't seem work for WebAssembly. We 131 * uint16_t variable) doesn't seem work for WebAssembly. We
132 * thus use a plain old C implementation. Check out issue 132 * thus use a plain old C implementation. Check out issue
133 * #99: https://bugs.orthanc-server.com/show_bug.cgi?id=99 133 * #99: https://orthanc.uclouvain.be/bugs/show_bug.cgi?id=99
134 **/ 134 **/
135 const uint8_t* a = reinterpret_cast<const uint8_t*>(p); 135 const uint8_t* a = reinterpret_cast<const uint8_t*>(p);
136 uint8_t* b = reinterpret_cast<uint8_t*>(q); 136 uint8_t* b = reinterpret_cast<uint8_t*>(q);
137 b[0] = a[1]; 137 b[0] = a[1];
138 b[1] = a[0]; 138 b[1] = a[0];