capture.h 23.5 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
/*  Ekos Capture tool
    Copyright (C) 2012 Jasem Mutlaq <mutlaqja@ikarustech.com>

    This application is free software; you can redistribute it and/or
    modify it under the terms of the GNU General Public
    License as published by the Free Software Foundation; either
    version 2 of the License, or (at your option) any later version.
 */

#ifndef CAPTURE_H
#define CAPTURE_H

#include <QTimer>
#include <QUrl>
#include <QtDBus/QtDBus>

#include "ui_capture.h"

19 20
#include "oal/filter.h"

21
#include "ekos/ekos.h"
22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60
#include "fitsviewer/fitscommon.h"
#include "indi/indistd.h"
#include "indi/indiccd.h"
#include "indi/indicap.h"
#include "indi/indidome.h"
#include "indi/indilightbox.h"
#include "indi/inditelescope.h"

class QProgressIndicator;
class QTableWidgetItem;
class KDirWatch;

/**
 *@namespace Ekos
 *@short Ekos is an advanced Astrophotography tool for Linux.
 * It is based on a modular extensible framework to perform common astrophotography tasks. This includes highly accurate GOTOs using astrometry solver, ability to measure and correct polar alignment errors ,
 * auto-focus & auto-guide capabilities, and capture of single or stack of images with filter wheel support.\n
 * Features:
 * - Control your telescope, CCD (& DSLRs), filter wheel, focuser, guider, adaptive optics unit, and any INDI-compatible auxiliary device from Ekos.
 * - Extremely accurate GOTOs using astrometry.net solver (both Online and Offline solvers supported).
 * - Load & Slew: Load a FITS image, slew to solved coordinates, and center the mount on the exact image coordinates in order to get the same desired frame.
 * - Measure & Correct Polar Alignment errors using astromety.net solver.
 * - Auto and manual focus modes using Half-Flux-Radius (HFR) method.
 * - Automated unattended meridian flip. Ekos performs post meridian flip alignment, calibration, and guiding to resume the capture session.
 * - Automatic focus between exposures when a user-configurable HFR limit is exceeded.
 * - Auto guiding with support for automatic dithering between exposures and support for Adaptive Optics devices in addition to traditional guiders.
 * - Powerful sequence queue for batch capture of images with optional prefixes, timestamps, filter wheel selection, and much more!
 * - Export and import sequence queue sets as Ekos Sequence Queue (.esq) files.
 * - Center the telescope anywhere in a captured FITS image or any FITS with World Coordinate System (WCS) header.
 * - Automatic flat field capture, just set the desired ADU and let Ekos does the rest!
 * - Automatic abort and resumption of exposure tasks if guiding errors exceed a user-configurable value.
 * - Support for dome slaving.
 * - Complete integration with KStars Observation Planner and SkyMap
 * - Integrate with all INDI native devices.
 * - Powerful scripting capabilities via \ref EkosDBusInterface "DBus."
 *
 * The primary class is EkosManager. It handles startup and shutdown of local and remote INDI devices, manages and orchesterates the various Ekos modules, and provides advanced DBus
 * interface to enable unattended scripting.
*@author Jasem Mutlaq
61
 *@version 1.5
62 63 64 65 66 67 68 69 70 71 72 73 74 75
 */
namespace Ekos
{

class SequenceJob;

/**
 *@class Capture
 *@short Captures single or sequence of images from a CCD.
 * The capture class support capturing single or multiple images from a CCD, it provides a powerful sequence queue with filter wheel selection. Any sequence queue can be saved as Ekos Sequence Queue (.esq).
 * All image capture operations are saved as Sequence Jobs that encapsulate all the different options in a capture process. The user may select in sequence autofocusing by setting a maximum HFR limit. When the limit
 * is exceeded, it automatically trigger autofocus operation. The capture process can also be linked with guide module. If guiding deviations exceed a certain threshold, the capture operation aborts until
 * the guiding deviation resume to acceptable levels and the capture operation is resumed.
 *@author Jasem Mutlaq
76
 *@version 1.3
77 78 79 80
 */
class Capture : public QWidget, public Ui::Capture
{

81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438
        Q_OBJECT
        Q_CLASSINFO("D-Bus Interface", "org.kde.kstars.Ekos.Capture")

    public:

        enum { CALIBRATE_NONE, CALIBRATE_START, CALIBRATE_DONE };
        typedef enum { MF_NONE, MF_INITIATED, MF_FLIPPING, MF_SLEWING, MF_ALIGNING, MF_GUIDING } MFStage;
        typedef enum { CAL_NONE, CAL_DUSTCAP_PARKING, CAL_DUSTCAP_PARKED, CAL_LIGHTBOX_ON, CAL_SLEWING, CAL_SLEWING_COMPLETE, CAL_MOUNT_PARKING, CAL_MOUNT_PARKED, CAL_DOME_PARKING, CAL_DOME_PARKED, CAL_PRECAPTURE_COMPLETE, CAL_CALIBRATION, CAL_CALIBRATION_COMPLETE, CAL_CAPTURING, CAL_DUSTCAP_UNPARKING, CAL_DUSTCAP_UNPARKED} CalibrationStage;
        typedef bool (Capture::*PauseFunctionPointer)();

        Capture();
        ~Capture();

        /** @defgroup CaptureDBusInterface Ekos DBus Interface - Capture Module
         * Ekos::Capture interface provides advanced scripting capabilities to capture image sequences.
        */

        /*@{*/

        /** DBUS interface function.
         * select the CCD device from the available CCD drivers.
         * @param device The CCD device name
         */
        Q_SCRIPTABLE bool setCCD(QString device);

        /** DBUS interface function.
         * select the filter device from the available filter drivers. The filter device can be the same as the CCD driver if the filter functionality was embedded within the driver.
         * @param device The filter device name
         */
        Q_SCRIPTABLE bool setFilter(QString device, int filterSlot);

        /** DBUS interface function.
         * Aborts any current jobs and remove all sequence queue jobs.
         */
        Q_SCRIPTABLE Q_NOREPLY void clearSequenceQueue();

        /** DBUS interface function.
         * Returns the overall sequence queue status. If there are no jobs pending, it returns "Invalid". If all jobs are idle, it returns "Idle". If all jobs are complete, it returns "Complete". If one or more jobs are aborted
         * it returns "Aborted" unless it was temporarily aborted due to guiding deviations, then it would return "Suspended". If one or more jobs have errors, it returns "Error". If any jobs is under progress, returns "Running".
         */
        Q_SCRIPTABLE QString getSequenceQueueStatus();

        /** DBUS interface function.
         * Loads the Ekos Sequence Queue file in the Sequence Queue. Jobs are appended to existing jobs.
         * @param fileURL full URL of the filename
         */
        Q_SCRIPTABLE bool loadSequenceQueue(const QString &fileURL);

        /** DBUS interface function.
         * Sets target name. The target name shall be appended to the root directory specified by the user.
         * e.g. If root directory is /home/jasem and target is M31, then root directory becomes /home/jasem/M31
         * @param name Name of desired target
         */
        Q_SCRIPTABLE Q_NOREPLY void setTargetName(const QString &name)
        {
            targetName = name;
        }

        /** DBUS interface function.
         * Sets Observer name. Observer name is sent to INDI CCD driver to include it in the FITS header
         * @param name Full name of observer
         */
        Q_SCRIPTABLE Q_NOREPLY void setObservrName(const QString &name)
        {
            observerName = name;
        }

        /** DBUS interface function.
         * Enables or disables the maximum guiding deviation and sets its value.
         * @param enable If true, enable the guiding deviation check, otherwise, disable it.
         * @param if enable is true, it sets the maximum guiding deviation in arcsecs. If the value is exceeded, the capture operation is aborted until the value falls below the value threshold.
         */
        Q_SCRIPTABLE Q_NOREPLY void setMaximumGuidingDeviaiton(bool enable, double value);

        /** DBUS interface function.
         * Enables or disables the in sequence focus and sets Half-Flux-Radius (HFR) limit.
         * @param enable If true, enable the in sequence auto focus check, otherwise, disable it.
         * @param if enable is true, it sets HFR in pixels. After each exposure, the HFR is re-measured and if it exceeds the specified value, an autofocus operation will be commanded.
         */
        Q_SCRIPTABLE Q_NOREPLY void setInSequenceFocus(bool enable, double HFR);

        /** DBUS interface function.
         * Enable or Disable meridian flip, and sets its activation hour.
         * @param enable If true, meridian flip will be command after user-configurable number of hours.
         */
        Q_SCRIPTABLE Q_NOREPLY void setMeridianFlip(bool enable);

        /** DBUS interface function.
         * Sets meridian flip trigger hour.
         * @param hours Number of hours after the meridian at which the mount is commanded to flip.
         */
        Q_SCRIPTABLE Q_NOREPLY void setMeridianFlipHour(double hours);

        /** DBUS interface function.
         * Does the CCD has a cooler control (On/Off) ?
         */
        Q_SCRIPTABLE bool hasCoolerControl();

        /** DBUS interface function.
         * Set the CCD cooler ON/OFF
         *
         */
        Q_SCRIPTABLE bool setCoolerControl(bool enable);

        /** DBUS interface function.
         * @return Returns the percentage of completed captures in all active jobs
         */
        Q_SCRIPTABLE double getProgressPercentage();

        /** DBUS interface function.
         * @return Returns the number of jobs in the sequence queue.
         */
        Q_SCRIPTABLE int getJobCount()
        {
            return jobs.count();
        }

        /** DBUS interface function.
         * @return Returns ID of current active job if any, or -1 if there are no active jobs.
         */
        Q_SCRIPTABLE int getActiveJobID();

        /** DBUS interface function.
         * @return Returns time left in seconds until active job is estimated to be complete.
         */
        Q_SCRIPTABLE int getActiveJobRemainingTime();

        /** DBUS interface function.
         * @return Returns overall time left in seconds until all jobs are estimated to be complete
         */
        Q_SCRIPTABLE int getOverallRemainingTime();

        /** DBUS interface function.
         * @param id job number. Job IDs start from 0 to N-1.
         * @return Returns the job state (Idle, In Progress, Error, Aborted, Complete)
         */
        Q_SCRIPTABLE QString        getJobState(int id);

        /** DBUS interface function.
         * @param id job number. Job IDs start from 0 to N-1.
         * @return Returns The number of images completed capture in the job.
         */
        Q_SCRIPTABLE int            getJobImageProgress(int id);

        /** DBUS interface function.
         * @param id job number. Job IDs start from 0 to N-1.
         * @return Returns the total number of images to capture in the job.
         */
        Q_SCRIPTABLE int            getJobImageCount(int id);

        /** DBUS interface function.
         * @param id job number. Job IDs start from 0 to N-1.
         * @return Returns the number of seconds left in an exposure operation.
         */
        Q_SCRIPTABLE double         getJobExposureProgress(int id);

        /** DBUS interface function.
         * @param id job number. Job IDs start from 0 to N-1.
         * @return Returns the total requested exposure duration in the job.
         */
        Q_SCRIPTABLE double         getJobExposureDuration(int id);

        /** DBUS interface function.
         * Clear in-sequence focus settings. It sets the autofocus HFR to zero so that next autofocus value is remembered for the in-sequence focusing.
         */
        Q_SCRIPTABLE Q_NOREPLY  void clearAutoFocusHFR();


        /** DBUS interface function.
         * Jobs will NOT be checked for progress against the file system and will be always assumed as new jobs.
         */
        Q_SCRIPTABLE Q_NOREPLY  void ignoreSequenceHistory();

        /** @}*/

        void addCCD(ISD::GDInterface * newCCD);
        void addFilter(ISD::GDInterface * newFilter);
        void setDome(ISD::GDInterface * device)
        {
            dome = dynamic_cast<ISD::Dome *>(device);
        }
        void setDustCap(ISD::GDInterface * device)
        {
            dustCap = dynamic_cast<ISD::DustCap *>(device);
        }
        void setLightBox(ISD::GDInterface * device)
        {
            lightBox = dynamic_cast<ISD::LightBox *>(device);
        }
        void addGuideHead(ISD::GDInterface * newCCD);
        void syncFrameType(ISD::GDInterface * ccd);
        void setTelescope(ISD::GDInterface * newTelescope);
        void syncTelescopeInfo();
        void syncFilterInfo();

        void clearLog();
        QString getLogText()
        {
            return logText.join("\n");
        }

        /* Capture */
        void updateSequencePrefix( const QString &newPrefix, const QString &dir);

    public slots:

        /** \addtogroup CaptureDBusInterface
         *  @{
         */

        /* Capture */
        /** DBUS interface function.
         * Starts the sequence queue capture procedure sequentially by starting all jobs that are either Idle or Aborted in order.
         */
        Q_SCRIPTABLE Q_NOREPLY void start();

        /** DBUS interface function.
         * Stop all jobs and set current job status to aborted if abort is set to true, otherwise status is idle until
         * sequence is resumed or restarted.
         * @param abort abort jobs if in progress
         */
        Q_SCRIPTABLE Q_NOREPLY void stop(bool abort=false);

        /** DBUS interface function.
         * Aborts all jobs. It simply calls stop(true)
         */
        Q_SCRIPTABLE Q_NOREPLY void abort()
        {
            stop(true);
        }

        /** @}*/

        /**
         * @brief captureOne Capture one preview image
         */
        void captureOne();

        /**
         * @brief captureImage Initiates image capture in the active job.
         */
        void captureImage();

        /**
         * @brief newFITS process new FITS data received from camera. Update status of active job and overall sequence.
         * @param bp pointer to blob contianing FITS data
         */
        void newFITS(IBLOB * bp);

        /**
         * @brief checkCCD Refreshes the CCD information in the capture module.
         * @param CCDNum The CCD index in the CCD combo box to select as the active CCD.
         */
        void checkCCD(int CCDNum=-1);

        /**
         * @brief checkFilter Refreshes the filter wheel information in the capture module.
         * @param filterNum The filter wheel index in the filter device combo box to set as the active filter.
         */
        void checkFilter(int filterNum=-1);

        /**
         * @brief processCCDNumber Process number properties arriving from CCD. Currently, only CCD and Guider frames are processed.
         * @param nvp pointer to number property.
         */
        void processCCDNumber(INumberVectorProperty * nvp);

        /**
         * @brief processTelescopeNumber Process number properties arriving from telescope for meridian flip purposes.
         * @param nvp pointer to number property.
         */
        void processTelescopeNumber(INumberVectorProperty * nvp);

        /**
         * @brief addJob Add a new job to the sequence queue given the settings in the GUI.
         * @param preview True if the job is a preview job, otherwise, it is added as a batch job.
         */
        void addJob(bool preview=false);

        /**
         * @brief removeJob Remove a job from the currently selected row. If no row is selected, it remove the last job in the queue.
         */
        void removeJob();

        /**
         * @brief moveJobUp Move the job in the sequence queue one place up.
         */
        void moveJobUp();

        /**
         * @brief moveJobDown Move the job in the sequence queue one place down.
         */
        void moveJobDown();

        /**
         * @brief setGuideDeviation Set the guiding deviaiton as measured by the guiding module. Abort capture if deviation exceeds user value. Resume capture if capture was aborted and guiding deviations are below user value.
         * @param delta_ra Deviation in RA in arcsecs from the selected guide star.
         * @param delta_dec Deviation in DEC in arcsecs from the selected guide star.
         */
        void setGuideDeviation(double delta_ra, double delta_dec);

        /**
         * @brief resumeCapture Resume capture after dither and/or focusing processes are complete.
         */
        bool resumeCapture();

        /**
         * @brief updateCCDTemperature Update CCD temperature in capture module.
         * @param value Temperature in celcius.
         */
        void updateCCDTemperature(double value);

        /**
         * @brief setTemperature Set CCD temperature from the user GUI settings.
         */
        void setTemperature();

        /**
         * @brief prepareFilterTemperature Check if we need to update filter position or CCD temperature before starting capture process
         */
        void prepareFilterTemperature();

        // Pause Sequence Queue
        void pause();

        // Logs
        void appendLogText(const QString &);

        // Auto Focus
        void setFocusStatus(Ekos::FocusState state);
        void setHFR(double newHFR)
        {
            focusHFR = newHFR;
        }

        // Guide
        void setGuideStatus(Ekos::GuideState state);
        // Align
        void setAlignStatus(Ekos::AlignState state);
        // Update Mount module status
        void setMountStatus(ISD::Telescope::TelescopeStatus newState);

    private slots:

        /**
         * @brief setDirty Set dirty bit to indicate sequence queue file was modified and needs saving.
         */
        void setDirty();

        void toggleSequence();

        void checkFrameType(int index);
        void resetFrame();
        void setExposureProgress(ISD::CCDChip * tChip, double value, IPState state);
        void checkSeqBoundary(const QString &path);
        void saveFITSDirectory();
        void setDefaultCCD(QString ccd);
        void setNewRemoteFile(QString file);
439
        void setGuideChip(ISD::CCDChip * chip);
440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489

        // Sequence Queue
        void loadSequenceQueue();
        void saveSequenceQueue();
        void saveSequenceQueueAs();

        // Jobs
        void resetJobs();
        void editJob(QModelIndex i);
        void resetJobEdit();
        void executeJob();

        // Meridian Flip
        void checkMeridianFlipTimeout();
        //void checkAlignmentSlewComplete();

        // AutoGuide
        void checkGuideDeviationTimeout();

        // Auto Focus
        //void updateAutofocusStatus(bool status, double HFR);
        void startPostFilterAutoFocus();

        // Flat field
        void openCalibrationDialog();
        IPState processPreCaptureCalibrationStage();
        bool processPostCaptureCalibrationStage();
        void updatePreCaptureCalibrationStatus();

        // Send image info
        void sendNewImage(QImage * image, ISD::CCDChip * myChip);

        // Capture
        bool setCaptureComplete();

        // post capture script
        void postScriptFinished(int exitCode);

        // Filter focus offset
        void showFilterOffsetDialog();
        void loadFilterOffsets();

        // Live Video Preview
        void toggleVideoStream(bool enable);
        void setVideoStreamEnabled(bool enabled);

        // Observer
        void showObserverDialog();

    signals:
490
        void newLog();
491
        void checkFocus(double);
Jasem Mutlaq's avatar
Jasem Mutlaq committed
492 493
        void suspendGuiding();
        void resumeGuiding();
494 495 496
        void meridianFlipStarted();
        void meridianFlipCompleted();
        void newStatus(Ekos::CaptureState status);
497 498
        void newImage(QImage * image, Ekos::SequenceJob * job);
        void newExposureProgress(Ekos::SequenceJob * job);
499
        void newFocusOffset(int16_t offset);
500

501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608
    private:

        void setBusy(bool enable);
        bool resumeSequence();
        bool startNextExposure();
        // reset = 0 --> Do not reset
        // reset = 1 --> Full reset
        // reset = 2 --> Only update limits if needed
        void updateFrameProperties(int reset=0);
        void prepareJob(SequenceJob * job);
        void syncGUIToJob(SequenceJob * job);
        bool processJobInfo(XMLEle * root);
        void processJobCompletion();
        bool saveSequenceQueue(const QString &path);
        void constructPrefix(QString &imagePrefix);
        double setCurrentADU(double value);
        void llsq (QVector<double> x, QVector<double> y, double &a, double &b);

        /* Meridian Flip */
        bool checkMeridianFlip();
        void checkGuidingAfterFlip();
        double getCurrentHA();

        // Remaining Time in seconds
        int getJobRemainingTime(SequenceJob * job);

        void resetFrameToZero();

        /* Capture */
        double	seqExpose;
        int	seqTotalCount;
        int	seqCurrentCount;
        int	seqDelay;
        int     retries;
        QTimer * seqTimer;
        QString		seqPrefix;
        int			nextSequenceID;
        int         seqFileCount;
        bool        isBusy;

        //int calibrationState;
        bool useGuideHead;

        QString targetName;
        QString observerName;

        SequenceJob * activeJob;

        QList<ISD::CCD *> CCDs;

        ISD::CCDChip * targetChip;
        ISD::CCDChip * guideChip;

        // They're generic GDInterface because they could be either ISD::CCD or ISD::Filter
        QList<ISD::GDInterface *> Filters;

        QList<SequenceJob *> jobs;

        ISD::Telescope * currentTelescope;
        ISD::CCD * currentCCD;
        ISD::GDInterface * currentFilter;
        ISD::DustCap * dustCap;
        ISD::LightBox * lightBox;
        ISD::Dome * dome;

        ITextVectorProperty * filterName;
        INumberVectorProperty * filterSlot;

        QStringList logText;
        QUrl sequenceURL;
        bool mDirty;
        bool jobUnderEdit;
        int currentFilterPosition;
        QProgressIndicator * pi;

        // Guide Deviation
        bool deviationDetected;
        bool spikeDetected;
        QTimer guideDeviationTimer;

        // Autofocus
        bool isAutoFocus;
        bool autoFocusStatus;
        bool firstAutoFocus;
        double focusHFR;                    // HFR value as received from the Ekos focus module
        double fileHFR;                     // HFR value as loaded from the sequence file

        //Meridan flip
        double initialHA;
        double initialRA;
        bool resumeAlignmentAfterFlip;
        bool resumeGuidingAfterFlip;
        MFStage meridianFlipStage;

        // Flat field automation
        QVector<double> ExpRaw, ADURaw;
        double targetADU, targetADUTolerance;
        SkyPoint wallCoord;
        bool preMountPark, preDomePark;
        FlatFieldDuration flatFieldDuration;
        FlatFieldSource   flatFieldSource;
        CalibrationStage calibrationStage;
        bool dustCapLightEnabled, lightBoxLightEnabled;

        QUrl dirPath;

        // Misc
        bool ignoreJobProgress;
609
        bool suspendGuideOnDownload=false;
610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638

        // State
        CaptureState state;
        FocusState focusState;
        GuideState guideState;
        AlignState alignState;

        PauseFunctionPointer pauseFunction;

        // CCD Chip frame settings
        QMap<ISD::CCDChip *, QVariantMap> frameSettings;

        // Post capture script
        QProcess postCaptureScript;

        // How many images to capture before dithering operation is executed?
        uint8_t ditherCounter;

        // Map of filter focus offsets
        struct FocusOffset
        {
            QString filter;
            int16_t offset;
        };

        QList<FocusOffset *> filterFocusOffsets;
        int16_t lastFilterOffset=0;

        QList<OAL::Filter *> m_filterList;
639 640 641 642 643
};

}

#endif  // CAPTURE_H