KImgIO
pic_read.cpp
Go to the documentation of this file.
121 inline static void pic2RGBA(unsigned char *src_pixel, unsigned char *target_pixel, unsigned char *cmap, unsigned components) {
152 static int decodeRLE(QIODevice *dev, void *row, unsigned max, unsigned bpp, unsigned channels) {
uchar * scanLine(int i)
static void pic2RGBA(unsigned char *src_pixel, unsigned char *target_pixel, unsigned char *cmap, unsigned components)
Converts a PIC pixel to 32bits RGBA.
Definition: pic_read.cpp:121
bool picReadHeader(QIODevice *dev, PICHeader *hdr, bool peek)
PIC_RW - Qt PIC Support Copyright (C) 2007 Ruben Lopez r.lopez@bren.es
Definition: pic_read.cpp:41
static int channels2bpp(char channels)
Gets the channels definition and returns the number of bytes per pixel.
Definition: pic_read.cpp:68
static bool readRow(QIODevice *dev, unsigned *row, unsigned width, PICChannel *channels)
Reads a row from the file.
Definition: pic_read.cpp:215
static void makeComponentMap(unsigned channel, unsigned char *cmap)
Makes a component map based on the channels info.
Definition: pic_read.cpp:101
#define PIC_MAGIC_NUMBER
PIC_RW - Qt PIC Support Copyright (C) 2007 Ruben Lopez r.lopez@bren.es
Definition: pic_rw.h:31
void pic_read(QIODevice *dev, QImage *result)
KDE image reading function.
Definition: pic_read.cpp:264
qint64 peek(char *data, qint64 maxSize)
Definition: pic_rw.h:52
qint64 read(char *data, qint64 maxSize)
static bool readChannels(QIODevice *dev, PICChannel *channels, int &bpp)
Reads the channels info.
Definition: pic_read.cpp:81
Definition: pic_rw.h:61
Definition: pic_rw.h:60
static unsigned getNumChannels(PICChannel *channels)
Counts the number of channels in the PICChannel header.
Definition: pic_read.cpp:132
Definition: pic_rw.h:62
Definition: pic_rw.h:59
static int decodeRLE(QIODevice *dev, void *row, unsigned max, unsigned bpp, unsigned channels)
Decodes a Run-lenght encoded chunk.
Definition: pic_read.cpp:152
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:22:49 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:22:49 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.