Write FITS file on separate thread

Authored by murveit on Oct 27 2019, 6:44 AM.

Description

Write FITS file on separate thread

Summary:
When capturing images, previously once the capture was complete, images were written
to disk, then read back, then displayed in the fits viewer (if enabled), and finally the
next image could be captured. This delayed the next capture by a few seconds.
With this change, the FITS data is displayed using (a copy of) the INDI blob
sent to indiccd, a memory buffer, and the FITS data is written to disk on a separate thread,
which does not block the next capture nor the display of the indi data.
This was only implemented for FITS data. This change also involved some refactoring
in the affected files.

Reviewers: mutlaqja

Reviewed By: mutlaqja

Subscribers: kde-edu

Tags: KDE Edu

Differential Revision: https://phabricator.kde.org/D24976

Details

Committed
mutlaqjaOct 27 2019, 7:35 AM
Reviewer
mutlaqja
Differential Revision
D24976: Write FITS file on separate thread
Parents
R321:104c0ee0398e: Make documentation building as a CMake option and disable it for snaps
Branches
Unknown
Tags
Unknown