| 756 | } |
| 757 | |
| 758 | inline BOOL LASwriteItemCompressed_POINT14_v4::chunk_sizes() |
| 759 | { |
| 760 | U32 num_bytes = 0; |
| 761 | ByteStreamOut* outstream = enc->getByteStreamOut(); |
| 762 | |
| 763 | // finish the encoders |
| 764 | |
| 765 | enc_channel_returns_XY->done(); |
| 766 | enc_Z->done(); |
| 767 | if (changed_classification) |
| 768 | { |
| 769 | enc_classification->done(); |
| 770 | } |
| 771 | if (changed_flags) |
| 772 | { |
| 773 | enc_flags->done(); |
| 774 | } |
| 775 | if (changed_intensity) |
| 776 | { |
| 777 | enc_intensity->done(); |
| 778 | } |
| 779 | if (changed_scan_angle) |
| 780 | { |
| 781 | enc_scan_angle->done(); |
| 782 | } |
| 783 | if (changed_user_data) |
| 784 | { |
| 785 | enc_user_data->done(); |
| 786 | } |
| 787 | if (changed_point_source) |
| 788 | { |
| 789 | enc_point_source->done(); |
| 790 | } |
| 791 | if (changed_gps_time) |
| 792 | { |
| 793 | enc_gps_time->done(); |
| 794 | } |
| 795 | |
| 796 | // output the sizes of all layer (i.e.. number of bytes per layer) |
| 797 | |
| 798 | num_bytes = (U32)outstream_channel_returns_XY->getCurr(); |
| 799 | num_bytes_channel_returns_XY += num_bytes; |
| 800 | outstream->put32bitsLE(((U8*)&num_bytes)); |
| 801 | |
| 802 | num_bytes = (U32)outstream_Z->getCurr(); |
| 803 | num_bytes_Z += num_bytes; |
| 804 | outstream->put32bitsLE(((U8*)&num_bytes)); |
| 805 | |
| 806 | if (changed_classification) |
| 807 | { |
| 808 | num_bytes = (U32)outstream_classification->getCurr(); |
| 809 | num_bytes_classification += num_bytes; |
| 810 | } |
| 811 | else |
| 812 | { |
| 813 | num_bytes = 0; |
| 814 | } |
| 815 | outstream->put32bitsLE(((U8*)&num_bytes)); |
nothing calls this directly
no test coverage detected