Skip to content

Class mediapipe::CalculatorContextManager

ClassList > mediapipe > CalculatorContextManager

Public Functions

Type Name
CalculatorContextManager ()
void CleanupAfterRun ()
bool ContextHasInputTimestamp (const CalculatorContext & calculator_context) const
CalculatorContext * GetDefaultCalculatorContext () const
CalculatorContext * GetFrontCalculatorContext (Timestamp * context_input_timestamp)
bool HasActiveContexts ()
bool HasDefaultCalculatorContext () const
void Initialize (CalculatorState * calculator_state, std::shared_ptr< tool::TagMap > input_tag_map, std::shared_ptr< tool::TagMap > output_tag_map, bool calculator_run_in_parallel)
int NumberOfContextTimestamps (const CalculatorContext & calculator_context) const
void PopInputTimestampFromContext (CalculatorContext * calculator_context)
CalculatorContext * PrepareCalculatorContext (Timestamp input_timestamp)
absl::Status PrepareForRun (std::function< absl::Status(CalculatorContext *)> setup_shards_callback)
void PushInputTimestampToContext (CalculatorContext * calculator_context, Timestamp input_timestamp)
void RecycleCalculatorContext ()
void SetGraphStatusInContext (CalculatorContext * calculator_context, const absl::Status & status)

Public Functions Documentation

function CalculatorContextManager

inline mediapipe::CalculatorContextManager::CalculatorContextManager () 

function CleanupAfterRun

void mediapipe::CalculatorContextManager::CleanupAfterRun () 

function ContextHasInputTimestamp

inline bool mediapipe::CalculatorContextManager::ContextHasInputTimestamp (
    const CalculatorContext & calculator_context
) const

function GetDefaultCalculatorContext

CalculatorContext * mediapipe::CalculatorContextManager::GetDefaultCalculatorContext () const

function GetFrontCalculatorContext

CalculatorContext * mediapipe::CalculatorContextManager::GetFrontCalculatorContext (
    Timestamp * context_input_timestamp
) 

function HasActiveContexts

bool mediapipe::CalculatorContextManager::HasActiveContexts () 

function HasDefaultCalculatorContext

inline bool mediapipe::CalculatorContextManager::HasDefaultCalculatorContext () const

function Initialize

void mediapipe::CalculatorContextManager::Initialize (
    CalculatorState * calculator_state,
    std::shared_ptr< tool::TagMap > input_tag_map,
    std::shared_ptr< tool::TagMap > output_tag_map,
    bool calculator_run_in_parallel
) 

function NumberOfContextTimestamps

inline int mediapipe::CalculatorContextManager::NumberOfContextTimestamps (
    const CalculatorContext & calculator_context
) const

function PopInputTimestampFromContext

inline void mediapipe::CalculatorContextManager::PopInputTimestampFromContext (
    CalculatorContext * calculator_context
) 

function PrepareCalculatorContext

CalculatorContext * mediapipe::CalculatorContextManager::PrepareCalculatorContext (
    Timestamp input_timestamp
) 

function PrepareForRun

absl::Status mediapipe::CalculatorContextManager::PrepareForRun (
    std::function< absl::Status(CalculatorContext *)> setup_shards_callback
) 

function PushInputTimestampToContext

inline void mediapipe::CalculatorContextManager::PushInputTimestampToContext (
    CalculatorContext * calculator_context,
    Timestamp input_timestamp
) 

function RecycleCalculatorContext

void mediapipe::CalculatorContextManager::RecycleCalculatorContext () 

function SetGraphStatusInContext

inline void mediapipe::CalculatorContextManager::SetGraphStatusInContext (
    CalculatorContext * calculator_context,
    const absl::Status & status
) 


The documentation for this class was generated from the following file /home/friedel/devel/ILLIXR-plugins/hand_tracking/mediapipe/framework/calculator_context_manager.h