diff --git a/detection/api/include/MPFDetectionComponent.h b/detection/api/include/MPFDetectionComponent.h index 8bda7ab..bf13945 100644 --- a/detection/api/include/MPFDetectionComponent.h +++ b/detection/api/include/MPFDetectionComponent.h @@ -98,6 +98,46 @@ namespace MPF { namespace COMPONENT { }; + struct MPFAllVideoTracksJob : MPFJob { + const int start_frame; + const int stop_frame; + const bool has_feed_forward_tracks; + const std::vector feed_forward_tracks; + + MPFAllVideoTracksJob(std::string job_name, + std::string data_uri, + int start_frame, + int stop_frame, + Properties job_properties, + Properties media_properties) + : MPFJob(std::move(job_name), + std::move(data_uri), + std::move(job_properties), + std::move(media_properties)) + , start_frame(start_frame) + , stop_frame(stop_frame) + , has_feed_forward_tracks(false) { + } + + MPFAllVideoTracksJob(std::string job_name, + std::string data_uri, + int start_frame, + int stop_frame, + std::vector tracks, + Properties job_properties, + Properties media_properties) + : MPFJob(std::move(job_name), + std::move(data_uri), + std::move(job_properties), + std::move(media_properties)) + , start_frame(start_frame) + , stop_frame(stop_frame) + , has_feed_forward_tracks(true) + , feed_forward_tracks(std::move(tracks)) { + } + }; + + struct MPFImageJob : MPFJob { const bool has_feed_forward_location; const MPFImageLocation feed_forward_location;