| 654 | |
| 655 | template <typename RegisterT> |
| 656 | BitpackIntegerEncoder<RegisterT>::BitpackIntegerEncoder( |
| 657 | bool isScaledInteger, unsigned bytestreamNumber, SourceDestBuffer &sbuf, unsigned outputMaxSize, |
| 658 | int64_t minimum, int64_t maximum, double scale, double offset ) : |
| 659 | BitpackEncoder( bytestreamNumber, sbuf, outputMaxSize, sizeof( RegisterT ) ) |
| 660 | { |
| 661 | ImageFileImplSharedPtr imf( sbuf.impl()->destImageFile() ); //??? should be function for this, |
| 662 | // imf->parentFile() --> ImageFile? |
| 663 | |
| 664 | isScaledInteger_ = isScaledInteger; |
| 665 | minimum_ = minimum; |
| 666 | maximum_ = maximum; |
| 667 | scale_ = scale; |
| 668 | offset_ = offset; |
| 669 | bitsPerRecord_ = imf->bitsNeeded( minimum_, maximum_ ); |
| 670 | sourceBitMask_ = ( bitsPerRecord_ == 64 ) ? ~0 : ( 1ULL << bitsPerRecord_ ) - 1; |
| 671 | registerBitsUsed_ = 0; |
| 672 | register_ = 0; |
| 673 | } |
| 674 | |
| 675 | template <typename RegisterT> |
| 676 | uint64_t BitpackIntegerEncoder<RegisterT>::processRecords( size_t recordCount ) |
nothing calls this directly
no test coverage detected