Lines Matching defs:io_context
61 static void apng_write_chunk(AVIOContext *io_context, uint32_t tag,
70 avio_wb32(io_context, length);
73 avio_wb32(io_context, tag);
76 avio_write(io_context, buf, length);
78 avio_wb32(io_context, ~crc);
119 AVIOContext *io_context = format_context->pb;
147 avio_write(io_context, apng->extra_data, existing_acTL_chunk - apng->extra_data);
148 avio_write(io_context, chunk_after_acTL, apng->extra_data + apng->extra_data_size - chunk_after_acTL);
150 avio_write(io_context, apng->extra_data, apng->extra_data_size);
157 avio_write(io_context, apng->prev_packet->data, existing_fcTL_chunk - apng->prev_packet->data);
158 avio_write(io_context, chunk_after_fcTL, apng->prev_packet->data + apng->prev_packet->size - chunk_after_fcTL);
160 avio_write(io_context, apng->prev_packet->data, apng->prev_packet->size);
170 avio_write(io_context, apng->extra_data, apng->extra_data_size);
176 apng->acTL_offset = avio_tell(io_context);
179 apng_write_chunk(io_context, MKBETAG('a', 'c', 'T', 'L'), buf, 8);
214 avio_write(io_context, data, (existing_fcTL_chunk - 8) - data);
220 apng_write_chunk(io_context, MKBETAG('f', 'c', 'T', 'L'),
227 avio_write(io_context, data, data_end - data);
260 AVIOContext *io_context = format_context->pb;
270 apng_write_chunk(io_context, MKBETAG('I', 'E', 'N', 'D'), NULL, 0);
272 if (apng->acTL_offset && (io_context->seekable & AVIO_SEEKABLE_NORMAL)) {
273 avio_seek(io_context, apng->acTL_offset, SEEK_SET);
277 apng_write_chunk(io_context, MKBETAG('a', 'c', 'T', 'L'), buf, 8);