Home | History | Annotate | Download | only in samples

Lines Matching refs:png

20 #include "third_party/libpng16/png.h"
40 // Represents a comment in the tEXt ancillary chunk of the png.
75 // in turn based on the Mozilla png decoder.
80 const double kMaxGamma = 21474.83; // Maximum gamma accepted by png library.
145 // Called when the png header has been read. This code is based on the WebKit
299 return false; // Input data too small to be a png
333 // PNG library called below.
365 // Passed around as the io_ptr in the png structs so our callbacks know where
373 void EncoderWriteCallback(png_structp png, png_bytep data, png_size_t size) {
374 PngEncoderState* state = static_cast<PngEncoderState*>(png_get_io_ptr(png));
380 void FakeFlushCallback(png_structp png) {
438 // A PNG comment's key can only be 79 characters long.
614 // Decode a PNG into an RGBA pixel array.
621 // Encode an RGBA pixel array into a PNG.
632 // Encode an BGRA pixel array into a PNG.