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

Reads a single frame from a video file using ffmpeg. More...

#include <inviwo/ffmpeg/ffmpegvideoreader.h>

+ Inheritance diagram for inviwo::FFmpegLayerReader:

Public Types

using Seconds = std::chrono::duration<double>
 

Public Member Functions

virtual FFmpegLayerReader * clone () const override
 
 FFmpegLayerReader (const FFmpegLayerReader &rhs)=default
 
 FFmpegLayerReader (FFmpegLayerReader &&rhs) noexcept=default
 
virtual std::any getOption (std::string_view key) override
 Query the value of an reader specific option.
 
FFmpegLayerReader & operator= (const FFmpegLayerReader &that)=default
 
FFmpegLayerReader & operator= (FFmpegLayerReader &&that) noexcept=default
 
virtual std::shared_ptr< Layer > readData (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< Layer >
 DataReaderType (const DataReaderType &rhs)=default
 
 DataReaderType (DataReaderType &&rhs) noexcept=default
 
DataReaderType & operator= (const DataReaderType &that)=default
 
DataReaderType & operator= (DataReaderType &&that) noexcept=default
 
virtual std::shared_ptr< Layer > readData (const std::filesystem::path &filePath, MetaDataOwner *)
 
virtual std::shared_ptr< Layer > readData (const std::filesystem::path &filePath, MetaDataOwner *owner, std::stop_token stop)
 
- 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
 
DataReader & operator= (const DataReader &that)=default
 
DataReader & operator= (DataReader &&that) noexcept=default
 
template<typename T >
bool readsType () const
 

Additional Inherited Members

- Protected Member Functions inherited from inviwo::DataReaderType< Layer >
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< FileExtension > extensions_
 

Detailed Description

Reads a single frame from a video file using ffmpeg.

Supported options

Member Function Documentation

◆ clone()

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

◆ getOption()

virtual std::any inviwo::FFmpegLayerReader::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< Layer > inviwo::FFmpegLayerReader::readData ( const std::filesystem::path & filePath)
overridevirtual

◆ setOption()

virtual bool inviwo::FFmpegLayerReader::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: