OpenEnroth 73e68f7
Loading...
Searching...
No Matches
Public Member Functions | Private Member Functions | Private Attributes | List of all members
FFmpegBlobInputStream Class Reference

#include <FFmpegBlobInputStream.h>

Inheritance diagram for FFmpegBlobInputStream:
BlobInputStream InputStream

Public Member Functions

 FFmpegBlobInputStream ()=default
 
 FFmpegBlobInputStream (Blob blob)
 
virtual ~FFmpegBlobInputStream ()
 
void open (Blob blob)
 
void resetContext ()
 
virtual void close () override
 
AVIOContext * ioContext () const
 
- Public Member Functions inherited from BlobInputStream
 BlobInputStream ()=default
 
 BlobInputStream (Blob &&blob)
 
 BlobInputStream (const Blob &blob)
 
void open (Blob &&blob)
 
void open (const Blob &blob)
 
virtual size_t read (void *data, size_t size) override
 
virtual size_t skip (size_t size) override
 
virtual void close () override
 
virtual std::string displayPath () const override
 
void seek (ssize_t pos)
 
ssize_t position () const
 
ssize_t size () const
 
Blob tail () const
 
Blob readBlob (size_t size)
 
Blob readBlobOrFail (size_t size)
 
- Public Member Functions inherited from InputStream
virtual ~InputStream ()
 
virtual size_t read (void *data, size_t size)=0
 
void readOrFail (void *data, size_t size)
 
std::string readAll (size_t maxSize=-1)
 
virtual size_t skip (size_t size)=0
 
void skipOrFail (size_t size)
 
virtual void close ()=0
 
virtual std::string displayPath () const =0
 

Private Member Functions

void closeInternal ()
 

Private Attributes

AVIOContext * _ctx = nullptr
 

Constructor & Destructor Documentation

◆ FFmpegBlobInputStream() [1/2]

FFmpegBlobInputStream::FFmpegBlobInputStream ( )
default

◆ FFmpegBlobInputStream() [2/2]

FFmpegBlobInputStream::FFmpegBlobInputStream ( Blob  blob)
explicit

◆ ~FFmpegBlobInputStream()

FFmpegBlobInputStream::~FFmpegBlobInputStream ( )
virtual

Member Function Documentation

◆ close()

void FFmpegBlobInputStream::close ( )
overridevirtual

Closes this input stream. Reading from a closed stream will result in undefined behavior.

Does nothing if the stream is already closed.

Exceptions
ExceptionOn error.

Reimplemented from BlobInputStream.

◆ closeInternal()

void FFmpegBlobInputStream::closeInternal ( )
private

◆ ioContext()

AVIOContext * FFmpegBlobInputStream::ioContext ( ) const
inline

◆ open()

void FFmpegBlobInputStream::open ( Blob  blob)

◆ resetContext()

void FFmpegBlobInputStream::resetContext ( )

Member Data Documentation

◆ _ctx

AVIOContext* FFmpegBlobInputStream::_ctx = nullptr
private

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