Lines Matching defs:sector_bits
54 int sector_bits; /**< sector shift bits; used to convert sector number into pb_filesystem offset */
84 int remaining_in_sector = (1 << wf->sector_bits) - (wf->position & ((1 << wf->sector_bits) - 1));
94 int i = wf->position >> wf->sector_bits;
96 (wf->sectors[i] != wf->sectors[i - 1] + (1 << (wf->sector_bits - WTV_SECTOR_BITS)) &&
122 seek_by_sector(pb, wf->sectors[offset >> wf->sector_bits],
123 offset & ((1 << wf->sector_bits) - 1)) < 0;
202 wf->sector_bits = length & (1ULL<<63) ? WTV_SECTOR_BITS : WTV_BIGSECTOR_BITS;
216 if (length > ((int64_t)wf->nb_sectors << wf->sector_bits)) {
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 << wf->sector_bits);
218 length = (int64_t)wf->nb_sectors << wf->sector_bits;
231 buffer = av_malloc(1 << wf->sector_bits);
238 pb = avio_alloc_context(buffer, 1 << wf->sector_bits, 0, wf,