Patent ID: 7139962

Claim:
A system for encoding digital data, the digital data comprising at least one header data and at least one main data, the header data representing to the main data correspondingly, the encoding system comprising: a first memory comprising at least one storage block, the storage block comprising a data sector, the data sector comprising a plurality of storage columns and storage rows arranged in matrix for storing data; a header buffering module for buffering the header data into the data sector; a scrambling module for scrambling the main data to form a corresponding scrambled data, and buffering the scrambled data into the data sector; an error detection code generating module for calculating the header data and the main data to generate a corresponding error detection code, and buffering the error detection code into the data sector; an outer parity code generating module for calculating at least one storage column buffered in the storage column to get an outer parity code, and getting a set of outer parity codes after calculating the data buffered in the plurality of storage columns; and an inner parity code generating module for calculating at least one storage row buffered in the storage row to get an inner parity code, and getting a set of inner parity codes after calculating the data buffered in the plurality of storage rows and the set of outer parity codes.