#include "qdirectfbpixmap.h"
#include "qdirectfbscreen.h"
#include "qdirectfbpaintengine.h"
#include <QtGui/qbitmap.h>
#include <QtCore/qfile.h>
#include <directfb.h>
Go to the source code of this file.
◆ checkForAlphaPixels()
static bool checkForAlphaPixels |
( |
const QImage & |
img | ) |
|
|
static |
Definition at line 96 of file qdirectfbpixmap.cpp.
Referenced by QDirectFBPixmapData::hasAlphaChannel().
100 const uchar *end_bits = bits + bytes_per_line;
101 const int width = img.
width();
102 const int height = img.
height();
108 for (
int y=0; y<height; ++y) {
109 for (
int x=0; x<width; ++x) {
110 if ((((
uint *)bits)[x] & 0xff000000) != 0xff000000) {
114 bits += bytes_per_line;
120 for (
int y=0; y<height; ++y) {
121 while (bits < end_bits) {
128 end_bits += bytes_per_line;
133 for (
int y=0; y<height; ++y) {
134 while (bits < end_bits) {
135 if ((bits[0] & 0xfc) != 0) {
141 end_bits += bytes_per_line;
146 for (
int y=0; y<height; ++y) {
147 while (bits < end_bits) {
148 if ((bits[0] & 0xf0) != 0) {
154 end_bits += bytes_per_line;
bool hasAlphaChannel() const
Returns true if the image has a format that respects the alpha channel, otherwise returns false...
int bytesPerLine() const
Returns the number of bytes per image scanline.
Format format() const
Returns the format of the image.
uchar * bits()
Returns a pointer to the first pixel data.
int width() const
Returns the width of the image.
int height() const
Returns the height of the image.
◆ isOpaqueFormat()
◆ qt_directfb_surface_for_pixmap()
Definition at line 577 of file qdirectfbpixmap.cpp.
static const char * data(const QByteArray &arr)
virtual IDirectFBSurface * directFBSurface() const
QPixmapData * pixmapData() const
◆ global_ser_no