OpenGothic
Open source reimplementation of Gothic I and II
Loading...
Searching...
No Matches
VideoWidget::Context Struct Reference

Public Member Functions

 Context (std::unique_ptr< zenkit::Read > &&f)
 
 ~Context ()
 
void advance (Tempest::Device &device, uint8_t fId)
 
uint64_t tickSound () const
 
void yuvToRgba (const Bink::Frame &f, Tempest::Device &device, uint8_t fId)
 
void yuvToRgba (const Bink::Frame &f, Pixmap &pm)
 
bool isEof () const
 

Public Attributes

std::unique_ptr< zenkit::Read > fin
 
Input input
 
Bink::Video vid
 
uint64_t frameTime = 0
 
Tempest::Attachment frameImg
 
Tempest::CommandBuffer cmd [Resources::MaxFramesInFlight]
 
Tempest::StorageBuffer staging [Resources::MaxFramesInFlight]
 
Tempest::Fence sync [Resources::MaxFramesInFlight]
 
Tempest::SoundDevice sndDev
 
std::vector< std::unique_ptr< SoundContext > > sndCtx
 

Detailed Description

Definition at line 101 of file videowidget.cpp.

Constructor & Destructor Documentation

◆ Context()

VideoWidget::Context::Context ( std::unique_ptr< zenkit::Read > &&  f)
inline

Definition at line 102 of file videowidget.cpp.

◆ ~Context()

VideoWidget::Context::~Context ( )
inline

Definition at line 121 of file videowidget.cpp.

Member Function Documentation

◆ advance()

void VideoWidget::Context::advance ( Tempest::Device &  device,
uint8_t  fId 
)
inline

Definition at line 126 of file videowidget.cpp.

◆ isEof()

bool VideoWidget::Context::isEof ( ) const
inline

Definition at line 233 of file videowidget.cpp.

◆ tickSound()

uint64_t VideoWidget::Context::tickSound ( ) const
inline

Definition at line 143 of file videowidget.cpp.

◆ yuvToRgba() [1/2]

void VideoWidget::Context::yuvToRgba ( const Bink::Frame f,
Pixmap &  pm 
)
inline

Definition at line 202 of file videowidget.cpp.

◆ yuvToRgba() [2/2]

void VideoWidget::Context::yuvToRgba ( const Bink::Frame f,
Tempest::Device &  device,
uint8_t  fId 
)
inline

Definition at line 152 of file videowidget.cpp.

Member Data Documentation

◆ cmd

Tempest::CommandBuffer VideoWidget::Context::cmd[Resources::MaxFramesInFlight]

Definition at line 243 of file videowidget.cpp.

◆ fin

std::unique_ptr<zenkit::Read> VideoWidget::Context::fin

Definition at line 237 of file videowidget.cpp.

◆ frameImg

Tempest::Attachment VideoWidget::Context::frameImg

Definition at line 242 of file videowidget.cpp.

◆ frameTime

uint64_t VideoWidget::Context::frameTime = 0

Definition at line 240 of file videowidget.cpp.

◆ input

Input VideoWidget::Context::input

Definition at line 238 of file videowidget.cpp.

◆ sndCtx

std::vector<std::unique_ptr<SoundContext> > VideoWidget::Context::sndCtx

Definition at line 248 of file videowidget.cpp.

◆ sndDev

Tempest::SoundDevice VideoWidget::Context::sndDev

Definition at line 247 of file videowidget.cpp.

◆ staging

Tempest::StorageBuffer VideoWidget::Context::staging[Resources::MaxFramesInFlight]

Definition at line 244 of file videowidget.cpp.

◆ sync

Tempest::Fence VideoWidget::Context::sync[Resources::MaxFramesInFlight]

Definition at line 245 of file videowidget.cpp.

◆ vid

Bink::Video VideoWidget::Context::vid

Definition at line 239 of file videowidget.cpp.


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