Improve the use of threads and sleep when not in use

This commit is contained in:
jfmcarreira committed 2021-09-07 02:00:30 +01:00
1 parent bf5235352b
commit ffe1bf688d
15 files changed
+164 -129

No files matched your search

+8 -6
View File
@@ -68,6 +68,10 @@ public:
static std::vector<CalypStandardResolution> stdResolutionSizes();
CalypStream();
CalypStream( CalypStream&& other ) noexcept = delete;
CalypStream& operator=( CalypStream&& other ) noexcept = delete;
CalypStream( const CalypStream& other ) = delete;
CalypStream& operator=( const CalypStream& other ) = delete;
~CalypStream();
ClpString getFormatName() const;
@@ -81,7 +85,6 @@ public:
bool bInput );
bool reload();
void close();
bool isNative() const;
ClpString getFileName() const;
@@ -97,14 +100,13 @@ public:
void loadAll();
CalypFrame* getCurrFrame( CalypFrame* );
CalypFrame* getCurrFrame();
// continuous read using smart ptrs
auto retrieveNextFrame() -> std::shared_ptr<CalypFrame>;
auto retrieveNextFrame() -> bool;
auto getCurrFrameAsset() -> std::shared_ptr<CalypFrame>;
// continuous read control
auto getNextFrame() -> CalypFrame&;
CalypFrame* getCurrFrame( CalypFrame* );
CalypFrame* getCurrFrame();
bool setNextFrame();
void readNextFrame();
void readNextFrameFillRGBBuffer();