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

Function avifDecoderSetIOMemory

src/read.c:5123–5129  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5121}
5122
5123avifResult avifDecoderSetIOMemory(avifDecoder * decoder, const uint8_t * data, size_t size)
5124{
5125 avifIO * io = avifIOCreateMemoryReader(data, size);
5126 AVIF_CHECKERR(io != NULL, AVIF_RESULT_OUT_OF_MEMORY);
5127 avifDecoderSetIO(decoder, io);
5128 return AVIF_RESULT_OK;
5129}
5130
5131avifResult avifDecoderSetIOFile(avifDecoder * decoder, const char * filename)
5132{

Callers 15

avif_context_try_loadFunction · 0.85
avifDecoderReadMemoryFunction · 0.85
CreateDecoderAndParseFunction · 0.85
GetIoStatsFromEncodeFunction · 0.85
TESTFunction · 0.85
TESTFunction · 0.85
EncodeDecodeAnimationFunction · 0.85
EncodeAnimationFunction · 0.85
EncodeAnimationFunction · 0.85
TESTFunction · 0.85
TestDecodeMethod · 0.85
TEST_PFunction · 0.85

Calls 2

avifIOCreateMemoryReaderFunction · 0.85
avifDecoderSetIOFunction · 0.85

Tested by 12

GetIoStatsFromEncodeFunction · 0.68
TESTFunction · 0.68
TESTFunction · 0.68
EncodeDecodeAnimationFunction · 0.68
EncodeAnimationFunction · 0.68
EncodeAnimationFunction · 0.68
TESTFunction · 0.68
TestDecodeMethod · 0.68
TEST_PFunction · 0.68
TESTFunction · 0.68
TESTFunction · 0.68
TESTFunction · 0.68