MCPcopy Create free account
hub / github.com/OpenShot/libopenshot / processClip

Method processClip

src/ClipProcessingJobs.cpp:23–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21}
22
23void 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
39void ClipProcessingJobs::trackClip(Clip& clip, ProcessingController& controller){

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected