Lines Matching refs:io
154 avifIO io; // this must be the first member for easy casting to avifIO* member
171 static avifResult readFromCtx(avifIO *io, uint32_t readFlags, uint64_t offset, size_t size, avifROD… in readFromCtx() argument
173 gdIOCtx *ctx = (gdIOCtx *) io->data; in readFromCtx()
174 avifIOCtxReader *reader = (avifIOCtxReader *) io; in readFromCtx()
212 static void destroyAvifIO(struct avifIO *io) { in destroyAvifIO() argument
213 avifIOCtxReader *reader = (avifIOCtxReader *) io; in destroyAvifIO()
238 reader->io.persistent = AVIF_FALSE; in createAvifIOFromCtx()
239 reader->io.read = readFromCtx; in createAvifIOFromCtx()
240 reader->io.write = NULL; // this function is currently unused; see avif.h in createAvifIOFromCtx()
241 reader->io.destroy = destroyAvifIO; in createAvifIOFromCtx()
242 reader->io.sizeHint = 0; // sadly, we don't get this information from the gdIOCtx. in createAvifIOFromCtx()
243 reader->io.data = ctx; in createAvifIOFromCtx()
354 avifIO *io; in gdImageCreateFromAvifCtx() local
372 io = createAvifIOFromCtx(ctx); in gdImageCreateFromAvifCtx()
373 if (!io) { in gdImageCreateFromAvifCtx()
378 avifDecoderSetIO(decoder, io); in gdImageCreateFromAvifCtx()