×

INDI Library v2.0.6 is Released (02 Feb 2024)

Bi-monthly release with minor bug fixes and improvements

How to use streammanager?

  • Posts: 11
  • Thank you received: 0
Please,

where would I find some more detailed documentation, or some examples, or at least the source code of a Linux application to understand how to use streammanager in my INDI client?

All I found is this www.indilib.org/api/classStreamManager.html
but I didn't understand how to use it in my code?

The goal is to get the live image from the INDI camera and display it in the application window.

Thanks
4 years 5 months ago #44425

Please Log in or Create an account to join the conversation.

I think the easiest way to approach this is to look at the CCD Simulator code since it uses streaming. The API documentation could perhaps use a minimal example to show how it is used in drivers.
4 years 5 months ago #44428

Please Log in or Create an account to join the conversation.

  • Posts: 11
  • Thank you received: 0
Thanks for the reply. I was looking at CCD simulator code. Unfortunately, I did not find any example how to use streaming in INDI client.
4 years 5 months ago #44449

Please Log in or Create an account to join the conversation.

So both KStars and PHD2 support streaming, so you can look at them.

In KStars, you can take a look here: github.com/KDE/kstars/blob/master/kstars/indi/videowg.cpp

In newFrame, it receives a BLOB, and then depending on it displays the buffer either as mono or RGB (it determines that from looking at the size)
4 years 5 months ago #44459

Please Log in or Create an account to join the conversation.

  • Posts: 11
  • Thank you received: 0
Thank you for showing directions.
4 years 5 months ago #44489

Please Log in or Create an account to join the conversation.

Time to create page: 0.484 seconds