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

Function avifDecoderReadMemory

src/read.c:7267–7275  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7265}
7266
7267avifResult avifDecoderReadMemory(avifDecoder * decoder, avifImage * image, const uint8_t * data, size_t size)
7268{
7269 avifDiagnosticsClearError(&decoder->diag);
7270 avifResult result = avifDecoderSetIOMemory(decoder, data, size);
7271 if (result != AVIF_RESULT_OK) {
7272 return result;
7273 }
7274 return avifDecoderRead(decoder, image);
7275}
7276
7277avifResult avifDecoderReadFile(avifDecoder * decoder, avifImage * image, const char * filename)
7278{

Callers 15

TEST_PFunction · 0.85
TESTFunction · 0.85
TEST_PFunction · 0.85
TEST_PFunction · 0.85
TEST_PFunction · 0.85
TESTFunction · 0.85
EncodeDecodeGridFunction · 0.85
TEST_PFunction · 0.85
TESTFunction · 0.85
TESTFunction · 0.85
TEST_PFunction · 0.85

Calls 3

avifDecoderSetIOMemoryFunction · 0.85
avifDecoderReadFunction · 0.85

Tested by 15

TEST_PFunction · 0.68
TESTFunction · 0.68
TEST_PFunction · 0.68
TEST_PFunction · 0.68
TEST_PFunction · 0.68
TESTFunction · 0.68
EncodeDecodeGridFunction · 0.68
TEST_PFunction · 0.68
TESTFunction · 0.68
TESTFunction · 0.68
TEST_PFunction · 0.68