Qt 4.8
Public Functions | List of all members
BlendSrcGeneric< spanMethod > Class Template Reference
Inheritance diagram for BlendSrcGeneric< spanMethod >:
QBlendBase

Public Functions

 BlendSrcGeneric (QSpanData *d, Operator o)
 
const uintfetch (int x, int y, int len)
 
void process (int x, int y, int len, int coverage, const uint *src, int offset)
 
void store (int x, int y, int len)
 
- Public Functions inherited from QBlendBase
 QBlendBase (QSpanData *d, Operator o)
 

Additional Inherited Members

- Public Variables inherited from QBlendBase
uint buffer [buffer_size]
 
QSpanDatadata
 
uintdest
 
Operator op
 
uint src_buffer [buffer_size]
 

Detailed Description

template<SpanMethod spanMethod>
class BlendSrcGeneric< spanMethod >

Definition at line 3562 of file qdrawhelper.cpp.

Constructors and Destructors

◆ BlendSrcGeneric()

template<SpanMethod spanMethod>
BlendSrcGeneric< spanMethod >::BlendSrcGeneric ( QSpanData d,
Operator  o 
)
inline

Definition at line 3565 of file qdrawhelper.cpp.

3566  : QBlendBase(d, o)
3567  {
3568  }
QBlendBase(QSpanData *d, Operator o)

Functions

◆ fetch()

template<SpanMethod spanMethod>
const uint* BlendSrcGeneric< spanMethod >::fetch ( int  x,
int  y,
int  len 
)
inline

Definition at line 3570 of file qdrawhelper.cpp.

3571  {
3572  if (spanMethod == RegularSpans)
3574 
3575  return op.src_fetch(src_buffer, &op, data, y, x, len);
3576  }
uint src_buffer[buffer_size]
QSpanData * data
DestFetchProc dest_fetch
Operator op
QRasterBuffer * rasterBuffer
uint buffer[buffer_size]
SourceFetchProc src_fetch

◆ process()

template<SpanMethod spanMethod>
void BlendSrcGeneric< spanMethod >::process ( int  x,
int  y,
int  len,
int  coverage,
const uint src,
int  offset 
)
inline

Definition at line 3578 of file qdrawhelper.cpp.

3579  {
3580  if (spanMethod == RegularSpans)
3581  op.func(dest + offset, src + offset, len, coverage);
3582  else
3583  drawBufferSpan(data, src + offset, len, x, y, len, coverage);
3584  }
QSpanData * data
CompositionFunction func
static void drawBufferSpan(QSpanData *data, const uint *buffer, int bufsize, int x, int y, int length, uint const_alpha)
Operator op

◆ store()

template<SpanMethod spanMethod>
void BlendSrcGeneric< spanMethod >::store ( int  x,
int  y,
int  len 
)
inline

Definition at line 3586 of file qdrawhelper.cpp.

3587  {
3588  if (spanMethod == RegularSpans && op.dest_store) {
3589  op.dest_store(data->rasterBuffer, x, y, dest, len);
3590  }
3591  }
DestStoreProc dest_store
QSpanData * data
Operator op
QRasterBuffer * rasterBuffer

The documentation for this class was generated from the following file: