Reads a single frame from a video file using ffmpeg.
More...
#include <inviwo/ffmpeg/ffmpegvideoreader.h>
|
|
using | Seconds = std::chrono::duration<double> |
|
| 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.
|
|
DataReaderType & | operator= (const DataReaderType &that)=default |
|
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 |
|
| virtual bool | canRead (const std::type_index &index) const override |
| 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) |
|
std::vector< FileExtension > | extensions_ |
Reads a single frame from a video file using ffmpeg.
Supported options
◆ 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
-
- 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
-
| key | the option to set |
| value | the 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:
- modules/ffmpeg/include/inviwo/ffmpeg/ffmpegvideoreader.h