Monopoly — Portage moderne 0.1.0
Portage moderne C/C++23 du Monopoly de 1999
Loading...
Searching...
No Matches
monopoly::video::Decoder::Impl Struct Reference
Collaboration diagram for monopoly::video::Decoder::Impl:
[legend]

Public Member Functions

void pause ()
 
void fail (std::string error)
 
std::expected< DecoderMetadata, std::string > probe ()
 
std::vector< std::string > command (std::uint64_t offset, bool isVideo, const DecoderMetadata &metadata) const
 
void decode (const DecoderMetadata &metadata, std::uint64_t offset, std::uint64_t generation)
 
void run () noexcept
 

Public Attributes

std::mutex mutex
 
std::condition_variable wake
 
std::atomic< bool > stopping {false}
 
std::thread worker
 
DecoderSnapshot state
 
DecoderOptions options
 
std::filesystem::path file
 
std::deque< DecodedVideoFrame > video
 
std::deque< DecodedAudioChunk > audio
 
std::optional< std::uint64_t > pendingSeek
 

Detailed Description

Definition at line 273 of file VideoDecoder.cpp.

Member Function Documentation

◆ command()

std::vector< std::string > monopoly::video::Decoder::Impl::command ( std::uint64_t  offset,
bool  isVideo,
const DecoderMetadata &  metadata 
) const
inline

Definition at line 330 of file VideoDecoder.cpp.

◆ decode()

void monopoly::video::Decoder::Impl::decode ( const DecoderMetadata &  metadata,
std::uint64_t  offset,
std::uint64_t  generation 
)
inline

Definition at line 353 of file VideoDecoder.cpp.

◆ fail()

void monopoly::video::Decoder::Impl::fail ( std::string  error)
inline

Definition at line 292 of file VideoDecoder.cpp.

◆ pause()

void monopoly::video::Decoder::Impl::pause ( )
inline

Definition at line 286 of file VideoDecoder.cpp.

◆ probe()

std::expected< DecoderMetadata, std::string > monopoly::video::Decoder::Impl::probe ( )
inline

Definition at line 300 of file VideoDecoder.cpp.

◆ run()

void monopoly::video::Decoder::Impl::run ( )
inlinenoexcept

Definition at line 475 of file VideoDecoder.cpp.

Member Data Documentation

◆ audio

std::deque<DecodedAudioChunk> monopoly::video::Decoder::Impl::audio

Definition at line 283 of file VideoDecoder.cpp.

◆ file

std::filesystem::path monopoly::video::Decoder::Impl::file

Definition at line 281 of file VideoDecoder.cpp.

◆ mutex

std::mutex monopoly::video::Decoder::Impl::mutex
mutable

Definition at line 275 of file VideoDecoder.cpp.

◆ options

DecoderOptions monopoly::video::Decoder::Impl::options

Definition at line 280 of file VideoDecoder.cpp.

◆ pendingSeek

std::optional<std::uint64_t> monopoly::video::Decoder::Impl::pendingSeek

Definition at line 284 of file VideoDecoder.cpp.

◆ state

DecoderSnapshot monopoly::video::Decoder::Impl::state

Definition at line 279 of file VideoDecoder.cpp.

◆ stopping

std::atomic<bool> monopoly::video::Decoder::Impl::stopping {false}

Definition at line 277 of file VideoDecoder.cpp.

◆ video

std::deque<DecodedVideoFrame> monopoly::video::Decoder::Impl::video

Definition at line 282 of file VideoDecoder.cpp.

◆ wake

std::condition_variable monopoly::video::Decoder::Impl::wake

Definition at line 276 of file VideoDecoder.cpp.

◆ worker

std::thread monopoly::video::Decoder::Impl::worker

Definition at line 278 of file VideoDecoder.cpp.


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