chromium/third_party/libavif/src/src/io.c

// Copyright 2020 Joe Drago. All rights reserved.
// SPDX-License-Identifier: BSD-2-Clause

#include "avif/internal.h"

#include <limits.h>
#include <stdio.h>
#include <string.h>

void avifIODestroy(avifIO * io)
{}

// --------------------------------------------------------------------------------------
// avifIOMemoryReader

avifIOMemoryReader;

static avifResult avifIOMemoryReaderRead(struct avifIO * io, uint32_t readFlags, uint64_t offset, size_t size, avifROData * out)
{}

static void avifIOMemoryReaderDestroy(struct avifIO * io)
{}

avifIO * avifIOCreateMemoryReader(const uint8_t * data, size_t size)
{}

// --------------------------------------------------------------------------------------
// avifIOFileReader

avifIOFileReader;

static avifResult avifIOFileReaderRead(struct avifIO * io, uint32_t readFlags, uint64_t offset, size_t size, avifROData * out)
{}

static void avifIOFileReaderDestroy(struct avifIO * io)
{}

avifIO * avifIOCreateFileReader(const char * filename)
{}