Rise
The Vieneo Province
Loading...
Searching...
No Matches
GifAnimationWorker Class Reference

#include <GifAnimationWorker.h>

Collaboration diagram for GifAnimationWorker:
[legend]

Classes

struct  Budget
struct  Result
struct  State
struct  Session

Public Member Functions

 GifAnimationWorker ()=default
 ~GifAnimationWorker ()
 GifAnimationWorker (const GifAnimationWorker &)=delete
GifAnimationWorker & operator= (const GifAnimationWorker &)=delete
std::shared_ptr< State > Open (const void *bytes, size_t size)
void Request (const std::shared_ptr< State > &state, size_t frame)
void Cancel (const std::shared_ptr< State > &state)

Private Member Functions

void Wake ()
void Run ()

Static Private Member Functions

static void Decode (Session &session, size_t frame)
static HRESULT Initialize (Session &session)

Private Attributes

std::shared_ptr< Budget > budget = std::make_shared<Budget>()
std::mutex gate
std::condition_variable changed
bool wake = false
bool stopping = false
std::vector< std::shared_ptr< State > > incoming
std::thread thread

Detailed Description

Definition at line 11 of file GifAnimationWorker.h.

Constructor & Destructor Documentation

◆ GifAnimationWorker() [1/2]

GifAnimationWorker::GifAnimationWorker ( )
default
Here is the caller graph for this function:

◆ ~GifAnimationWorker()

GifAnimationWorker::~GifAnimationWorker ( )
inline

Definition at line 57 of file GifAnimationWorker.h.

◆ GifAnimationWorker() [2/2]

GifAnimationWorker::GifAnimationWorker ( const GifAnimationWorker & )
delete
Here is the call graph for this function:

Member Function Documentation

◆ Cancel()

void GifAnimationWorker::Cancel ( const std::shared_ptr< State > & state)
inline

Definition at line 86 of file GifAnimationWorker.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Decode()

void GifAnimationWorker::Decode ( Session & session,
size_t frame )
inlinestaticprivate

Definition at line 111 of file GifAnimationWorker.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Initialize()

HRESULT GifAnimationWorker::Initialize ( Session & session)
inlinestaticprivate

Definition at line 134 of file GifAnimationWorker.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Open()

std::shared_ptr< State > GifAnimationWorker::Open ( const void * bytes,
size_t size )
inline

Definition at line 66 of file GifAnimationWorker.h.

Here is the call graph for this function:

◆ operator=()

GifAnimationWorker & GifAnimationWorker::operator= ( const GifAnimationWorker & )
delete
Here is the call graph for this function:

◆ Request()

void GifAnimationWorker::Request ( const std::shared_ptr< State > & state,
size_t frame )
inline

Definition at line 80 of file GifAnimationWorker.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Run()

void GifAnimationWorker::Run ( )
inlineprivate

Definition at line 154 of file GifAnimationWorker.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Wake()

void GifAnimationWorker::Wake ( )
inlineprivate

Definition at line 106 of file GifAnimationWorker.h.

Here is the caller graph for this function:

Member Data Documentation

◆ budget

std::shared_ptr<Budget> GifAnimationWorker::budget = std::make_shared<Budget>()
private

Definition at line 99 of file GifAnimationWorker.h.

◆ changed

std::condition_variable GifAnimationWorker::changed
private

Definition at line 101 of file GifAnimationWorker.h.

◆ gate

std::mutex GifAnimationWorker::gate
private

Definition at line 100 of file GifAnimationWorker.h.

◆ incoming

std::vector<std::shared_ptr<State> > GifAnimationWorker::incoming
private

Definition at line 103 of file GifAnimationWorker.h.

◆ stopping

bool GifAnimationWorker::stopping = false
private

Definition at line 102 of file GifAnimationWorker.h.

◆ thread

std::thread GifAnimationWorker::thread
private

Definition at line 104 of file GifAnimationWorker.h.

◆ wake

bool GifAnimationWorker::wake = false
private

Definition at line 102 of file GifAnimationWorker.h.


The documentation for this class was generated from the following file: