allocblock

Name

allocblock -- Allocation Unit definitions

Synopsis



#define     AB_ClickSize
#define     AB_NClicks
#define     AB_Size
#define     AB_HeaderSize
#define     AB_TrailerSize
#define     AB_TrailerStart
#define     AB_PayloadStart
#define     AB_PayloadSize
#define     AB_NextLink
#define     AB_PrevLink
#define     AB_NextLink1
#define     AB_PrevLink1
#define     AB_PrivateHdr
#define     AB_HdrVersion
#define     AB_Origin
#define     AB_TrackNumber
#define     AB_TrackOffset
#define     AB_BlockInTrack
#define     AB_Encoding
#define     AB_Bitrate
#define     AB_BytesInBlock
#define     AB_CDID
#define     AB_ID3_TAG
#define     AB_HdrCRC
#define     AB_HdrCRCSize
#define     AB_AltNextLink
#define     AB_CRC
#define     AB_CRCSize
#define     AB_CURR_HDR_VERSION

Description

This file contains structures used on the PJB's disk

Details

AB_ClickSize

#define AB_ClickSize	1024


AB_NClicks

#define	AB_NClicks		128


AB_Size

#define AB_Size			(AB_ClickSize * AB_NClicks)


AB_HeaderSize

#define AB_HeaderSize	(1032) // so that PayloadSize is multiple of 12


AB_TrailerSize

#define AB_TrailerSize	(8)


AB_TrailerStart

#define	AB_TrailerStart	(AB_Size - AB_TrailerSize)


AB_PayloadStart

#define	AB_PayloadStart	(AB_HeaderSize)


AB_PayloadSize

#define	AB_PayloadSize	(AB_Size - AB_PayloadStart - AB_TrailerSize)


AB_NextLink

#define AB_NextLink		0


AB_PrevLink

#define AB_PrevLink		3


AB_NextLink1

#define AB_NextLink1	1026


AB_PrevLink1

#define AB_PrevLink1	1029


AB_PrivateHdr

#define AB_PrivateHdr	(100)


AB_HdrVersion

#define AB_HdrVersion	(AB_PrivateHdr)


AB_Origin

#define AB_Origin		(AB_PrivateHdr + 1)


AB_TrackNumber

#define AB_TrackNumber	(AB_PrivateHdr + 3)


AB_TrackOffset

#define AB_TrackOffset	(AB_PrivateHdr + 4)


AB_BlockInTrack

#define AB_BlockInTrack	(AB_PrivateHdr + 8)


AB_Encoding

#define AB_Encoding		(AB_PrivateHdr + 12)


AB_Bitrate

#define AB_Bitrate		(AB_PrivateHdr + 13)


AB_BytesInBlock

#define AB_BytesInBlock	(AB_PrivateHdr + 16)


AB_CDID

#define AB_CDID			(AB_PrivateHdr + 60)


AB_ID3_TAG

#define AB_ID3_TAG		(AB_PrivateHdr + 60)


AB_HdrCRC

#define AB_HdrCRC		(1020)  // so that header+CRC can fit in 1024


AB_HdrCRCSize

#define AB_HdrCRCSize	(AB_HdrCRC)  // so that header+CRC can fit in 1024


AB_AltNextLink

#define	AB_AltNextLink	(AB_TrailerStart)


AB_CRC

#define AB_CRC			(AB_TrailerStart + 4)


AB_CRCSize

#define AB_CRCSize		(AB_AltNextLink + 3)


AB_CURR_HDR_VERSION

#define AB_CURR_HDR_VERSION		(2)