20 #include "../bitmap/abstract_bitmap.h"
21 #include "../parallelism.h"
A very basic class for any image.
Task: an operation that can be executed by multiple threads in parallel.
TaskDeviceRequirement
Specifies which device (CPU and/or GPU) is used to run the task.
AbstractTask drawing amplitude graph of a given Signal in a bitmap.
std::vector< int > values
virtual ThreadIndex getMaxThreads() const
Gives the upper limint on the number of threads the task may be performed by.
IntRectangle signalWindow
struct Beatmup::Audio::SignalPlot::@0 palette
AbstractBitmap * getBitmap() const
void setSignal(Signal *)
Sets the input signal to plot.
void getPlot(TaskThread &thread, std::vector< int > &data, int &left, int &right)
Signal * getSignal() const
void setChannels(int channels)
Specifies which channels to plot.
void setPlotArea(IntRectangle)
Specifies a rectangular area in pixels in the output bitmap where the plot will be drawn.
void setPalette(color4i bgColor, color4i color1, color4i color2)
Specifies plot colors.
virtual void beforeProcessing(ThreadIndex, ProcessingTarget target, GraphicPipeline *)
Instruction called before the task is executed.
void setWindow(IntRectangle window, float scale)
Specifies a time range (X coordinate) and a magnitude range (Y coordinate scaled by scale) that will ...
virtual void afterProcessing(ThreadIndex, GraphicPipeline *, bool)
Instruction called after the task is executed.
virtual TaskDeviceRequirement getUsedDevices() const
Communicates devices (CPU and/or GPU) the task is run on.
virtual bool process(TaskThread &thread)
Executes the task on CPU within a given thread.
void setBitmap(AbstractBitmap *)
Sets the output bitmap.
Makes sure the bitmap content is accessible within an image processing task.
Internal low-level GPU control API.
unsigned char ThreadIndex
number of threads / thread index
jlong jlong jint jint jint jint jint left