|
Grok 20.3.2
|
abstract class to graph and execute T1 tasks for whole tile More...
#include <SchedulerStandard.h>
Public Member Functions | |
| SchedulerStandard (uint16_t numComps) | |
| Constructs a SchedulerStandard. | |
| ~SchedulerStandard () override | |
| Destroys a SchedulerStandard. | |
| void | release (void) override |
| Releases flow components. | |
| ImageComponentFlow * | getImageComponentFlow (uint16_t compno) |
| Gets ImageComponentFlow for component. | |
| Public Member Functions inherited from grk::CodecScheduler | |
| CodecScheduler (uint16_t numComps) | |
| Contructs a CodecScheduler. | |
| virtual | ~CodecScheduler () |
| Destroys a CodecScheduler. | |
| virtual bool | scheduleT1 (ITileProcessor *proc)=0 |
| Schedules all T1 tasks for a ITileProcessor. | |
| void | run (void) |
| Runs tf::Executor. | |
| bool | wait (void) |
| Waits for tf::Executor to complete. | |
| Public Member Functions inherited from FlowComponent | |
| void | addTo (tf::Taskflow &composition) |
| Composes this FlowComponent's tf::Taskflow with another tf::Taskflow. | |
| void | precede (FlowComponent &successor) |
| Schedule this FlowComponent before another FlowComponent. | |
| void | precede (tf::Task &successor) |
| Schedule this Taskflow before another FlowComponent. | |
| tf::Task & | getCompositionTask (void) |
| void | conditional_precede (FlowComponent *root, FlowComponent *successor, std::function< int()> condition_lambda) |
| Conditionally schedule successor based on condition_lambda. | |
| FlowComponent * | name (const std::string &name) |
| Gets name of composition task. | |
| tf::Task & | nextTask () |
| Gets next task placeholder for componentFlow_. | |
Protected Member Functions | |
| void | graph (uint16_t compno) |
| Calculates task graph for component. | |
| Protected Member Functions inherited from grk::CodecScheduler | |
| void | releaseCoders (void) |
Protected Attributes | |
| std::vector< ImageComponentFlow * > | imageComponentFlow_ |
| store image component flows | |
| Protected Attributes inherited from grk::CodecScheduler | |
| std::atomic_bool | success_ |
| atomic tracking of compress/decompress success | |
| uint16_t | numcomps_ |
| number of components | |
| std::vector< t1::ICoder * > | coders_ |
| pool of ICoder | |
| tf::Future< void > | runFuture_ |
| tf::Future<void> resulting from running scheduler | |
abstract class to graph and execute T1 tasks for whole tile
Task scheduling will be performed by derived classes
|
explicit |
Constructs a SchedulerStandard.
| numComps | number of components |
References grk::CodecScheduler::CodecScheduler(), imageComponentFlow_, and grk::CodecScheduler::numcomps_.
Referenced by grk::CompressScheduler::CompressScheduler(), and grk::DecompressScheduler::DecompressScheduler().
|
override |
Destroys a SchedulerStandard.
References release().
| ImageComponentFlow * grk::SchedulerStandard::getImageComponentFlow | ( | uint16_t | compno | ) |
Gets ImageComponentFlow for component.
compno component number
References imageComponentFlow_, and grk::CodecScheduler::numcomps_.
Referenced by grk::DecompressScheduler::scheduleT1().
|
protected |
Calculates task graph for component.
| compno | component number |
References imageComponentFlow_, and grk::CodecScheduler::numcomps_.
Referenced by grk::DecompressScheduler::scheduleT1().
|
overridevirtual |
Releases flow components.
Implements grk::CodecScheduler.
References imageComponentFlow_, and grk::CodecScheduler::numcomps_.
Referenced by grk::DecompressScheduler::release(), and ~SchedulerStandard().
|
protected |
store image component flows
Referenced by getImageComponentFlow(), graph(), release(), SchedulerStandard(), and grk::DecompressScheduler::scheduleT1().