The AVReader allows reading of AVClip classes. More...
#include <foleys_AVReader.h>
Inheritance diagram for AVReader:Public Member Functions | |
| AVReader ()=default | |
| virtual | ~AVReader ()=default |
| virtual juce::File | getMediaFile () const =0 |
| bool | isOpenedOk () const |
| virtual double | getLengthInSeconds () const =0 |
| Returns the length of the clip in seconds. | |
| virtual juce::int64 | getTotalLength () const =0 |
| Returns the length in samples. | |
| virtual void | setPosition (const int64_t position)=0 |
| Seek the reader to a certain position. | |
| virtual juce::Image | getStillImage (double seconds, Size size)=0 |
| This method allows direct access to a specific time to render thumbnails. | |
| virtual void | readNewData (VideoFifo &, AudioFifo &)=0 |
| virtual bool | hasVideo () const =0 |
| virtual bool | hasAudio () const =0 |
| virtual bool | hasSubtitle () const =0 |
| virtual void | setOutputSampleRate (double sampleRate)=0 |
| virtual int | getNumVideoStreams () const =0 |
| virtual VideoStreamSettings | getVideoSettings (int streamIndex) const =0 |
| virtual int | getNumAudioStreams () const =0 |
| virtual AudioStreamSettings | getAudioSettings (int streamIndex) const =0 |
Public Attributes | |
| Size | originalSize |
| int | pixelFormat |
| double | timebase = {} |
| double | sampleRate = {} |
| int | numChannels = 0 |
| juce::int64 | numSamples = 0 |
Protected Attributes | |
| bool | opened = false |
The AVReader allows reading of AVClip classes.
This class is pure virtual to allow different implementations for various backends.
|
default |
|
virtualdefault |
|
pure virtual |
Implemented in MediaFoundationReader.
| bool isOpenedOk | ( | ) | const |
References AVReader::opened.
|
pure virtual |
Returns the length of the clip in seconds.
Implemented in MediaFoundationReader.
|
pure virtual |
Returns the length in samples.
Note before prepareToPlay this returns the number of samples in the audio stream. Since the Reader will resample to suit the output, this number can change.
Implemented in MediaFoundationReader.
|
pure virtual |
Seek the reader to a certain position.
This position is given in audio samples
Implemented in MediaFoundationReader.
|
pure virtual |
This method allows direct access to a specific time to render thumbnails.
Don't use this to stream the video. Ideally use a separate reader for the thumbnails.
Implemented in MediaFoundationReader.
Implemented in MediaFoundationReader.
|
pure virtual |
Implemented in MediaFoundationReader.
|
pure virtual |
Implemented in MediaFoundationReader.
|
pure virtual |
Implemented in MediaFoundationReader.
|
pure virtual |
Implemented in MediaFoundationReader.
|
pure virtual |
Implemented in MediaFoundationReader.
|
pure virtual |
Implemented in MediaFoundationReader.
|
pure virtual |
Implemented in MediaFoundationReader.
|
pure virtual |
Implemented in MediaFoundationReader.
| Size originalSize |
| int pixelFormat |
| double timebase = {} |
| double sampleRate = {} |
Referenced by MediaFoundationReader::setOutputSampleRate().
| int numChannels = 0 |
| juce::int64 numSamples = 0 |
|
protected |
Referenced by AVReader::isOpenedOk(), and MediaFoundationReader::Pimpl::Pimpl().