This class will create the appropriate type of AVClip depending on the supplied file type. More...
#include <foleys_AVFormatManager.h>
Public Types | |
| enum class | Formats { PROBE = 0 , FFmpeg } |
Public Member Functions | |
| AVFormatManager () | |
| std::shared_ptr< AVClip > | createClipFromFile (VideoEngine &engine, juce::URL url, StreamTypes type=StreamTypes::all()) |
| std::unique_ptr< AVReader > | createReaderFor (juce::File file, StreamTypes type=StreamTypes::all()) |
| std::unique_ptr< AVWriter > | createClipWriter (juce::File file) |
| void | registerFormat (std::unique_ptr< AVFormat > format) |
| void | registerFactory (const juce::String &schema, std::function< std::shared_ptr< AVClip >(foleys::VideoEngine &videoEngine, juce::URL url, StreamTypes type)> factory) |
Public Attributes | |
| juce::AudioFormatManager | audioFormatManager |
This class will create the appropriate type of AVClip depending on the supplied file type.
You don't need to create your own, the VideoEngine has an instance ready, that should be used.
|
strong |
| AVFormatManager | ( | ) |
References AVFormatManager::audioFormatManager.
| std::shared_ptr< AVClip > createClipFromFile | ( | VideoEngine & | engine, |
| juce::URL | url, | ||
| StreamTypes | type = StreamTypes::all() |
||
| ) |
References AVFormatManager::audioFormatManager, AVFormatManager::createReaderFor(), and StreamTypes::video().
Referenced by VideoEngine::createClipFromFile().
| std::unique_ptr< AVReader > createReaderFor | ( | juce::File | file, |
| StreamTypes | type = StreamTypes::all() |
||
| ) |
Referenced by AVFormatManager::createClipFromFile(), and VideoEngine::createReaderFor().
| std::unique_ptr< AVWriter > createClipWriter | ( | juce::File | file | ) |
Referenced by ClipRenderer::startRendering().
| void registerFormat | ( | std::unique_ptr< AVFormat > | format | ) |
Referenced by MainContentComponent::MainContentComponent().
| void registerFactory | ( | const juce::String & | schema, |
| std::function< std::shared_ptr< AVClip >(foleys::VideoEngine &videoEngine, juce::URL url, StreamTypes type)> | factory | ||
| ) |
| juce::AudioFormatManager audioFormatManager |