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

#include <VideoPresentation.hpp>

Classes

struct  Impl
 

Public Member Functions

 Presentation ()
 
 ~Presentation ()
 
 Presentation (const Presentation &)=delete
 
Presentation & operator= (const Presentation &)=delete
 
std::expected< void, std::string > open (const std::filesystem::path &file, bool enableAudio, const DecoderOptions &options={})
 
DecoderSnapshot snapshot () const
 
std::expected< PresentationClock, std::string > pump (std::uint64_t sequenceMicroseconds, bool paused=false)
 
std::expected< std::optional< DecodedVideoFrame >, std::string > frameAt (std::uint64_t elapsedMicroseconds)
 
std::expected< void, std::string > seek (std::uint64_t timestampMicroseconds, std::uint64_t sequenceMicroseconds)
 
std::expected< void, std::string > setGain (float gain)
 
std::expected< void, std::string > setPitch (std::uint32_t hertz, std::uint32_t originalHertz)
 
void setPanning (std::int32_t percentage) noexcept
 
bool videoDrained () const
 
void stop () noexcept
 

Detailed Description

Definition at line 31 of file VideoPresentation.hpp.

Constructor & Destructor Documentation

◆ Presentation() [1/2]

monopoly::video::Presentation::Presentation ( )

Definition at line 161 of file VideoPresentation.cpp.

◆ ~Presentation()

monopoly::video::Presentation::~Presentation ( )
default

◆ Presentation() [2/2]

monopoly::video::Presentation::Presentation ( const Presentation &  )
delete

Member Function Documentation

◆ frameAt()

std::expected< std::optional< DecodedVideoFrame >, std::string > monopoly::video::Presentation::frameAt ( std::uint64_t  elapsedMicroseconds)

Definition at line 311 of file VideoPresentation.cpp.

◆ open()

std::expected< void, std::string > monopoly::video::Presentation::open ( const std::filesystem::path &  file,
bool  enableAudio,
const DecoderOptions &  options = {} 
)

Definition at line 163 of file VideoPresentation.cpp.

◆ operator=()

Presentation & monopoly::video::Presentation::operator= ( const Presentation &  )
delete

◆ pump()

std::expected< PresentationClock, std::string > monopoly::video::Presentation::pump ( std::uint64_t  sequenceMicroseconds,
bool  paused = false 
)

Definition at line 221 of file VideoPresentation.cpp.

◆ seek()

std::expected< void, std::string > monopoly::video::Presentation::seek ( std::uint64_t  timestampMicroseconds,
std::uint64_t  sequenceMicroseconds 
)

Definition at line 181 of file VideoPresentation.cpp.

◆ setGain()

std::expected< void, std::string > monopoly::video::Presentation::setGain ( float  gain)

Definition at line 193 of file VideoPresentation.cpp.

◆ setPanning()

void monopoly::video::Presentation::setPanning ( std::int32_t  percentage)
noexcept

Definition at line 216 of file VideoPresentation.cpp.

◆ setPitch()

std::expected< void, std::string > monopoly::video::Presentation::setPitch ( std::uint32_t  hertz,
std::uint32_t  originalHertz 
)

Definition at line 204 of file VideoPresentation.cpp.

◆ snapshot()

DecoderSnapshot monopoly::video::Presentation::snapshot ( ) const

Definition at line 172 of file VideoPresentation.cpp.

◆ stop()

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

Definition at line 173 of file VideoPresentation.cpp.

◆ videoDrained()

bool monopoly::video::Presentation::videoDrained ( ) const

Definition at line 336 of file VideoPresentation.cpp.


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