Loading...
Searching...
No Matches
Video::VideoInterface Struct Referenceabstract
Inheritance diagram for Video::VideoInterface:
Video::VideoMetadata Video::ImageFormat Video::ExternalInput Video::VideoDecoder Gfx::GPhoto2::gphoto2_decoder Gfx::GStreamer::gstreamer_video_decoder Gfx::Kinect2::kinect2_decoder Gfx::PipeWire::InputStream Video::CameraInput Video::LibavStreamInput

Public Member Functions

virtual AVFrame * dequeue_frame () noexcept=0
 
virtual void release_frame (AVFrame *frame) noexcept=0
 
virtual void seek (int64_t flicks)
 

Public Attributes

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

◆ seek()

virtual void Video::VideoInterface::seek ( int64_t  flicks)
inlinevirtual

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

Reimplemented in Video::VideoDecoder, and Gfx::PipeWire::InputStream.

Member Data Documentation

◆ seek_generation

std::atomic_int Video::VideoInterface::seek_generation {}

The generation (frameGeneration) of the last seek done: a frame of an earlier one is from before it, and is not to be shown.


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