# HG changeset patch # User Benjamin Golinvaux # Date 1586948294 -7200 # Node ID af65bce1895170f05025e5103086aa79ddf2c270 # Parent 159708a38af4c80da741a0037f6d5102cca19417 Dummy commented debug block diff -r 159708a38af4 -r af65bce18951 Framework/Toolbox/DicomInstanceParameters.cpp --- a/Framework/Toolbox/DicomInstanceParameters.cpp Wed Apr 15 12:58:01 2020 +0200 +++ b/Framework/Toolbox/DicomInstanceParameters.cpp Wed Apr 15 12:58:14 2020 +0200 @@ -387,6 +387,21 @@ TextureBaseSceneLayer* DicomInstanceParameters::CreateTexture (const Orthanc::ImageAccessor& pixelData) const { + // { + // const Orthanc::ImageAccessor& source = pixelData; + // const void* sourceBuffer = source.GetConstBuffer(); + // intptr_t sourceBufferInt = reinterpret_cast(sourceBuffer); + // int sourceWidth = source.GetWidth(); + // int sourceHeight = source.GetHeight(); + // int sourcePitch = source.GetPitch(); + + // // TODO: turn error into trace below + // LOG(ERROR) << "ConvertGrayscaleToFloat | source:" + // << " W = " << sourceWidth << " H = " << sourceHeight + // << " P = " << sourcePitch << " B = " << sourceBufferInt + // << " B % 4 == " << sourceBufferInt % 4; + // } + assert(sizeof(float) == 4); Orthanc::PixelFormat sourceFormat = pixelData.GetFormat();