- }
- else
- {
- // Encapsulated RLE Compressed Images (see PS-3.3, Annex G).
- // Loop on the frame[s] and store the parsed information in a
- // gdcmRLEFramesInfo.
- long frameLength;
-
- // Loop on the individual frame[s] and store the information
- // on the RLE fragments in a gdcmRLEFramesInfo.
- // Note: - when only a single frame is present, this is a
- // classical image.
- // - when more than one frame are present, then we are in
- // the case of a multi-frame image.
- while ( (frameLength = ReadTagLength(0xfffe, 0xe000)) )
- {
- // Parse the RLE Header and store the corresponding RLE Segment
- // Offset Table information on fragments of this current Frame.
- // Note that the fragment pixels themselves are not loaded
- // (but just skipped).
- uint32_t nbRleSegments = ReadInt32();
-
- uint32_t rleSegmentOffsetTable[15];
- long ftellRes;
- for( int k = 1; k <= 15; k++ )
- {
- ftellRes = ftell(Fp);
- rleSegmentOffsetTable[k] = ReadInt32();
- }