Lines Matching defs:avbuf
71 * It also stores the header in the avbuf and stores the size of data part in data_size
75 * @param avbuf pointer to AVBPrint to store the header
80 AVBPrint *avbuf, uint64_t *data_size)
94 av_bprint_append_data(avbuf, buf, FITS_BLOCK_SIZE);
150 AVBPrint avbuf;
159 av_bprint_init(&avbuf, FITS_BLOCK_SIZE, AV_BPRINT_SIZE_UNLIMITED);
160 while ((ret = is_image(s, fits, &header, &avbuf, &size)) == 0) {
161 av_bprint_finalize(&avbuf, NULL);
166 av_bprint_init(&avbuf, FITS_BLOCK_SIZE, AV_BPRINT_SIZE_UNLIMITED);
172 if (!av_bprint_is_complete(&avbuf)) {
177 av_assert0(avbuf.len <= INT64_MAX && size <= INT64_MAX);
178 if (avbuf.len + size > INT_MAX - 80) {
183 ret = av_new_packet(pkt, avbuf.len - 80 + size);
190 ret = av_bprint_finalize(&avbuf, &buf);
195 memcpy(pkt->data, buf + 80, avbuf.len - 80);
196 pkt->size = avbuf.len - 80;
210 av_bprint_finalize(&avbuf, NULL);