<div dir="ltr">Hi everyone <br><br>I’m working on SDK for insta360 camera.<br>
<br>this is the repository for the sdk demo: <br><a href="https://github.com/Insta360Develop/CameraSDK-Cpp/blob/master/demo/main.cc">https://github.com/Insta360Develop/CameraSDK-Cpp/blob/master/demo/main.cc</a><br><div><br></div><div><p>
The provided sdk has a live stream mode that create and write the stream into a h.h264 file.<br>
This is the function responsible to write the data into a file:</p>
<p><code>void OnVideoData(const uint8_t* data, size_t size, int64_t timestamp, uint8_t streamType, int stream_index = 0) override {}</code></p>
<p>My question is how can I implement the onVideoData to decode the frames inside of the pointer <code>data</code> to display them like a "live" mode (after the decode I will display using openCV).<br><br></p><p>Thank you all!<br></p><p>Best Regards<br></p></div><br><div><br><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><b>Ricardo Sutana de Mello</b></div><div><b></b></div><div><b>Engenheiro Eletricista<br></b></div><div dir="ltr"><b></b><br><div><div>skype: <a href="mailto:ricksutana@hotmail.com" target="_blank">ricardosutana@outlook.com</a> (somente skype)<br></div><div><br></div></div></div></div></div></div></div></div></div></div>