public long [ ] blowup ( int chunkCount ) { long [ ] numberOfSamples = new long [ chunkCount ] ; int j = 0 ; List < SampleToChunkBox . Entry > sampleToChunkEntries = new LinkedList < Entry > ( entries ) ; Collections . reverse ( sampleToChunkEntries ) ; Iterator < Entry > iterator = sampleToChunkEntries . iterator ( ) ; SampleToChunkBox . Entry currentEntry = iterator . next ( ) ; for ( int i = numberOfSamples . length ; i > 1 ; i -- ) { numberOfSamples [ i - 1 ] = currentEntry . getSamplesPerChunk ( ) ; if ( i == currentEntry . getFirstChunk ( ) ) { currentEntry = iterator . next ( ) ; } } numberOfSamples [ 0 ] = currentEntry . getSamplesPerChunk ( ) ; return numberOfSamples ; }
Decompresses the list of entries and returns the number of samples per chunk for every single chunk .