This class implements the FFmpeg library.
More...
#include <FFMLibrary.h>
|
static LibraryRef | create () |
| Creates this library and returns it an object reference.
|
|
static MediumRef | newMovie (const std::string &url, bool useExclusive) |
| Creates a new movie medium.
|
|
static void | avLogCallback (void *context, int level, const char *message, va_list arguments) |
| Callback function for FFmpeg's logs.
|
|
This class implements the FFmpeg library.
◆ FFMLibrary()
Ocean::Media::FFmpeg::FFMLibrary::FFMLibrary |
( |
| ) |
|
|
protected |
◆ ~FFMLibrary()
Ocean::Media::FFmpeg::FFMLibrary::~FFMLibrary |
( |
| ) |
|
|
overrideprotected |
◆ avLogCallback()
static void Ocean::Media::FFmpeg::FFMLibrary::avLogCallback |
( |
void * |
context, |
|
|
int |
level, |
|
|
const char * |
message, |
|
|
va_list |
arguments |
|
) |
| |
|
staticprotected |
Callback function for FFmpeg's logs.
- Parameters
-
context | The context of the log |
level | The log's level |
message | The log message |
arguments | The log's arguments |
◆ create()
static LibraryRef Ocean::Media::FFmpeg::FFMLibrary::create |
( |
| ) |
|
|
staticprotected |
Creates this library and returns it an object reference.
- Returns
- The new library object
◆ newMedium() [1/2]
MediumRef Ocean::Media::FFmpeg::FFMLibrary::newMedium |
( |
const std::string & |
url, |
|
|
bool |
useExclusive = false |
|
) |
| |
|
overridevirtual |
◆ newMedium() [2/2]
MediumRef Ocean::Media::FFmpeg::FFMLibrary::newMedium |
( |
const std::string & |
url, |
|
|
const Medium::Type |
type, |
|
|
bool |
useExclusive = false |
|
) |
| |
|
overridevirtual |
◆ newMovie()
static MediumRef Ocean::Media::FFmpeg::FFMLibrary::newMovie |
( |
const std::string & |
url, |
|
|
bool |
useExclusive |
|
) |
| |
|
staticprotected |
Creates a new movie medium.
- Parameters
-
url | Url of the movie medium to create |
useExclusive | Determines whether the caller would like to use this medium exclusively |
- Returns
- Reference of the new medium
◆ newRecorder()
◆ registerLibrary()
static bool Ocean::Media::FFmpeg::FFMLibrary::registerLibrary |
( |
| ) |
|
|
static |
Registers this library at the global media manager.
With each register call, the reference counter for a specific library will be incremented. Each call to registerLibrary() needs to be balanced with a corresponding call of unregisterLibrary() before shutting down.
- Returns
- True, if the library has not been registered before
- See also
- Manager, unregisterLibrary()
◆ supportedTypes()
Medium::Type Ocean::Media::FFmpeg::FFMLibrary::supportedTypes |
( |
| ) |
const |
|
overridevirtual |
◆ unregisterLibrary()
static bool Ocean::Media::FFmpeg::FFMLibrary::unregisterLibrary |
( |
| ) |
|
|
static |
Unregisters this library at the global media manager.
With each unregister call, the reference counter for a specific library will be decremented and removed from the system if the counter reaches zero. Each call to registerLibrary() needs to be balanced with a corresponding call of unregisterLibrary() before shutting down.
- Returns
- True, if the library was actually removed from the system (as the reference counter reached zero); False, if the library is still used by someone else
- See also
- registerLibrary().
◆ FFMMovie
◆ Media::Manager
The documentation for this class was generated from the following file: