Lines Matching defs:nb_sectors
585 static void write_fat(AVIOContext *pb, int start_sector, int nb_sectors, int shift)
588 for (i = 0; i < nb_sectors; i++) {
592 write_pad(pb, WTV_SECTOR_SIZE - ((nb_sectors << 2) % WTV_SECTOR_SIZE));
595 static int64_t write_fat_sector(AVFormatContext *s, int64_t start_pos, int nb_sectors, int sector_bits, int depth)
601 write_fat(s->pb, start_sector, nb_sectors, shift);
605 int nb_sectors1 = ((nb_sectors << 2) + WTV_SECTOR_SIZE - 1) / WTV_SECTOR_SIZE;
730 int sector_bits, nb_sectors, pad;
736 // determine optimal fat table depth, sector_bits, nb_sectors
757 // determine the nb_sectors
758 nb_sectors = (int)(w->length >> sector_bits);
763 nb_sectors++;
769 w->first_sector = write_fat_sector(s, start_pos, nb_sectors, sector_bits, w->depth) >> WTV_SECTOR_BITS;