Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qpnghandler.cpp File Reference

(5157ce7c59b704bd080908f24c6ccdf7cb585eeb)

#include "private/qpnghandler_p.h"
#include <qcoreapplication.h>
#include <qdebug.h>
#include <qiodevice.h>
#include <qimage.h>
#include <qloggingcategory.h>
#include <qvariant.h>
#include <private/qimage_p.h>
#include <qcolorspace.h>
#include <private/qcolorspace_p.h>
#include <png.h>
#include <pngconf.h>
Include dependency graph for qpnghandler.cpp:

Go to the source code of this file.

Classes

class  QPngHandlerPrivate
class  QPNGImageWriter

Macros

#define FAST_SCAN_LINE(data, bpl, y)

Functions

static void iod_read_fn (png_structp png_ptr, png_bytep data, png_size_t length)
static void qpiw_write_fn (png_structp png_ptr, png_bytep data, png_size_t length)
static void qpiw_flush_fn (png_structp)
static bool setup_qt (QImage &image, png_structp png_ptr, png_infop info_ptr)
static void qt_png_warning (png_structp, png_const_charp message)
static void set_text (const QImage &image, png_structp png_ptr, png_infop info_ptr, const QString &description)
static bool write_png_image (const QImage &image, QIODevice *device, int compression, int quality, float gamma, const QString &description)

Macro Definition Documentation

◆ FAST_SCAN_LINE

#define FAST_SCAN_LINE ( data,
bpl,
y )
Value:
(data + (y) * bpl)
GLint GLsizei GLsizei GLenum GLenum GLsizei void * data
[0]
GLint y

Definition at line 52 of file qpnghandler.cpp.

Function Documentation

◆ iod_read_fn()

void iod_read_fn ( png_structp png_ptr,
png_bytep data,
png_size_t length )
static

Definition at line 139 of file qpnghandler.cpp.

References QPngHandlerPrivate::ReadingEnd, and QPngHandlerPrivate::state.

Referenced by QPngHandlerPrivate::readPngHeader().

Here is the caller graph for this function:

◆ qpiw_flush_fn()

void qpiw_flush_fn ( png_structp )
static

Definition at line 178 of file qpnghandler.cpp.

Referenced by QPNGImageWriter::writeImage().

Here is the caller graph for this function:

◆ qpiw_write_fn()

void qpiw_write_fn ( png_structp png_ptr,
png_bytep data,
png_size_t length )
static

Definition at line 164 of file qpnghandler.cpp.

References QPNGImageWriter::device().

Referenced by QPNGImageWriter::writeImage().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ qt_png_warning()

void qt_png_warning ( png_structp ,
png_const_charp message )
static

Definition at line 355 of file qpnghandler.cpp.

Referenced by QPngHandlerPrivate::readPngHeader(), and QPNGImageWriter::writeImage().

Here is the caller graph for this function:

◆ set_text()

void set_text ( const QImage & image,
png_structp png_ptr,
png_infop info_ptr,
const QString & description )
static

Definition at line 667 of file qpnghandler.cpp.

◆ setup_qt()

bool setup_qt ( QImage & image,
png_structp png_ptr,
png_infop info_ptr )
static

Definition at line 185 of file qpnghandler.cpp.

◆ write_png_image()

bool write_png_image ( const QImage & image,
QIODevice * device,
int compression,
int quality,
float gamma,
const QString & description )
static

Definition at line 1011 of file qpnghandler.cpp.

References QPNGImageWriter::QPNGImageWriter(), and QPNGImageWriter::setGamma().

Here is the call graph for this function: