This is the base class for all FFmpeg mediums.
More...
#include <FFMMedium.h>
|
bool | isStarted () const override |
| Returns whether the medium is started currently.
|
|
Timestamp | startTimestamp () const override |
| Returns the start timestamp.
|
|
Timestamp | pauseTimestamp () const override |
| Returns the pause timestamp.
|
|
Timestamp | stopTimestamp () const override |
| Returns the stop timestamp.
|
|
const std::string & | url () const |
| Returns the url of the medium.
|
|
bool | isValid () const |
| Returns whether the medium is valid.
|
|
const std::string & | library () const |
| Returns the name of the owner library.
|
|
Type | type () const |
| Returns the type of the medium.
|
|
bool | isType (const Type type) const |
| Returns whether a medium has a given type.
|
|
bool | isExclusive () const |
| Returns whether this medium can be use exclusively.
|
|
virtual MediumRef | clone () const |
| Clones this medium and returns a new independent instance of this medium.
|
|
|
enum | Type : uint32_t {
MEDIUM = 0u
, FRAME_MEDIUM = 1u << 0u
, SOUND_MEDIUM = 1u << 1u
, FINITE_MEDIUM = 1u << 2u
,
LIVE_MEDIUM = 1u << 3u
, CONFIG_MEDIUM = 1u << 4u
, AUDIO = (1u << 5u) | FINITE_MEDIUM | SOUND_MEDIUM
, IMAGE = (1u << 6u) | FRAME_MEDIUM
,
PIXEL_IMAGE = (1u << 7u) | FRAME_MEDIUM
, BUFFER_IMAGE = (1u << 8u) | FRAME_MEDIUM
, IMAGE_SEQUENCE = (1u << 9u) | FRAME_MEDIUM | FINITE_MEDIUM
, LIVE_AUDIO = (1u << 10u) | LIVE_MEDIUM | SOUND_MEDIUM
,
LIVE_VIDEO = (1u << 11u) | LIVE_MEDIUM | FRAME_MEDIUM
, MICROPHONE = (1u << 12u) | LIVE_MEDIUM
, MOVIE = (1u << 13u) | FINITE_MEDIUM | FRAME_MEDIUM | SOUND_MEDIUM
} |
| Definition of different medium types. More...
|
|
static std::string | convertType (const Type type) |
| Converts a medium type to a unique string.
|
|
static Type | convertType (const std::string &type) |
| Converts a medium type string to a medium type.
|
|
This is the base class for all FFmpeg mediums.
◆ FFMMedium()
Ocean::Media::FFmpeg::FFMMedium::FFMMedium |
( |
const std::string & |
url | ) |
|
|
explicitprotected |
Creates a new medium by a given url.
- Parameters
-
◆ ~FFMMedium()
Ocean::Media::FFmpeg::FFMMedium::~FFMMedium |
( |
| ) |
|
|
overrideprotected |
◆ createContextAndOpenFile()
bool Ocean::Media::FFmpeg::FFMMedium::createContextAndOpenFile |
( |
const std::string & |
filename | ) |
|
|
protected |
Creates a FFmpeg context and opens a given file.
- Parameters
-
filename | The name of the file to open, must be valid |
- Returns
- True, if succeeded
◆ internalPause()
virtual bool Ocean::Media::FFmpeg::FFMMedium::internalPause |
( |
| ) |
|
|
protectedpure virtual |
◆ internalStart()
virtual bool Ocean::Media::FFmpeg::FFMMedium::internalStart |
( |
| ) |
|
|
protectedpure virtual |
◆ internalStop()
virtual bool Ocean::Media::FFmpeg::FFMMedium::internalStop |
( |
| ) |
|
|
protectedpure virtual |
◆ isStarted()
bool Ocean::Media::FFmpeg::FFMMedium::isStarted |
( |
| ) |
const |
|
overridevirtual |
◆ pause()
bool Ocean::Media::FFmpeg::FFMMedium::pause |
( |
| ) |
|
|
overrideprotectedvirtual |
◆ pauseTimestamp()
Timestamp Ocean::Media::FFmpeg::FFMMedium::pauseTimestamp |
( |
| ) |
const |
|
overridevirtual |
◆ releaseContext()
void Ocean::Media::FFmpeg::FFMMedium::releaseContext |
( |
| ) |
|
|
protected |
◆ start()
bool Ocean::Media::FFmpeg::FFMMedium::start |
( |
| ) |
|
|
overrideprotectedvirtual |
◆ startTimestamp()
Timestamp Ocean::Media::FFmpeg::FFMMedium::startTimestamp |
( |
| ) |
const |
|
overridevirtual |
◆ stop()
bool Ocean::Media::FFmpeg::FFMMedium::stop |
( |
| ) |
|
|
overrideprotectedvirtual |
◆ stopTimestamp()
Timestamp Ocean::Media::FFmpeg::FFMMedium::stopTimestamp |
( |
| ) |
const |
|
overridevirtual |
◆ avFormatContext_
AVFormatContext* Ocean::Media::FFmpeg::FFMMedium::avFormatContext_ = nullptr |
|
protected |
FFmpeg's format context object.
◆ pauseTimestamp_
◆ startTimestamp_
◆ stopTimestamp_
The documentation for this class was generated from the following file: