Lines Matching refs:sector_bits
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()
230 buffer = av_malloc(1 << wf->sector_bits); in wtvfile_open_sector()
237 pb = avio_alloc_context(buffer, 1 << wf->sector_bits, 0, wf, in wtvfile_open_sector()