Patent ID: 7747097

Claim:
A method for limiting a file size of an encoded file, comprising: a processor carrying out the following steps: (a) dividing said encoded file into a plurality of data blocks of predefined bit-sizes; (b) receiving a data set from the encoded file, said data set defining a given data block; (c) for said data set, setting a maximum bit size limit for data in the data set, said maximum bit size limit being smaller than the predefined bit-size of the given data block; (d) accumulating successive bit data sizes corresponding to each data unit of the data set according to an order; (e) detecting the data unit according to said order at which the accumulated successive bit sizes of the data set exceeds said maximum bit size limit; (f) noting the location of said detected data unit to demarcate a portion of the data set that exceeds the maximum bit size limit; (g) inserting end of block data at a data unit selected from said noted location of said detected data unit through the demarcated portion of the data set that exceeds the maximum bit size limit; and (h) assigning a new value to all data units that follow the end of block data within said data set.