KImgIO
pic_read.cpp
Go to the documentation of this file.
static int decodeRLE(QIODevice *dev, void *row, unsigned max, unsigned bpp, unsigned channels)
Decodes a Run-lenght encoded chunk.
Definition pic_read.cpp:152
static unsigned getNumChannels(PICChannel *channels)
Counts the number of channels in the PICChannel header.
Definition pic_read.cpp:132
static void makeComponentMap(unsigned channel, unsigned char *cmap)
Makes a component map based on the channels info.
Definition pic_read.cpp:101
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 bool readRow(QIODevice *dev, unsigned *row, unsigned width, PICChannel *channels)
Reads a row from the file.
Definition pic_read.cpp:215
static int channels2bpp(char channels)
Gets the channels definition and returns the number of bytes per pixel.
Definition pic_read.cpp:68
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
static bool readChannels(QIODevice *dev, PICChannel *channels, int &bpp)
Reads the channels info.
Definition pic_read.cpp:81
#define PIC_MAGIC_NUMBER
PIC_RW - Qt PIC Support Copyright (C) 2007 Ruben Lopez r.lopez@bren.es
Definition pic_rw.h:31
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Tue Mar 25 2025 00:00:00 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Tue Mar 25 2025 00:00:00 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.