digikam
#include <dng_filter_task.h>

Protected Attributes | |
AutoPtr< dng_memory_block > | fDstBuffer [kMaxMPThreads] |
dng_image & | fDstImage |
uint32 | fDstPixelType |
uint32 | fDstPlane |
uint32 | fDstPlanes |
AutoPtr< dng_memory_block > | fSrcBuffer [kMaxMPThreads] |
const dng_image & | fSrcImage |
uint32 | fSrcPixelType |
uint32 | fSrcPlane |
uint32 | fSrcPlanes |
dng_point | fSrcRepeat |
![]() | |
uint32 | fMaxThreads |
dng_point | fMaxTileSize |
uint32 | fMinTaskArea |
dng_point | fUnitCell |
Additional Inherited Members | |
![]() | |
static void | Perform (dng_area_task &task, const dng_rect &area, dng_memory_allocator *allocator, dng_abort_sniffer *sniffer) |
Detailed Description
Represents a task which filters an area of a source dng_image to an area of a destination dng_image.
Definition at line 35 of file dng_filter_task.h.
Constructor & Destructor Documentation
Construct a filter task given a source and destination images.
- Parameters
-
srcImage Image from which source pixels are read. dstImage Image to which result pixels are written.
Definition at line 27 of file dng_filter_task.cpp.
|
virtual |
Definition at line 49 of file dng_filter_task.cpp.
Member Function Documentation
|
virtual |
Process one tile or partitioned area.
Should not be overridden. Instead, override ProcessArea, which is where to implement filter processing for a specific type of dng_filter_task. There is no allocator parameter as all allocation should be done in Start.
- Parameters
-
threadIndex 0 to threadCount - 1 index indicating which thread this is. (Can be used to get a thread-specific buffer allocated in the Start method.) area Size of tiles to be used for sizing buffers, etc. (Edges of processing can be smaller.) sniffer dng_abort_sniffer to use to check for user cancellation and progress updates.
Implements dng_area_task.
Definition at line 99 of file dng_filter_task.cpp.
|
pure virtual |
Implements filtering operation from one buffer to another.
Source and destination pixels are set up in member fields of this class. Ideally, no allocation should be done in this routine.
- Parameters
-
threadIndex The thread on which this routine is being called, between 0 and threadCount - 1 for the threadCount passed to Start method. srcBuffer Input area and source pixels. dstBuffer Output area and destination pixels.
Compute the source area needed for a given destination area.
Default implementation assumes destination area is equal to source area for all cases.
- Parameters
-
dstArea Area to for which pixels will be computed.
- Return values
-
The source area needed as input to calculate the requested destination area.
Definition at line 73 of file dng_filter_task.h.
Given a destination tile size, calculate input tile size.
Simlar to SrcArea, and should seldom be overridden.
- Parameters
-
dstTileSize The destination tile size that is targeted for output.
- Return values
-
The source tile size needed to compute a tile of the destination size.
Definition at line 83 of file dng_filter_task.h.
|
virtual |
Called prior to processing on specific threads.
Can be used to allocate per-thread memory buffers, etc.
- Parameters
-
threadCount Total number of threads that will be used for processing. Less than or equal to MaxThreads of dng_area_task. tileSize Size of source tiles which will be processed. (Not all tiles will be this size due to edge conditions.) allocator dng_memory_allocator to use for allocating temporary buffers, etc. sniffer Sniffer to test for user cancellation and to set up progress.
Reimplemented from dng_area_task.
Definition at line 56 of file dng_filter_task.cpp.
Member Data Documentation
|
protected |
Definition at line 55 of file dng_filter_task.h.
|
protected |
Definition at line 42 of file dng_filter_task.h.
|
protected |
Definition at line 50 of file dng_filter_task.h.
|
protected |
Definition at line 48 of file dng_filter_task.h.
|
protected |
Definition at line 49 of file dng_filter_task.h.
|
protected |
Definition at line 54 of file dng_filter_task.h.
Definition at line 40 of file dng_filter_task.h.
|
protected |
Definition at line 46 of file dng_filter_task.h.
|
protected |
Definition at line 44 of file dng_filter_task.h.
|
protected |
Definition at line 45 of file dng_filter_task.h.
|
protected |
Definition at line 52 of file dng_filter_task.h.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2019 The KDE developers.
Generated on Sun Dec 8 2019 04:09:29 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.