Monopoly — Portage moderne 0.1.0
Portage moderne C/C++23 du Monopoly de 1999
Loading...
Searching...
No Matches
monopoly::video::Runtime Class Referencefinal

#include <VideoRuntime.hpp>

Public Member Functions

std::expected< void, std::string > open (std::span< const std::uint8_t > aviBytes, bool loopAtEnd=false)
 
std::expected< void, std::string > open (AviMetadata metadata, bool loopAtEnd=false)
 
void stop () noexcept
 
std::expected< Status, std::string > feedToFrame (std::int32_t desiredFrame)
 
std::expected< std::int32_t, std::string > frameAtElapsed (std::uint64_t elapsedMicroseconds) const
 
std::expected< void, std::string > cutToFrame (std::int32_t frame)
 
std::expected< void, std::string > setAlternative (std::int32_t decisionFrame, std::int32_t jumpToFrame)
 
bool changeAlternative (std::int32_t decisionFrame, bool takeJump) noexcept
 
void forgetAlternatives () noexcept
 
std::optional< JumpEvent > takeJumpEvent () noexcept
 
const Status & status () const noexcept
 
const AviMetadata & metadata () const noexcept
 
bool open () const noexcept
 

Detailed Description

Definition at line 42 of file VideoRuntime.hpp.

Member Function Documentation

◆ changeAlternative()

bool monopoly::video::Runtime::changeAlternative ( std::int32_t  decisionFrame,
bool  takeJump 
)
noexcept

Definition at line 268 of file VideoRuntime.cpp.

◆ cutToFrame()

std::expected< void, std::string > monopoly::video::Runtime::cutToFrame ( std::int32_t  frame)

Definition at line 229 of file VideoRuntime.cpp.

◆ feedToFrame()

std::expected< Status, std::string > monopoly::video::Runtime::feedToFrame ( std::int32_t  desiredFrame)

Definition at line 155 of file VideoRuntime.cpp.

◆ forgetAlternatives()

void monopoly::video::Runtime::forgetAlternatives ( )
noexcept

Definition at line 280 of file VideoRuntime.cpp.

◆ frameAtElapsed()

std::expected< std::int32_t, std::string > monopoly::video::Runtime::frameAtElapsed ( std::uint64_t  elapsedMicroseconds) const

Definition at line 213 of file VideoRuntime.cpp.

◆ metadata()

const AviMetadata & monopoly::video::Runtime::metadata ( ) const
inlinenoexcept

Definition at line 80 of file VideoRuntime.hpp.

◆ open() [1/3]

bool monopoly::video::Runtime::open ( ) const
inlinenoexcept

Definition at line 85 of file VideoRuntime.hpp.

◆ open() [2/3]

std::expected< void, std::string > monopoly::video::Runtime::open ( AviMetadata  metadata,
bool  loopAtEnd = false 
)

Definition at line 125 of file VideoRuntime.cpp.

◆ open() [3/3]

std::expected< void, std::string > monopoly::video::Runtime::open ( std::span< const std::uint8_t >  aviBytes,
bool  loopAtEnd = false 
)

Definition at line 115 of file VideoRuntime.cpp.

◆ setAlternative()

std::expected< void, std::string > monopoly::video::Runtime::setAlternative ( std::int32_t  decisionFrame,
std::int32_t  jumpToFrame 
)

Definition at line 244 of file VideoRuntime.cpp.

◆ status()

const Status & monopoly::video::Runtime::status ( ) const
inlinenoexcept

Definition at line 75 of file VideoRuntime.hpp.

◆ stop()

void monopoly::video::Runtime::stop ( )
noexcept

Definition at line 144 of file VideoRuntime.cpp.

◆ takeJumpEvent()

std::optional< JumpEvent > monopoly::video::Runtime::takeJumpEvent ( )
noexcept

Definition at line 285 of file VideoRuntime.cpp.


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