Qt 6.x
The Qt SDK
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
qxcbbackingstore.cpp File Reference
#include "qxcbbackingstore.h"
#include "qxcbconnection.h"
#include "qxcbscreen.h"
#include "qxcbwindow.h"
#include <xcb/shm.h>
#include <xcb/xcb_image.h>
#include <xcb/render.h>
#include <xcb/xcb_renderutil.h>
#include <sys/ipc.h>
#include <sys/shm.h>
#include <sys/mman.h>
#include <stdio.h>
#include <errno.h>
#include <unistd.h>
#include <qdebug.h>
#include <qpainter.h>
#include <qscreen.h>
#include <QtGui/private/qhighdpiscaling_p.h>
#include <qpa/qplatformgraphicsbuffer.h>
#include <private/qimage_p.h>
#include <qendian.h>
#include <algorithm>
+ Include dependency graph for qxcbbackingstore.cpp:

Go to the source code of this file.

Classes

class  QXcbBackingStoreImage
 
class  QXcbGraphicsBuffer
 

Functions

static size_t imageDataSize (const xcb_image_t *image)
 
void qt_scrollRectInImage (QImage &img, const QRect &rect, const QPoint &offset)
 
static void copy_unswapped (char *dst, int dstBytesPerLine, const QImage &img, const QRect &rect)
 
template<class Pixel >
static void copy_swapped (char *dst, const int dstStride, const QImage &img, const QRect &rect)
 
static QImage native_sub_image (QByteArray *buffer, const int dstStride, const QImage &src, const QRect &rect, bool swap)
 
static quint32 round_up_scanline (quint32 base, quint32 pad)
 

Function Documentation

◆ copy_swapped()

template<class Pixel >
static void copy_swapped ( char *  dst,
const int  dstStride,
const QImage img,
const QRect rect 
)
inlinestatic

Definition at line 520 of file qxcbbackingstore.cpp.

References i, Pixel, and rect.

◆ copy_unswapped()

static void copy_unswapped ( char *  dst,
int  dstBytesPerLine,
const QImage img,
const QRect rect 
)
inlinestatic

Definition at line 504 of file qxcbbackingstore.cpp.

References leftOffset, and rect.

Referenced by native_sub_image().

+ Here is the caller graph for this function:

◆ imageDataSize()

static size_t imageDataSize ( const xcb_image_t *  image)
inlinestatic

Definition at line 147 of file qxcbbackingstore.cpp.

Referenced by readMask(), and QXcbBackingStoreImage::resize().

+ Here is the caller graph for this function:

◆ native_sub_image()

static QImage native_sub_image ( QByteArray buffer,
const int  dstStride,
const QImage src,
const QRect rect,
bool  swap 
)
static

Definition at line 540 of file qxcbbackingstore.cpp.

References copy_unswapped(), rect, and swap().

+ Here is the call graph for this function:

◆ qt_scrollRectInImage()

void qt_scrollRectInImage ( QImage img,
const QRect rect,
const QPoint offset 
)

Definition at line 289 of file qbackingstore.cpp.

Referenced by QXcbBackingStoreImage::scroll().

+ Here is the caller graph for this function:

◆ round_up_scanline()

static quint32 round_up_scanline ( quint32  base,
quint32  pad 
)
inlinestatic

Definition at line 563 of file qxcbbackingstore.cpp.

References base.