godot/thirdparty/libpng/pngpread.c


/* pngpread.c - read a png file in push mode
 *
 * Copyright (c) 2018-2024 Cosmin Truta
 * Copyright (c) 1998-2002,2004,2006-2018 Glenn Randers-Pehrson
 * Copyright (c) 1996-1997 Andreas Dilger
 * Copyright (c) 1995-1996 Guy Eric Schalnat, Group 42, Inc.
 *
 * This code is released under the libpng license.
 * For conditions of distribution and use, see the disclaimer
 * and license in png.h
 */

#include "pngpriv.h"

#ifdef PNG_PROGRESSIVE_READ_SUPPORTED

/* Push model modes */
#define PNG_READ_SIG_MODE
#define PNG_READ_CHUNK_MODE
#define PNG_READ_IDAT_MODE
#define PNG_READ_tEXt_MODE
#define PNG_READ_zTXt_MODE
#define PNG_READ_DONE_MODE
#define PNG_READ_iTXt_MODE
#define PNG_ERROR_MODE

#define PNG_PUSH_SAVE_BUFFER_IF_FULL
#define PNG_PUSH_SAVE_BUFFER_IF_LT(N)

void PNGAPI
png_process_data(png_structrp png_ptr, png_inforp info_ptr,
    png_bytep buffer, size_t buffer_size)
{}

size_t PNGAPI
png_process_data_pause(png_structrp png_ptr, int save)
{}

png_uint_32 PNGAPI
png_process_data_skip(png_structrp png_ptr)
{}

/* What we do with the incoming data depends on what we were previously
 * doing before we ran out of data...
 */
void /* PRIVATE */
png_process_some_data(png_structrp png_ptr, png_inforp info_ptr)
{}

/* Read any remaining signature bytes from the stream and compare them with
 * the correct PNG signature.  It is possible that this routine is called
 * with bytes already read from the signature, either because they have been
 * checked by the calling application, or because of multiple calls to this
 * routine.
 */
void /* PRIVATE */
png_push_read_sig(png_structrp png_ptr, png_inforp info_ptr)
{}

void /* PRIVATE */
png_push_read_chunk(png_structrp png_ptr, png_inforp info_ptr)
{}

void PNGCBAPI
png_push_fill_buffer(png_structp png_ptr, png_bytep buffer, size_t length)
{}

void /* PRIVATE */
png_push_save_buffer(png_structrp png_ptr)
{}

void /* PRIVATE */
png_push_restore_buffer(png_structrp png_ptr, png_bytep buffer,
    size_t buffer_length)
{}

void /* PRIVATE */
png_push_read_IDAT(png_structrp png_ptr)
{}

void /* PRIVATE */
png_process_IDAT_data(png_structrp png_ptr, png_bytep buffer,
    size_t buffer_length)
{}

void /* PRIVATE */
png_push_process_row(png_structrp png_ptr)
{}

void /* PRIVATE */
png_read_push_finish_row(png_structrp png_ptr)
{}

void /* PRIVATE */
png_push_have_info(png_structrp png_ptr, png_inforp info_ptr)
{}

void /* PRIVATE */
png_push_have_end(png_structrp png_ptr, png_inforp info_ptr)
{}

void /* PRIVATE */
png_push_have_row(png_structrp png_ptr, png_bytep row)
{}

#ifdef PNG_READ_INTERLACING_SUPPORTED
void PNGAPI
png_progressive_combine_row(png_const_structrp png_ptr, png_bytep old_row,
    png_const_bytep new_row)
{}
#endif /* READ_INTERLACING */

void PNGAPI
png_set_progressive_read_fn(png_structrp png_ptr, png_voidp progressive_ptr,
    png_progressive_info_ptr info_fn, png_progressive_row_ptr row_fn,
    png_progressive_end_ptr end_fn)
{}

png_voidp PNGAPI
png_get_progressive_ptr(png_const_structrp png_ptr)
{}
#endif /* PROGRESSIVE_READ */