Clarified meaning of Character Position byte of burn_disc_get_leadin_text()

This commit is contained in:
Thomas Schmitt 2011-12-02 20:45:24 +00:00
parent 48e6a5975c
commit 94a66f72d4
2 changed files with 5 additions and 11 deletions

View File

@ -1 +1 @@
#define Cdrskin_timestamP "2011.12.02.171710" #define Cdrskin_timestamP "2011.12.02.204513"

View File

@ -1317,16 +1317,10 @@ int burn_disc_get_cd_info(struct burn_drive *d, char disc_type[80],
It consists of three bit fields: It consists of three bit fields:
bit7 = Double Bytes Character Code (0= single byte characters) bit7 = Double Bytes Character Code (0= single byte characters)
bit4-6 = Block Number (groups text packs in language blocks) bit4-6 = Block Number (groups text packs in language blocks)
bit0-3 = Character position bit0-3 = Character position. Either the number of characters which
(Still obscure. MMC-3 Appendix J says: the current text inherited from the previous pack, or
"It is the number of character in the strings that belongs 15 if the current text started before the previous pack.
to the Text Data Field in the previous Pack. The Character The two CRC bytes are optional. Polynomial is x^16 + x^12 + x^5 + 1.
Position starts from 0 to 15 and 15 indicates that the
first character belongs to the one before the previous
Pack. When the character code is double byte code, a set
of 2 bytes in the Text Data Field is counted at one."
)
The CRC bytes are optional. Polynomial is x^16 + x^12 + x^5 + 1.
@param d The drive to query. @param d The drive to query.
@param text_packs Will point to an allocated memory buffer with CD-TEXT. @param text_packs Will point to an allocated memory buffer with CD-TEXT.