Beatmup
|
#include <sepia.h>
Protected Member Functions | |
virtual void | apply (int x, int y, msize nPix, TaskThread &thread) |
Applies filtering to given pixel data. More... | |
virtual std::string | getGlslSourceCode () const |
Provides GLSL source code of the filter. More... | |
Protected Member Functions inherited from Beatmup::Filters::PixelwiseFilter | |
virtual std::string | getGlslDeclarations () const |
Provides GLSL declarations used in the GLSL code. More... | |
virtual void | setup (bool useGpu) |
A callback run every time before the filter is applied to the image. More... | |
virtual bool | process (TaskThread &thread) final |
Executes the task on CPU within a given thread. More... | |
virtual bool | processOnGPU (GraphicPipeline &gpu, TaskThread &thread) final |
Executes the task on GPU. More... | |
virtual void | beforeProcessing (ThreadIndex threadCount, ProcessingTarget target, GraphicPipeline *gpu) |
Instruction called before the task is executed. More... | |
virtual void | afterProcessing (ThreadIndex threadCount, GraphicPipeline *gpu, bool aborted) |
Instruction called after the task is executed. More... | |
virtual TaskDeviceRequirement | getUsedDevices () const final |
Communicates devices (CPU and/or GPU) the task is run on. More... | |
PixelwiseFilter () | |
Additional Inherited Members | |
Public Types inherited from Beatmup::AbstractTask | |
enum class | TaskDeviceRequirement { CPU_ONLY , GPU_OR_CPU , GPU_ONLY } |
Specifies which device (CPU and/or GPU) is used to run the task. More... | |
Public Member Functions inherited from Beatmup::Filters::PixelwiseFilter | |
virtual | ~PixelwiseFilter () |
virtual void | setInput (AbstractBitmap *input) |
virtual void | setOutput (AbstractBitmap *output) |
AbstractBitmap * | getInput () |
AbstractBitmap * | getOutput () |
ThreadIndex | getMaxThreads () const |
Gives the upper limint on the number of threads the task may be performed by. More... | |
Public Member Functions inherited from Beatmup::Object | |
virtual | ~Object () |
Static Public Member Functions inherited from Beatmup::AbstractTask | |
static ThreadIndex | validThreadCount (int number) |
Valid thread count from a given integer value. More... | |
Protected Attributes inherited from Beatmup::Filters::PixelwiseFilter | |
AbstractBitmap * | inputBitmap |
AbstractBitmap * | outputBitmap |
ImageShader * | shader |
Static Protected Attributes inherited from Beatmup::Filters::PixelwiseFilter | |
static const std::string | GLSL_RGBA_INPUT |
|
protectedvirtual |
Applies filtering to given pixel data.
x | Horizontal position of the first pixel in image |
y | Vertical position of the first pixel in image |
nPix | Number of pixels to process |
thread | Calling thread descriptor |
Implements Beatmup::Filters::PixelwiseFilter.
Definition at line 56 of file sepia.cpp.
|
protectedvirtual |
Provides GLSL source code of the filter.
Implements Beatmup::Filters::PixelwiseFilter.
Definition at line 61 of file sepia.cpp.