Home
last modified time | relevance | path

Searched refs:nb_sectors (Results 1 - 2 of 2) sorted by relevance

/third_party/ffmpeg/libavformat/
H A Dwtvenc.c585 static void write_fat(AVIOContext *pb, int start_sector, int nb_sectors, int shift) in write_fat() argument
588 for (i = 0; i < nb_sectors; i++) { in write_fat()
592 write_pad(pb, WTV_SECTOR_SIZE - ((nb_sectors << 2) % WTV_SECTOR_SIZE)); in write_fat()
595 static int64_t write_fat_sector(AVFormatContext *s, int64_t start_pos, int nb_sectors, int sector_bits, int depth) in write_fat_sector() argument
601 write_fat(s->pb, start_sector, nb_sectors, shift); in write_fat_sector()
605 int nb_sectors1 = ((nb_sectors << 2) + WTV_SECTOR_SIZE - 1) / WTV_SECTOR_SIZE; in write_fat_sector()
731 int sector_bits, nb_sectors, pad; in finish_file() local
737 // determine optimal fat table depth, sector_bits, nb_sectors in finish_file()
758 // determine the nb_sectors in finish_file()
759 nb_sectors in finish_file()
[all...]
H A Dwtvdec.c56 int nb_sectors; /**< number of sectors */ member
95 if (i >= wf->nb_sectors || in wtvfile_read_packet()
173 wf->nb_sectors = 1; in wtvfile_open_sector()
180 wf->nb_sectors = read_ints(s->pb, wf->sectors, WTV_SECTOR_SIZE / 4); in wtvfile_open_sector()
191 wf->nb_sectors = 0; in wtvfile_open_sector()
195 wf->nb_sectors += read_ints(s->pb, wf->sectors + i * WTV_SECTOR_SIZE / 4, WTV_SECTOR_SIZE / 4); in wtvfile_open_sector()
204 if (!wf->nb_sectors) { in wtvfile_open_sector()
211 if (size >= 0 && (int64_t)wf->sectors[wf->nb_sectors - 1] << WTV_SECTOR_BITS > size) in wtvfile_open_sector()
216 if (length > ((int64_t)wf->nb_sectors << wf->sector_bits)) { in wtvfile_open_sector()
217 av_log(s, AV_LOG_WARNING, "reported file length (0x%"PRIx64") exceeds number of available sectors (0x%"PRIx64")\n", length, (int64_t)wf->nb_sectors << w in wtvfile_open_sector()
[all...]

Completed in 3 milliseconds