Lines Matching refs:avbuf
80 AVBPrint *avbuf, uint64_t *data_size) in is_image() argument
94 av_bprint_append_data(avbuf, buf, FITS_BLOCK_SIZE); in is_image()
150 AVBPrint avbuf; in fits_read_packet() local
159 av_bprint_init(&avbuf, FITS_BLOCK_SIZE, AV_BPRINT_SIZE_UNLIMITED); in fits_read_packet()
160 while ((ret = is_image(s, fits, &header, &avbuf, &size)) == 0) { in fits_read_packet()
161 av_bprint_finalize(&avbuf, NULL); in fits_read_packet()
166 av_bprint_init(&avbuf, FITS_BLOCK_SIZE, AV_BPRINT_SIZE_UNLIMITED); in fits_read_packet()
172 if (!av_bprint_is_complete(&avbuf)) { in fits_read_packet()
177 av_assert0(avbuf.len <= INT64_MAX && size <= INT64_MAX); in fits_read_packet()
178 if (avbuf.len + size > INT_MAX - 80) { in fits_read_packet()
183 ret = av_new_packet(pkt, avbuf.len - 80 + size); in fits_read_packet()
190 ret = av_bprint_finalize(&avbuf, &buf); in fits_read_packet()
195 memcpy(pkt->data, buf + 80, avbuf.len - 80); in fits_read_packet()
196 pkt->size = avbuf.len - 80; in fits_read_packet()
210 av_bprint_finalize(&avbuf, NULL); in fits_read_packet()