Home | History | Annotate | Download | only in libvpx

Lines Matching refs:buf

25     stats->buf.sz = 0;
26 stats->buf.buf = NULL;
38 stats->buf.sz = stats->buf_alloc_sz = ftell(stats->file);
41 stats->buf.buf = malloc(stats->buf_alloc_sz);
43 if (!stats->buf.buf)
47 nbytes = fread(stats->buf.buf, 1, stats->buf.sz, stats->file);
48 res = (nbytes == stats->buf.sz);
59 stats->buf.sz = 0;
61 stats->buf.buf = malloc(stats->buf_alloc_sz);
64 stats->buf_ptr = stats->buf.buf;
65 res = (stats->buf.buf != NULL);
72 free(stats->buf.buf);
78 if (stats->pass == last_pass) free(stats->buf.buf);
86 if (stats->buf.sz + len > stats->buf_alloc_sz) {
88 char *new_ptr = realloc(stats->buf.buf, new_sz);
91 stats->buf_ptr = new_ptr + (stats->buf_ptr - (char *)stats->buf.buf);
92 stats->buf.buf = new_ptr;
100 stats->buf.sz += len;
105 vpx_fixed_buf_t stats_get(stats_io_t *stats) { return stats->buf; }