383384385386387388389390391392393
// Insert header into the codestream bwriter.commitBitstreamHeader(headenc); // Now do the rate-allocation and write result ralloc.runAndWrite(); //Done for data encoding bwriter.close(); // Calculate file length