Lines Matching refs:sector_bits
54 int sector_bits; /**< sector shift bits; used to convert sector number into pb_filesystem offset */
85 int remaining_in_sector = (1 << wf->sector_bits) - (wf->position & ((1 << wf->sector_bits) - 1));
95 int i = wf->position >> wf->sector_bits;
97 (wf->sectors[i] != wf->sectors[i - 1] + (1 << (wf->sector_bits - WTV_SECTOR_BITS)) &&
123 seek_by_sector(pb, wf->sectors[offset >> wf->sector_bits],
124 offset & ((1 << wf->sector_bits) - 1)) < 0;
203 wf->sector_bits = length & (1ULL<<63) ? WTV_SECTOR_BITS : WTV_BIGSECTOR_BITS;
217 if (length > ((int64_t)wf->nb_sectors << wf->sector_bits)) {
218 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);
219 length = (int64_t)wf->nb_sectors << wf->sector_bits;
232 buffer = av_malloc(1 << wf->sector_bits);
239 pb = avio_alloc_context(buffer, 1 << wf->sector_bits, 0, wf,