|
Photosine 0.5
|
#include <AudioPluginImageProcessorJob.h>
Public Member Functions | |
| AudioPluginImageProcessorJob (cv::Mat matToProcess, juce::ValueTree sourceValueTree, std::function< void(ImageProcessorMat)> callback, int numChannels, Time::Timecode newFrameNumber, PluginPool::Reservation pooledPlugins) | |
| ~AudioPluginImageProcessorJob () | |
| JobStatus | runJob () |
Private Member Functions | |
| bool | areChildThreadsCompleted () |
| void | extractChannelsAndProcess () |
| cv::Mat | flattenChannelsToSingleFrame () |
| JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (AudioPluginImageProcessorJob) | |
Private Attributes | |
| int | width = 10 |
| int | height = 10 |
| Time::Timecode | frameNumber |
| int | channels |
| cv::Mat | imageToProcess |
| cv::Mat | frameMat |
| juce::ValueTree | pluginsValueTree |
| juce::OwnedArray< AudioPluginImageProcessorThread > | channelThreads |
| std::condition_variable | channelCompletionCV |
| std::mutex | channelCompletionMutex |
| std::function< void(ImageProcessorMat)> | matProcessorCallback |
| PluginPool::Reservation | pooledPluginsReservation |
A thread which separates an image into its component channels, processes each channel, and then combines the output into a single new image. The final image is passed to the callback function provided in the constructor.
| ImageProcessing::AudioPluginImageProcessorJob::AudioPluginImageProcessorJob | ( | cv::Mat | matToProcess, |
| juce::ValueTree | sourceValueTree, | ||
| std::function< void(ImageProcessorMat)> | callback, | ||
| int | numChannels, | ||
| Time::Timecode | newFrameNumber, | ||
| PluginPool::Reservation | pooledPlugins ) |
| ImageProcessing::AudioPluginImageProcessorJob::~AudioPluginImageProcessorJob | ( | ) |
|
private |
Returns true if child threads have completed processing.
|
private |
Extracts all image channels into separate mats, creates and runs a processing thread per channel.
|
private |
Flattens separated channels into a single mat.
|
private |
| ImageProcessing::AudioPluginImageProcessorJob::JobStatus ImageProcessing::AudioPluginImageProcessorJob::runJob | ( | ) |
Runs thread and passes completed image to callback function provided in constructor.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |