Loading...
Searching...
No Matches
Gfx::PipeWire::InputStream Struct Referencefinal
Inheritance diagram for Gfx::PipeWire::InputStream:
Video::ExternalInput Video::VideoInterface Video::VideoMetadata Video::ImageFormat

Public Member Functions

 InputStream (const QString &path) noexcept
 
bool start () noexcept override
 
void stop () noexcept override
 
AVFrame * dequeue_frame () noexcept override
 
void release_frame (AVFrame *frame) noexcept override
 
bool notifyFormatChange (int new_w, int new_h, AVPixelFormat new_pixfmt) noexcept override
 
int64_t duration () const noexcept
 
void seek (int64_t) noexcept override
 
double fps () const noexcept
 
bool realTime () const noexcept
 
double flicks_per_dts () const noexcept
 

Public Attributes

std::atomic< int > m_negotiatedKind {0}
 
pw_stream_events e {}
 
e version = PW_VERSION_STREAM_EVENTS
 
e state_changed = on_stream_state_changed
 
e param_changed = on_stream_param_changed
 
e process = on_stream_process
 
return e
 
- Public Attributes inherited from Video::VideoInterface
std::atomic_int seek_generation {}
 
- Public Attributes inherited from Video::ImageFormat
int width {}
 
int height {}
 
AVPixelFormat pixel_format = AVPixelFormat(-1)
 
AVPixelFormat hwaccel_sw_format = AVPixelFormat(-1)
 
VideoPixelFormat native_format = VideoPixelFormat::Unknown
 
AVColorRange color_range = AVCOL_RANGE_UNSPECIFIED
 
AVColorPrimaries color_primaries = AVCOL_PRI_UNSPECIFIED
 
AVColorTransferCharacteristic color_trc = AVCOL_TRC_UNSPECIFIED
 
AVColorSpace color_space = AVCOL_SPC_UNSPECIFIED
 
AVChromaLocation chroma_location = AVCHROMA_LOC_UNSPECIFIED
 
AVMasteringDisplayMetadata mastering_display {}
 
std::optional< AVContentLightMetadata > content_light {}
 
Interlacing interlacing = ::Video::Interlacing::None
 
OutputFormat output_format = ::Video::OutputFormat::SDR
 
Tonemap tonemap = ::Video::Tonemap::Auto
 
Deinterlace deinterlace = ::Video::Deinterlace::Weave
 

Member Function Documentation

◆ dequeue_frame()

AVFrame * Gfx::PipeWire::InputStream::dequeue_frame ( )
overridevirtualnoexcept

Implements Video::VideoInterface.

◆ notifyFormatChange()

bool Gfx::PipeWire::InputStream::notifyFormatChange ( int  new_w,
int  new_h,
AVPixelFormat  new_pixfmt 
)
overridevirtualnoexcept

Reimplemented from Video::ExternalInput.

◆ release_frame()

void Gfx::PipeWire::InputStream::release_frame ( AVFrame *  frame)
overridevirtualnoexcept

Implements Video::VideoInterface.

◆ seek()

void Gfx::PipeWire::InputStream::seek ( int64_t  flicks)
inlineoverridevirtualnoexcept

Asks for the frames from this playback time on; a source that cannot seek ignores it.

Reimplemented from Video::VideoInterface.

◆ start()

bool Gfx::PipeWire::InputStream::start ( )
overridevirtualnoexcept

Implements Video::ExternalInput.

◆ stop()

void Gfx::PipeWire::InputStream::stop ( )
overridevirtualnoexcept

Implements Video::ExternalInput.


The documentation for this struct was generated from the following file:
  • PipewireInputDevice.cpp