C
PixelDataPointer Struct
struct Qul::PlatformInterface::PixelDataPointerA structure containing information about precise (bit perfect) pixel data location. More...
Header: | #include <platforminterface/pixeldatapointer.h> |
Since: | Qt Quick Ultralite (Platform) 1.9 |
Public Functions
PixelDataPointer(const unsigned char *address, uint8_t bitOffset) | |
PixelDataPointer() | |
const unsigned char * | address() const |
unsigned char * | address() |
Qul::PlatformInterface::PixelDataPointer & | advance(int bitOffset) |
uint8_t | bitOffset() const |
const unsigned char * | operator const unsigned char *() const |
unsigned char * | operator unsigned char *() |
unsigned char | operator*() const |
Qul::PlatformInterface::PixelDataPointer & | operator+=(int byteOffset) |
Detailed Description
This structure supports pointer semantics - it's implicitly convertible to the (const) unsigned char*, supports dereferencing and +=
operator.
Member Function Documentation
PixelDataPointer::PixelDataPointer(const unsigned char *address, uint8_t bitOffset)
Constructs object initialized to address and bitOffset.
PixelDataPointer::PixelDataPointer()
Constructs zero-initialized object.
const unsigned char *PixelDataPointer::address() const
Returns address of a first byte that contains constant pixel data.
unsigned char *PixelDataPointer::address()
Returns address of a first byte that contains mutable pixel data.
Qul::PlatformInterface::PixelDataPointer &PixelDataPointer::advance(int bitOffset)
Moves the pointer by a number of bitOffset bits.
uint8_t PixelDataPointer::bitOffset() const
Returns bit offset in the address byte where the actual pixel data starts.
const unsigned char *PixelDataPointer::operator const unsigned char *() const
Allows implicit conversion to const unsigned char*
.
Note: This conversion does not consider the bitOffset value.
unsigned char *PixelDataPointer::operator unsigned char *()
Allows implicit conversion to unsigned char*
.
Note: This conversion does not consider the bitOffset value.
unsigned char PixelDataPointer::operator*() const
Returns a value of an address byte.
Qul::PlatformInterface::PixelDataPointer &PixelDataPointer::operator+=(int byteOffset)
Moves the pointer by a number of byteOffset bytes.
Available under certain Qt licenses.
Find out more.