|
Scroom 0.14-48-ga0fee447
|
#include <layeroperations.hh>


Public Member Functions | |
| OperationsCMYK32 () | |
| int | getBpp () override |
| Scroom::Utils::Stuff | cache (const ConstTile::Ptr &tile) override |
| void | reduce (Tile::Ptr target, ConstTile::Ptr source, int x, int y) override |
Public Member Functions inherited from PipetteCommonOperationsCMYK | |
| PipetteCommonOperationsCMYK (int bps_) | |
| PipetteLayerOperations::PipetteColor | sumPixelValues (Scroom::Utils::Rectangle< int > area, const ConstTile::Ptr &tile) override |
Public Member Functions inherited from Scroom::Utils::Base | |
| Base ()=default | |
| Base (const Base &)=delete | |
| Base (Base &&)=delete | |
| Base & | operator= (const Base &)=delete |
| Base & | operator= (Base &&)=delete |
| virtual | ~Base ()=default |
| template<typename R > | |
| std::shared_ptr< R > | shared_from_this () |
| template<typename R > | |
| std::shared_ptr< R const > | shared_from_this () const |
Public Member Functions inherited from CommonOperations | |
| void | initializeCairo (cairo_t *cr) override |
| void | drawState (cairo_t *cr, TileState s, Scroom::Utils::Rectangle< double > viewArea) override |
| Scroom::Utils::Stuff | cacheZoom (const ConstTile::Ptr &tile, int zoom, Scroom::Utils::Stuff &cache) override |
| void | draw (cairo_t *cr, const ConstTile::Ptr &tile, Scroom::Utils::Rectangle< double > tileArea, Scroom::Utils::Rectangle< double > viewArea, int zoom, Scroom::Utils::Stuff cache) override |
Static Public Member Functions | |
| static Ptr | create () |
Static Public Member Functions inherited from CommonOperations | |
| static void | drawPixelValue (cairo_t *cr, int x, int y, int size, int value) |
| static void | drawPixelValue (cairo_t *cr, int x, int y, int size, int value, Color const &bgColor) |
Additional Inherited Members | |
Public Types inherited from PipetteCommonOperationsCMYK | |
| using | Ptr = std::shared_ptr< PipetteCommonOperationsCMYK > |
Public Types inherited from PipetteLayerOperations | |
| using | Ptr = std::shared_ptr< PipetteLayerOperations > |
| using | PipetteColor = std::vector< std::pair< std::string, double > > |
Public Types inherited from LayerOperations | |
| using | Ptr = std::shared_ptr< LayerOperations > |
Protected Attributes inherited from PipetteCommonOperationsCMYK | |
| int | bps |
| OperationsCMYK32::OperationsCMYK32 | ( | ) |
Referenced by create().

|
overridevirtual |
Cache the given tile
Reimplemented from LayerOperations.

|
static |
Referenced by Scroom::TiledBitmap::CMYKBitmap().


|
overridevirtual |
Return the number of bits per pixel that the layer will use.
This number will be used to compute the amount of memory required to store one tile
Implements LayerOperations.
|
overridevirtual |
Reduce the source tile by a factor of 8
The target tile will contain data for 8*8 source tiles. Offsets x and y indicate which of those 64 source tiles is currently being processed
| target | Tile that will contain the reduced bitmap |
| source | Tile that is to be reduced |
| x | x-offset (0..7) of the source tile in the target tile |
| y | y-offset (0..7) of the source tile in the target tile |
target tile belongs to a different layer, and hence possibly has a different bpp than the current one, depending on the LayerSpec given to createTiledBitmap() Implements LayerOperations.