Video display and composing engine for JUCE
Loading...
Searching...
No Matches
AVFormatManager Class Reference

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< AVClipcreateClipFromFile (VideoEngine &engine, juce::URL url, StreamTypes type=StreamTypes::all())
 
std::unique_ptr< AVReadercreateReaderFor (juce::File file, StreamTypes type=StreamTypes::all())
 
std::unique_ptr< AVWritercreateClipWriter (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
 

Detailed Description

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.

Member Enumeration Documentation

◆ Formats

enum class Formats
strong
Enumerator
PROBE 
FFmpeg 

Constructor & Destructor Documentation

◆ AVFormatManager()

Member Function Documentation

◆ createClipFromFile()

std::shared_ptr< AVClip > createClipFromFile ( VideoEngine engine,
juce::URL  url,
StreamTypes  type = StreamTypes::all() 
)

◆ createReaderFor()

std::unique_ptr< AVReader > createReaderFor ( juce::File  file,
StreamTypes  type = StreamTypes::all() 
)

◆ createClipWriter()

std::unique_ptr< AVWriter > createClipWriter ( juce::File  file)

◆ registerFormat()

void registerFormat ( std::unique_ptr< AVFormat format)

◆ registerFactory()

void registerFactory ( const juce::String &  schema,
std::function< std::shared_ptr< AVClip >(foleys::VideoEngine &videoEngine, juce::URL url, StreamTypes type)>  factory 
)

Member Data Documentation

◆ audioFormatManager


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