#include "kis_png_converter.h"
#include <KoConfig.h>
#include <KoStore.h>
#include <KoStoreDevice.h>
#include <limits.h>
#include <stdio.h>
#include <zlib.h>
#include <QBuffer>
#include <QFile>
#include <QApplication>
#include <klocalizedstring.h>
#include <QUrl>
#include <KoColorSpace.h>
#include <KoDocumentInfo.h>
#include <KoID.h>
#include <KoColorSpaceRegistry.h>
#include <KoColorProfile.h>
#include <KoColorProfileQuery.h>
#include <KoColorTransferFunctions.h>
#include <KoColor.h>
#include <KoUnit.h>
#include "dialogs/kis_dlg_png_import.h"
#include "kis_clipboard.h"
#include "kis_undo_stores.h"
#include <KisDocument.h>
#include <KoColorModelStandardIds.h>
#include <kis_config.h>
#include <kis_cursor_override_hijacker.h>
#include <kis_group_layer.h>
#include <kis_image.h>
#include <kis_iterator_ng.h>
#include <kis_layer.h>
#include <kis_meta_data_backend_registry.h>
#include <kis_meta_data_store.h>
#include <kis_paint_device.h>
#include <kis_paint_layer.h>
#include <kis_painter.h>
#include <kis_transaction.h>
#include <kis_hdr_metadata.h>
#include <kis_assert.h>
Go to the source code of this file.
◆ PNG_MAX_UINT
| #define PNG_MAX_UINT PNG_UINT_31_MAX |
◆ _flush_fn()
| static void _flush_fn |
( |
png_structp | png_ptr | ) |
|
|
static |
◆ _read_fn()
| static void _read_fn |
( |
png_structp | png_ptr, |
|
|
png_bytep | data, |
|
|
png_size_t | length ) |
|
static |
Definition at line 384 of file kis_png_converter.cpp.
385{
386 QIODevice *in = (QIODevice *)png_get_io_ptr(png_ptr);
387
389 int nr = in->read((
char*)data,
length);
390 if (nr <= 0) {
391 png_error(png_ptr, "Read Error");
392 return;
393 }
395 }
396}
qreal length(const QPointF &vec)
References length().
◆ _write_fn()
| static void _write_fn |
( |
png_structp | png_ptr, |
|
|
png_bytep | data, |
|
|
png_size_t | length ) |
|
static |
Definition at line 399 of file kis_png_converter.cpp.
400{
401 QIODevice* out = (QIODevice*)png_get_io_ptr(png_ptr);
402
405 png_error(png_ptr, "Write Error");
406 return;
407 }
408}
References length().
◆ kis_png_warning()
| static void kis_png_warning |
( |
png_structp | , |
|
|
png_const_charp | message ) |
|
static |