Logo Search packages:      
Sourcecode: vcdimager version File versions

lsn_t vcdinfo_get_seg_lsn ( const vcdinfo_obj_t *  obj,
segnum_t  seg_num 
)

Return the starting LSN (logical sector number) for segment entry_num in obj. VCDINFO_NULL_LBA is returned if there is no entry.

Note first seg_num is 0.

Return the starting LBA (logical block address) for segment entry_num in obj. VCDINFO_LSN_NULL is returned if there is no entry.

Note first seg_num is 0.

Definition at line 1186 of file info.c.

References vcdinfo_get_num_segments(), vcdinfo_get_seg_lsn(), and VCDINFO_NULL_LSN.

Referenced by vcdinfo_get_seg_lsn(), and vcdinfo_get_seg_msf().

{ 
  if (obj == NULL || seg_num >= vcdinfo_get_num_segments(obj))
    return VCDINFO_NULL_LSN;
  return obj->first_segment_lsn + (VCDINFO_SEGMENT_SECTOR_SIZE * seg_num);
}


Generated by  Doxygen 1.6.0   Back to index