Searched refs:nb_sectors (Results 1 – 2 of 2) sorted by relevance
/third_party/ffmpeg/libavformat/ |
D | wtvenc.c | 585 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_b… 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 759 nb_sectors = (int)(w->length >> sector_bits); in finish_file() 764 nb_sectors++; in finish_file() 770 …w->first_sector = write_fat_sector(s, start_pos, nb_sectors, sector_bits, w->depth) >> WTV_SECTOR_… in finish_file()
|
D | wtvdec.c | 55 int nb_sectors; /**< number of sectors */ member 94 if (i >= wf->nb_sectors || in wtvfile_read_packet() 172 wf->nb_sectors = 1; in wtvfile_open_sector() 179 wf->nb_sectors = read_ints(s->pb, wf->sectors, WTV_SECTOR_SIZE / 4); in wtvfile_open_sector() 190 wf->nb_sectors = 0; in wtvfile_open_sector() 194 … wf->nb_sectors += read_ints(s->pb, wf->sectors + i * WTV_SECTOR_SIZE / 4, WTV_SECTOR_SIZE / 4); in wtvfile_open_sector() 203 if (!wf->nb_sectors) { in wtvfile_open_sector() 210 if (size >= 0 && (int64_t)wf->sectors[wf->nb_sectors - 1] << WTV_SECTOR_BITS > size) in wtvfile_open_sector() 215 if (length > ((int64_t)wf->nb_sectors << wf->sector_bits)) { in wtvfile_open_sector() 216 …eds number of available sectors (0x%"PRIx64")\n", length, (int64_t)wf->nb_sectors << wf->sector_bi… in wtvfile_open_sector() [all …]
|