Inviwo 0.9.12-pre
Inviwo documentation
Loading...
Searching...
No Matches
inviwo::FFmpegLayerSequenceReader Class Reference

Reads a range of frames from a video file using ffmpeg. More...

#include <inviwo/ffmpeg/ffmpegvideoreader.h>

+ Inheritance diagram for inviwo::FFmpegLayerSequenceReader:

Public Member Functions

virtual FFmpegLayerSequenceReaderclone () const override
 
 FFmpegLayerSequenceReader (const FFmpegLayerSequenceReader &rhs)=default
 
 FFmpegLayerSequenceReader (FFmpegLayerSequenceReader &&rhs) noexcept=default
 
virtual std::any getOption (std::string_view key) override
 Query the value of an reader specific option.
 
FFmpegLayerSequenceReaderoperator= (const FFmpegLayerSequenceReader &that)=default
 
FFmpegLayerSequenceReaderoperator= (FFmpegLayerSequenceReader &&that) noexcept=default
 
virtual std::shared_ptr< LayerSequencereadData (const std::filesystem::path &filePath) override
 
virtual bool setOption (std::string_view key, std::any value) override
 Set reader specific options See the documentation of the specific reader for the available options.
 
- Public Member Functions inherited from inviwo::DataReaderType< LayerSequence >
 DataReaderType (const DataReaderType &rhs)=default
 
 DataReaderType (DataReaderType &&rhs) noexcept=default
 
DataReaderTypeoperator= (const DataReaderType &that)=default
 
DataReaderTypeoperator= (DataReaderType &&that) noexcept=default
 
virtual std::shared_ptr< LayerSequencereadData (const std::filesystem::path &filePath, MetaDataOwner *)
 
- Public Member Functions inherited from inviwo::DataReader
void addExtension (FileExtension ext)
 
 DataReader (const DataReader &rhs)=default
 
 DataReader (DataReader &&rhs) noexcept=default
 
const std::vector< FileExtension > & getExtensions () const
 
DataReaderoperator= (const DataReader &that)=default
 
DataReaderoperator= (DataReader &&that) noexcept=default
 
template<typename T >
bool readsType () const
 

Static Public Attributes

static constexpr std::ptrdiff_t defaultCount = 100
 Videos can be arbitrarily long, only read this many frames unless told otherwise.
 

Additional Inherited Members

- Protected Member Functions inherited from inviwo::DataReaderType< LayerSequence >
virtual bool canRead (const std::type_index &index) const override
 
- Static Protected Member Functions inherited from inviwo::DataReader
static void checkExists (const std::filesystem::path &path)
 
static std::filesystem::path downloadAndCacheIfUrl (const std::filesystem::path &url)
 
static std::ifstream open (const std::filesystem::path &path, std::ios_base::openmode mode=std::ios_base::in)
 
static std::ifstream openAndCacheIfUrl (const std::filesystem::path &path, std::ios_base::openmode mode=std::ios_base::in)
 
static std::string readFileContents (const std::filesystem::path &path)
 
- Protected Attributes inherited from inviwo::DataReader
std::vector< FileExtensionextensions_
 

Detailed Description

Reads a range of frames from a video file using ffmpeg.

Supported options

Member Function Documentation

◆ clone()

virtual FFmpegLayerSequenceReader * inviwo::FFmpegLayerSequenceReader::clone ( ) const
overridevirtual

◆ getOption()

virtual std::any inviwo::FFmpegLayerSequenceReader::getOption ( std::string_view key)
overridevirtual

Query the value of an reader specific option.

Parameters
keythe option to query
Returns
an std::any with the requested option or an empty std::any if the option was not found

Reimplemented from inviwo::DataReader.

◆ readData()

virtual std::shared_ptr< LayerSequence > inviwo::FFmpegLayerSequenceReader::readData ( const std::filesystem::path & filePath)
overridevirtual

◆ setOption()

virtual bool inviwo::FFmpegLayerSequenceReader::setOption ( std::string_view key,
std::any value )
overridevirtual

Set reader specific options See the documentation of the specific reader for the available options.

Parameters
keythe option to set
valuethe new value for the option
Returns
true if the option was recognized and set, otherwise false

Reimplemented from inviwo::DataReader.


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