RAII wrapper around an AVFormatContext used for demuxing, that is reading media files.
More...
#include <inviwo/ffmpeg/wrap/inputcontext.h>
|
| int | bestVideoStream () const |
| | Index of the video stream ffmpeg considers the most suitable one.
|
| |
|
| InputContext (const InputContext &)=delete |
| |
|
| InputContext (InputContext &&)=delete |
| |
|
| InputContext (std::filesystem::path aFilename) |
| |
|
int | nbStreams () const |
| |
|
InputContext & | operator= (const InputContext &)=delete |
| |
|
InputContext & | operator= (InputContext &&)=delete |
| |
| bool | readPacket (Packet &pkt) |
| | Read the next packet from the file.
|
| |
|
void | seek (int streamIndex, int64_t timestamp) |
| | Seek to the keyframe at or before timestamp, given in the time base of stream streamIndex.
|
| |
| AVStream * | stream (int index) const |
| |
|
|
AVFormatContext * | ctx |
| |
|
std::filesystem::path | filename |
| |
RAII wrapper around an AVFormatContext used for demuxing, that is reading media files.
- See also
- OutputContext for the muxing counterpart
◆ bestVideoStream()
| int inviwo::ffmpeg::InputContext::bestVideoStream |
( |
| ) |
const |
Index of the video stream ffmpeg considers the most suitable one.
- Exceptions
-
| Exception | if the file contains no video stream |
◆ readPacket()
| bool inviwo::ffmpeg::InputContext::readPacket |
( |
Packet & | pkt | ) |
|
Read the next packet from the file.
- Returns
- false at end of file, true otherwise
◆ stream()
| AVStream * inviwo::ffmpeg::InputContext::stream |
( |
int | index | ) |
const |
The documentation for this class was generated from the following file:
- modules/ffmpeg/include/inviwo/ffmpeg/wrap/inputcontext.h