摘要 |
The present invention allows two different block codes to be encoded by a substantially one-type encoding section. A first-point-fixed encoding section 21 divides m-bit data into a first-half code and a second-half code, and encodes them to convert to an n-bit provisional code with the start-point state of the code being fixed. A code A/B counter 24 receives a reset-signal input and outputs a code selection signal to a code-order reversing section 22 and a top-code correction section 23 . The code-order reversing section 22 receives a codeword except for the top code from the start-point-fixed encoding section 21 ; and outputs the codeword as is, which does not include the top code, when the code selection signal indicates a code B, and reverses the order of the codeword to generate a codeword, which does not include the top code, and outputs it when the code selection signal indicates a code A, to a latch 25 . The top-code correction section 23 determines according to a provisional end-point state, a provisional top code, and the code selection signal whether the top code needs to be modified, and modifies the top code, that is, inverts the top code, if necessary. The present invention can be applied to a recording and reproduction apparatus.
|