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

#include <VideoDecoder.hpp>

Classes

struct  Impl
 

Public Member Functions

 Decoder ()
 
 ~Decoder ()
 
 Decoder (const Decoder &)=delete
 
Decoder & operator= (const Decoder &)=delete
 
 Decoder (Decoder &&)=delete
 
Decoder & operator= (Decoder &&)=delete
 
std::expected< void, std::string > open (const std::filesystem::path &file, const DecoderOptions &options={})
 
std::expected< void, std::string > seek (std::uint64_t timestampMicroseconds)
 
void stop () noexcept
 
DecoderSnapshot snapshot () const
 
std::optional< DecodedVideoFrame > popVideo ()
 
std::optional< DecodedAudioChunk > popAudio ()
 

Detailed Description

Definition at line 78 of file VideoDecoder.hpp.

Constructor & Destructor Documentation

◆ Decoder() [1/3]

monopoly::video::Decoder::Decoder ( )

Definition at line 511 of file VideoDecoder.cpp.

◆ ~Decoder()

monopoly::video::Decoder::~Decoder ( )

Definition at line 512 of file VideoDecoder.cpp.

◆ Decoder() [2/3]

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

◆ Decoder() [3/3]

monopoly::video::Decoder::Decoder ( Decoder &&  )
delete

Member Function Documentation

◆ open()

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

Definition at line 514 of file VideoDecoder.cpp.

◆ operator=() [1/2]

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

◆ operator=() [2/2]

Decoder & monopoly::video::Decoder::operator= ( Decoder &&  )
delete

◆ popAudio()

std::optional< DecodedAudioChunk > monopoly::video::Decoder::popAudio ( )

Definition at line 603 of file VideoDecoder.cpp.

◆ popVideo()

std::optional< DecodedVideoFrame > monopoly::video::Decoder::popVideo ( )

Definition at line 593 of file VideoDecoder.cpp.

◆ seek()

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

Definition at line 549 of file VideoDecoder.cpp.

◆ snapshot()

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

Definition at line 584 of file VideoDecoder.cpp.

◆ stop()

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

Definition at line 570 of file VideoDecoder.cpp.


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