5#ifndef TESTING_IMAGE_DIFF_IMAGE_DIFF_PNG_H_
6#define TESTING_IMAGE_DIFF_IMAGE_DIFF_PNG_H_
12#include "third_party/base/containers/span.h"
19 bool reverse_byte_order,
40 bool discard_transparency);
#define FPDF_ANNOT_FILEATTACHMENT
#define FPDF_ANNOT_RICHMEDIA
#define FPDF_ANNOT_FLAG_INVISIBLE
#define FPDF_ANNOT_FLAG_NOROTATE
#define FPDF_ANNOT_FLAG_NOZOOM
#define FPDF_ANNOT_FLAG_HIDDEN
#define FPDF_ANNOT_FLAG_PRINT
#define FPDF_ANNOT_THREED
#define FPDF_ANNOT_STRIKEOUT
#define FPDF_ANNOT_UNDERLINE
#define FPDF_ANNOT_SCREEN
#define FPDF_ANNOT_FLAG_READONLY
FPDF_EXPORT int FPDF_CALLCONV FPDFPage_GetAnnotCount(FPDF_PAGE page)
#define FPDF_ANNOT_WATERMARK
#define FPDF_ANNOT_XFAWIDGET
#define FPDF_ANNOT_WIDGET
#define FPDF_ANNOT_HIGHLIGHT
#define FPDF_ANNOT_TRAPNET
#define FPDF_ANNOT_SQUIGGLY
#define FPDF_ANNOT_FLAG_LOCKED
#define FPDF_ANNOT_SQUARE
#define FPDF_ANNOT_FREETEXT
#define FPDF_ANNOT_FLAG_NOVIEW
#define FPDF_ANNOT_POLYGON
@ FPDFANNOT_COLORTYPE_InteriorColor
@ FPDFANNOT_COLORTYPE_Color
#define FPDF_ANNOT_FLAG_TOGGLENOVIEW
#define FPDF_ANNOT_CIRCLE
#define FPDF_ANNOT_PRINTERMARK
#define FPDF_ANNOT_POLYLINE
FPDF_EXPORT int FPDF_CALLCONV FPDFDoc_GetAttachmentCount(FPDF_DOCUMENT document)
FPDF_EXPORT unsigned long FPDF_CALLCONV FPDFAttachment_GetName(FPDF_ATTACHMENT attachment, FPDF_WCHAR *buffer, unsigned long buflen)
FPDF_EXPORT FPDF_ATTACHMENT FPDF_CALLCONV FPDFDoc_GetAttachment(FPDF_DOCUMENT document, int index)
FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FPDFAttachment_GetFile(FPDF_ATTACHMENT attachment, void *buffer, unsigned long buflen, unsigned long *out_buflen)
FPDF_EXPORT FPDF_PAGEOBJECT FPDF_CALLCONV FPDFPage_GetObject(FPDF_PAGE page, int index)
FPDF_EXPORT int FPDF_CALLCONV FPDFPageObj_GetType(FPDF_PAGEOBJECT page_object)
#define FPDF_PAGEOBJ_PATH
#define FPDF_PAGEOBJ_TEXT
#define FPDF_PAGEOBJ_SHADING
#define FPDF_PAGEOBJ_IMAGE
#define FPDF_PAGEOBJ_FORM
FPDF_EXPORT int FPDF_CALLCONV FPDFPage_CountObjects(FPDF_PAGE page)
FPDF_EXPORT int FPDF_CALLCONV FPDFText_CountChars(FPDF_TEXTPAGE text_page)
FPDF_EXPORT unsigned int FPDF_CALLCONV FPDFText_GetUnicode(FPDF_TEXTPAGE text_page, int index)
FPDF_EXPORT unsigned long FPDF_CALLCONV FPDFPage_GetRawThumbnailData(FPDF_PAGE page, void *buffer, unsigned long buflen)
FPDF_EXPORT unsigned long FPDF_CALLCONV FPDFPage_GetDecodedThumbnailData(FPDF_PAGE page, void *buffer, unsigned long buflen)
#define FPDFBitmap_Unknown
std::vector< uint8_t > EncodeGrayPNG(pdfium::span< const uint8_t > input, int width, int height, int row_byte_width)
std::vector< uint8_t > DecodePNG(pdfium::span< const uint8_t > input, bool reverse_byte_order, int *width, int *height)
std::vector< uint8_t > EncodeBGRPNG(pdfium::span< const uint8_t > input, int width, int height, int row_byte_width)
std::vector< uint8_t > EncodeRGBAPNG(pdfium::span< const uint8_t > input, int width, int height, int row_byte_width)
std::vector< uint8_t > EncodeBGRAPNG(pdfium::span< const uint8_t > input, int width, int height, int row_byte_width, bool discard_transparency)
bool GetThumbnailFilename(char *name_buf, size_t name_buf_size, const char *pdf_name, int page_num, ThumbnailDecodeType decode_type)
void WriteDecodedThumbnailStream(FPDF_PAGE page, const char *pdf_name, int page_num)
void WriteRenderedImages(FPDF_DOCUMENT doc, FPDF_PAGE page, const char *pdf_name, int page_num)
void WriteBufferToFile(const void *buf, size_t buflen, const char *filename, const char *filetype)
void WriteRawThumbnailStream(FPDF_PAGE page, const char *pdf_name, int page_num)
std::vector< uint8_t > EncodeBitmapToPng(ScopedFPDFBitmap bitmap)
void WriteAnnot(FPDF_PAGE page, const char *pdf_name, int num)
void WriteImages(FPDF_PAGE page, const char *pdf_name, int page_num)
std::string WritePng(const char *pdf_name, int num, void *buffer, int stride, int width, int height)
void WriteThumbnail(FPDF_PAGE page, const char *pdf_name, int page_num)
void WriteText(FPDF_TEXTPAGE textpage, const char *pdf_name, int num)
std::string WritePpm(const char *pdf_name, int num, void *buffer_void, int stride, int width, int height)
void WriteAttachments(FPDF_DOCUMENT doc, const std::string &name)