#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 <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_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 381 of file kis_png_converter.cpp.
382{
383 QIODevice *in = (QIODevice *)png_get_io_ptr(png_ptr);
384
386 int nr = in->read((
char*)data,
length);
387 if (nr <= 0) {
388 png_error(png_ptr, "Read Error");
389 return;
390 }
392 }
393}
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 396 of file kis_png_converter.cpp.
397{
398 QIODevice* out = (QIODevice*)png_get_io_ptr(png_ptr);
399
402 png_error(png_ptr, "Write Error");
403 return;
404 }
405}
References length().
◆ kis_png_warning()
| static void kis_png_warning |
( |
png_structp | , |
|
|
png_const_charp | message ) |
|
static |