7#ifndef CORE_FXCODEC_PNG_PNG_DECODER_H_
8#define CORE_FXCODEC_PNG_PNG_DECODER_H_
12#include "core/fxcodec/progressive_decoder_iface.h"
13#include "core/fxcrt/retain_ptr.h"
15#ifndef PDF_ENABLE_XFA_PNG
16#error "PNG must be enabled"
21class CFX_DIBAttribute;
46 CFX_DIBAttribute* pAttribute);
CPngContext(PngDecoder::Delegate *pDelegate)
char m_szLastError[PNG_ERROR_SIZE]
UnownedPtr< PngDecoder::Delegate > const m_pDelegate
virtual bool PngAskScanlineBuf(int line, uint8_t **pSrcBuf)=0
virtual void PngFillScanlineBufCompleted(int pass, int line)=0
virtual bool PngReadHeader(int width, int height, int bpc, int pass, int *color_type, double *gamma)=0
static bool ContinueDecode(ProgressiveDecoderIface::Context *pContext, RetainPtr< CFX_CodecMemory > codec_memory, CFX_DIBAttribute *pAttribute)
PngDecoder(const PngDecoder &)=delete
static std::unique_ptr< ProgressiveDecoderIface::Context > StartDecode(Delegate *pDelegate)
PngDecoder & operator=(const PngDecoder &)=delete
void _png_get_header_func(png_structp png_ptr, png_infop info_ptr)
void _png_warning_data(png_structp png_ptr, png_const_charp error_msg)
void _png_error_data(png_structp png_ptr, png_const_charp error_msg)
void _png_load_bmp_attribute(png_structp png_ptr, png_infop info_ptr, CFX_DIBAttribute *pAttribute)
void _png_get_row_func(png_structp png_ptr, png_bytep new_row, png_uint_32 row_num, int pass)
void _png_get_end_func(png_structp png_ptr, png_infop info_ptr)