MCPcopy Create free account
hub / github.com/AOMediaCodec/libavif / avifDecoderSetIOFile

Function avifDecoderSetIOFile

src/read.c:5131–5139  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5129}
5130
5131avifResult avifDecoderSetIOFile(avifDecoder * decoder, const char * filename)
5132{
5133 avifIO * io = avifIOCreateFileReader(filename);
5134 if (!io) {
5135 return AVIF_RESULT_IO_ERROR;
5136 }
5137 avifDecoderSetIO(decoder, io);
5138 return AVIF_RESULT_OK;
5139}
5140
5141// 0-byte extents are ignored/overwritten during the merge, as they are the signal from helper
5142// functions that no extent was necessary for this given sample. If both provided extents are

Callers 15

mainFunction · 0.85
ReadAvifFunction · 0.85
RunMethod · 0.85
avifDecoderReadFileFunction · 0.85
TESTFunction · 0.85
TESTFunction · 0.85
TESTFunction · 0.85
TESTFunction · 0.85
TESTFunction · 0.85
TESTFunction · 0.85
TESTFunction · 0.85
TESTFunction · 0.85

Calls 2

avifIOCreateFileReaderFunction · 0.85
avifDecoderSetIOFunction · 0.85

Tested by 10

TESTFunction · 0.68
TESTFunction · 0.68
TESTFunction · 0.68
TESTFunction · 0.68
TESTFunction · 0.68
TESTFunction · 0.68
TESTFunction · 0.68
TESTFunction · 0.68
TESTFunction · 0.68
TESTFunction · 0.68