| 21 | } |
| 22 | |
| 23 | void ClipProcessingJobs::processClip(Clip& clip, std::string json){ |
| 24 | processInfoJson = json; |
| 25 | |
| 26 | // Process clip and save processed data |
| 27 | if(processingType == "Stabilizer"){ |
| 28 | t = std::thread(&ClipProcessingJobs::stabilizeClip, this, std::ref(clip), std::ref(this->processingController)); |
| 29 | } |
| 30 | if(processingType == "Tracker"){ |
| 31 | t = std::thread(&ClipProcessingJobs::trackClip, this, std::ref(clip), std::ref(this->processingController)); |
| 32 | } |
| 33 | if(processingType == "ObjectDetection"){ |
| 34 | t = std::thread(&ClipProcessingJobs::detectObjectsClip, this, std::ref(clip), std::ref(this->processingController)); |
| 35 | } |
| 36 | } |
| 37 | |
| 38 | // Apply object tracking to clip |
| 39 | void ClipProcessingJobs::trackClip(Clip& clip, ProcessingController& controller){ |
nothing calls this directly
no outgoing calls
no test coverage detected