Logo Search packages:      
Sourcecode: vcdimager version File versions

lsn_t vcdinfo_get_track_lsn ( const vcdinfo_obj_t *  obj,
track_t  track_num 
)

Return the starting LSN (logical sector number) for track number track_num in obj.

The IS0-9660 filesystem track has number 0. Tracks associated with playable entries numbers start at 1.

The "leadout" track is specified either by using track_num LEADOUT_TRACK or the total tracks+1. VCDINFO_NULL_LBA is returned on failure.

Return the starting LSN (logical sector number) for track number track_num in obj.

The IS0-9660 filesystem track has number 0. Tracks associated with playable entries numbers start at 1.

The "leadout" track is specified either by using track_num LEADOUT_TRACK or the total tracks+1. VCDINFO_NULL_LBA is returned on failure.

Definition at line 1329 of file info.c.

References vcdinfo_get_track_lsn(), and VCDINFO_NULL_LSN.

Referenced by vcdinfo_get_entry_sect_count(), vcdinfo_get_track_lsn(), vcdinfo_get_track_sect_count(), and vcdinfo_track_get_entry().

{
  if (NULL == obj || NULL == obj->img)
    return VCDINFO_NULL_LSN;

  /* CdIo tracks start at 1 rather than 0. */
  return cdio_get_track_lsn(obj->img, track_num+1);
}


Generated by  Doxygen 1.6.0   Back to index