Lines Matching defs:fsize
50 uint64_t fsize; /**< file size less metadata buffer */
79 static void calculate_height(AVCodecParameters *par, uint64_t fsize)
81 par->height = (fsize / ((par->width>>3)*2)) << 4;
90 static int next_tag_read(AVFormatContext *avctx, uint64_t *fsize)
105 *fsize -= 256;
124 static void predict_width(AVCodecParameters *par, uint64_t fsize, int got_width)
128 par->width = fsize > 4000 ? (160<<3) : (80<<3);
187 bin->fsize = avio_size(pb);
188 if (ff_sauce_read(s, &bin->fsize, &got_width, 0) < 0)
189 next_tag_read(s, &bin->fsize);
191 predict_width(st->codecpar, bin->fsize, got_width);
194 calculate_height(st->codecpar, bin->fsize);
247 bin->fsize = avio_size(pb) - 9 - st->codecpar->extradata_size;
248 ff_sauce_read(s, &bin->fsize, NULL, 0);
287 bin->fsize = avio_size(pb) - 1 - 192 - 4096;
289 ff_sauce_read(s, &bin->fsize, &got_width, 0);
293 calculate_height(st->codecpar, bin->fsize);
341 bin->fsize = avio_size(pb) - 12 - 4096 - 48;
342 ff_sauce_read(s, &bin->fsize, &got_width, 0);
346 calculate_height(st->codecpar, bin->fsize);
357 if (bin->fsize > 0) {
358 if (av_get_packet(s->pb, pkt, bin->fsize) < 0)
360 bin->fsize = -1; /* done */
361 } else if (!bin->fsize) {