Searched refs:sector_bits (Results 1 – 2 of 2) sorted by relevance
/third_party/ffmpeg/libavformat/ |
D | wtvenc.c | 595 …write_fat_sector(AVFormatContext *s, int64_t start_pos, int nb_sectors, int sector_bits, int depth) in write_fat_sector() argument 598 int shift = sector_bits - WTV_SECTOR_BITS; in write_fat_sector() 731 int sector_bits, nb_sectors, pad; in finish_file() local 740 sector_bits = WTV_SECTOR_BITS; in finish_file() 743 sector_bits = WTV_SECTOR_BITS; in finish_file() 746 sector_bits = WTV_BIGSECTOR_BITS; in finish_file() 749 sector_bits = WTV_SECTOR_BITS; in finish_file() 752 sector_bits = WTV_BIGSECTOR_BITS; in finish_file() 759 nb_sectors = (int)(w->length >> sector_bits); in finish_file() 762 pad = (1 << sector_bits) - (w->length % (1 << sector_bits)); in finish_file() [all …]
|
D | wtvdec.c | 53 …int sector_bits; /**< sector shift bits; used to convert sector number into pb_filesystem offs… member 83 … int remaining_in_sector = (1 << wf->sector_bits) - (wf->position & ((1 << wf->sector_bits) - 1)); in wtvfile_read_packet() 93 int i = wf->position >> wf->sector_bits; in wtvfile_read_packet() 95 … (wf->sectors[i] != wf->sectors[i - 1] + (1 << (wf->sector_bits - WTV_SECTOR_BITS)) && in wtvfile_read_packet() 121 seek_by_sector(pb, wf->sectors[offset >> wf->sector_bits], in wtvfile_seek() 122 offset & ((1 << wf->sector_bits) - 1)) < 0; in wtvfile_seek() 201 wf->sector_bits = length & (1ULL<<63) ? WTV_SECTOR_BITS : WTV_BIGSECTOR_BITS; in wtvfile_open_sector() 215 if (length > ((int64_t)wf->nb_sectors << wf->sector_bits)) { in wtvfile_open_sector() 216 … number of available sectors (0x%"PRIx64")\n", length, (int64_t)wf->nb_sectors << wf->sector_bits); in wtvfile_open_sector() 217 length = (int64_t)wf->nb_sectors << wf->sector_bits; in wtvfile_open_sector() [all …]
|