<divclass="line"><aname="l00655"></a><spanclass="lineno"> 655</span> <aclass="code"href="namespaceop.html#a5f092bd36c716a894cb035e1ead2aca3">error</a>(<spanclass="stringliteral">"The frame rate of the frames producer is unknown. Set `--write_video_fps` to your desired"</span></div>
<divclass="line"><aname="l00656"></a><spanclass="lineno"> 656</span> <spanclass="stringliteral">" FPS if you wanna record video (`--write_video`). E.g., if it is a folder of images, you"</span></div>
<divclass="line"><aname="l00657"></a><spanclass="lineno"> 657</span> <spanclass="stringliteral">" will have to know or guess the frame rate; if it is a webcam, you should use the OpenPose"</span></div>
<divclass="line"><aname="l00666"></a><spanclass="lineno"> 666</span> <aclass="code"href="namespaceop.html#a5f092bd36c716a894cb035e1ead2aca3">error</a>(<spanclass="stringliteral">"Video file can only be recorded inside `wrapper/wrapper.hpp` if the producer"</span></div>
<divclass="line"><aname="l00667"></a><spanclass="lineno"> 667</span> <spanclass="stringliteral">" is one of the default ones (e.g., video, webcam, ...)."</span>,</div>
<divclass="line"><aname="l00670"></a><spanclass="lineno"> 670</span> <aclass="code"href="namespaceop.html#a5f092bd36c716a894cb035e1ead2aca3">error</a>(<spanclass="stringliteral">"Video can only be recorded if outputSize is fixed (e.g., video, webcam, IP camera),"</span></div>
<divclass="line"><aname="l00671"></a><spanclass="lineno"> 671</span> <spanclass="stringliteral">" but not for a image directory."</span>, __LINE__, __FUNCTION__, __FILE__);</div>
<divclass="line"><aname="l00677"></a><spanclass="lineno"> 677</span> <spanclass="comment">// Write joint angles as *.bvh file on hard disk</span></div>
<divclass="line"><aname="l00688"></a><spanclass="lineno"> 688</span> <spanclass="comment">// Write heat maps as desired image format on hard disk</span></div>
<divclass="line"><aname="l00697"></a><spanclass="lineno"> 697</span> <spanclass="comment">// If this WGuiInfoAdder instance is placed before the WImageSaver or WVideoSaver, then the resulting</span></div>
<divclass="line"><aname="l00698"></a><spanclass="lineno"> 698</span> <spanclass="comment">// recorded frames will look exactly as the final displayed image by the GUI</span></div>
<divclass="line"><aname="l00673"></a><spanclass="lineno"> 673</span> <spanclass="comment">// Write joint angles as *.bvh file on hard disk</span></div>
<divclass="line"><aname="l00684"></a><spanclass="lineno"> 684</span> <spanclass="comment">// Write heat maps as desired image format on hard disk</span></div>
<divclass="line"><aname="l00693"></a><spanclass="lineno"> 693</span> <spanclass="comment">// If this WGuiInfoAdder instance is placed before the WImageSaver or WVideoSaver, then the resulting</span></div>
<divclass="line"><aname="l00694"></a><spanclass="lineno"> 694</span> <spanclass="comment">// recorded frames will look exactly as the final displayed image by the GUI</span></div>
<divclass="line"><aname="l00763"></a><spanclass="lineno"> 763</span> <spanclass="comment">// The less number of queues -> the less threads opened, and potentially the less lag</span></div>
<divclass="line"><aname="l00767"></a><spanclass="lineno"> 767</span> <spanclass="comment">// The less number of queues -> the less threads opened, and potentially the less lag</span></div>
<divclass="line"><aname="l00774"></a><spanclass="lineno"> 774</span> <spanclass="keyword">const</span><spanclass="keyword">auto</span> message = <spanclass="stringliteral">"You need to have 1 and only 1 producer selected. You can introduce your own"</span></div>
<divclass="line"><aname="l00775"></a><spanclass="lineno"> 775</span> <spanclass="stringliteral">" producer by using setWorker(WorkerType::Input, ...) or use the OpenPose"</span></div>
<divclass="line"><aname="l00776"></a><spanclass="lineno"> 776</span> <spanclass="stringliteral">" default producer by configuring it in the configure function) or use the"</span></div>
<divclass="line"><aname="l00788"></a><spanclass="lineno"> 788</span> <spanclass="comment">// Clean previous thread manager (avoid configure to crash the program if used more than once)</span></div>
<divclass="line"><aname="l00793"></a><spanclass="lineno"> 793</span> <spanclass="comment">// After producer</span></div>
<divclass="line"><aname="l00794"></a><spanclass="lineno"> 794</span> <spanclass="comment">// ID generator (before any multi-threading or any function that requires the ID)</span></div>
<divclass="line"><aname="l00807"></a><spanclass="lineno"> 807</span> <spanclass="comment">// If custom user Worker and uses its own thread</span></div>
<divclass="line"><aname="l00857"></a><spanclass="lineno"> 857</span> <aclass="code"href="namespaceop.html#a9912b2bfa3dbe427b4e72dd34c605df2">log</a>(<spanclass="stringliteral">"Multi-threading disabled, only 1 thread running. All GPUs have been disabled but the"</span></div>
<divclass="line"><aname="l00858"></a><spanclass="lineno"> 858</span> <spanclass="stringliteral">" first one, which is defined by gpuNumberStart (e.g., in the OpenPose demo, it is set"</span></div>
<divclass="line"><aname="l00859"></a><spanclass="lineno"> 859</span> <spanclass="stringliteral">" with the `--num_gpu_start` flag)."</span>, <aclass="code"href="namespaceop.html#adc43fb9031418e7f8112816a3b535d14a655d20c1ca69519ca647684edbb2db35">Priority::High</a>);</div>
<divclass="line"><aname="l00864"></a><spanclass="lineno"> 864</span> <spanclass="comment">// Assemble all frames from same time instant (3-D module)</span></div>
<divclass="line"><aname="l00896"></a><spanclass="lineno"> 896</span> <aclass="code"href="namespaceop.html#a9912b2bfa3dbe427b4e72dd34c605df2">log</a>(<spanclass="stringliteral">"Multi-threading disabled, only 1 thread running for 3-D triangulation."</span>,</div>
<divclass="line"><aname="l00945"></a><spanclass="lineno"> 945</span> <spanclass="comment">// If custom user Worker and uses its own thread</span></div>
<divclass="line"><aname="l00770"></a><spanclass="lineno"> 770</span> <spanclass="keyword">const</span><spanclass="keyword">auto</span> message = <spanclass="stringliteral">"You need to have 1 and only 1 producer selected. You can introduce your own"</span></div>
<divclass="line"><aname="l00771"></a><spanclass="lineno"> 771</span> <spanclass="stringliteral">" producer by using setWorker(WorkerType::Input, ...) or use the OpenPose"</span></div>
<divclass="line"><aname="l00772"></a><spanclass="lineno"> 772</span> <spanclass="stringliteral">" default producer by configuring it in the configure function) or use the"</span></div>
<divclass="line"><aname="l00784"></a><spanclass="lineno"> 784</span> <spanclass="comment">// Clean previous thread manager (avoid configure to crash the program if used more than once)</span></div>
<divclass="line"><aname="l00789"></a><spanclass="lineno"> 789</span> <spanclass="comment">// After producer</span></div>
<divclass="line"><aname="l00790"></a><spanclass="lineno"> 790</span> <spanclass="comment">// ID generator (before any multi-threading or any function that requires the ID)</span></div>
<divclass="line"><aname="l00803"></a><spanclass="lineno"> 803</span> <spanclass="comment">// If custom user Worker and uses its own thread</span></div>
<divclass="line"><aname="l00853"></a><spanclass="lineno"> 853</span> <aclass="code"href="namespaceop.html#a9912b2bfa3dbe427b4e72dd34c605df2">log</a>(<spanclass="stringliteral">"Multi-threading disabled, only 1 thread running. All GPUs have been disabled but the"</span></div>
<divclass="line"><aname="l00854"></a><spanclass="lineno"> 854</span> <spanclass="stringliteral">" first one, which is defined by gpuNumberStart (e.g., in the OpenPose demo, it is set"</span></div>
<divclass="line"><aname="l00855"></a><spanclass="lineno"> 855</span> <spanclass="stringliteral">" with the `--num_gpu_start` flag)."</span>, <aclass="code"href="namespaceop.html#adc43fb9031418e7f8112816a3b535d14a655d20c1ca69519ca647684edbb2db35">Priority::High</a>);</div>
<divclass="line"><aname="l00860"></a><spanclass="lineno"> 860</span> <spanclass="comment">// Assemble all frames from same time instant (3-D module)</span></div>
<divclass="line"><aname="l00892"></a><spanclass="lineno"> 892</span> <aclass="code"href="namespaceop.html#a9912b2bfa3dbe427b4e72dd34c605df2">log</a>(<spanclass="stringliteral">"Multi-threading disabled, only 1 thread running for 3-D triangulation."</span>,</div>
<divclass="line"><aname="l00941"></a><spanclass="lineno"> 941</span> <spanclass="comment">// If custom user Worker and uses its own thread</span></div>
<divclass="ttc"id="namespaceop_html_af65a4564afcad06b72468679f6bee52b"><divclass="ttname"><ahref="namespaceop.html#af65a4564afcad06b72468679f6bee52b">op::threadIdPP</a></div><divclass="ttdeci">OP_API void threadIdPP(unsigned long long &threadId, const bool multiThreadEnabled)</div></div>