Ocean
Ocean::Media::Android::AMovie Class Referencefinal

This class implements a movie recorder class for Android. More...

Inheritance diagram for Ocean::Media::Android::AMovie:

Public Member Functions

MediumRef clone () const override
 Clones this movie medium and returns a new independent instance of this medium. More...
 
bool start () override
 Starts the medium. More...
 
bool pause () override
 Pauses the medium. More...
 
bool stop () override
 Stops the medium. More...
 
bool isStarted () const override
 Returns whether the medium is started currently. More...
 
double duration () const override
 Returns the duration of the finite medium. More...
 
double normalDuration () const override
 Returns the duration without speed consideration. More...
 
double position () const override
 Returns the recent position of the finite medium. More...
 
bool setPosition (const double position) override
 Sets the recent position of the finite medium. More...
 
float speed () const override
 Returns the speed of the finite medium. More...
 
bool setSpeed (const float speed) override
 Sets the speed of the finite medium. More...
 
float soundVolume () const override
 Returns the volume of the sound in db. More...
 
bool soundMute () const override
 Returns whether the sound medium is in a mute state. More...
 
bool setSoundVolume (const float volume) override
 Sets the volume of the sound in db. More...
 
bool setSoundMute (const bool mute) override
 Sets or un-sets the sound medium to a mute state. More...
 
bool useSound () const override
 Returns whether the sound of this movie is enabled or disabled. More...
 
bool setUseSound (const bool state) override
 Enables or disables the audio in this movie (has no effect if the movie does not have audio). More...
 
Timestamp startTimestamp () const override
 Returns the start timestamp. More...
 
Timestamp pauseTimestamp () const override
 Returns the pause timestamp. More...
 
Timestamp stopTimestamp () const override
 Returns the stop timestamp. More...
 
- Public Member Functions inherited from Ocean::Media::Medium
const std::string & url () const
 Returns the url of the medium. More...
 
bool isValid () const
 Returns whether the medium is valid. More...
 
const std::string & library () const
 Returns the name of the owner library. More...
 
Type type () const
 Returns the type of the medium. More...
 
bool isType (const Type type) const
 Returns whether a medium has a given type. More...
 
bool isExclusive () const
 Returns whether this medium can be use exclusively. More...
 
- Public Member Functions inherited from Ocean::Media::FiniteMedium
bool loop () const
 Returns whether the medium is played in a loop. More...
 
virtual bool setLoop (const bool value)
 Sets whether the medium has to be played in a loop. More...
 
virtual bool taskFinished () const
 Returns whether a previous task has been finished. More...
 
- Public Member Functions inherited from Ocean::Media::FrameMedium
 ~FrameMedium () override
 Destructs a frame object. More...
 
bool hasFrame () const
 Returns whether the object holds a frame. More...
 
FrameFrequency frameFrequency () const
 Returns the frequency of the frame in Hz. More...
 
virtual FrameRef frame (SharedAnyCamera *anyCamera=nullptr) const
 Returns the most recent frame. More...
 
virtual FrameRef frame (const Timestamp timestamp, SharedAnyCamera *anyCamera=nullptr) const
 Returns the frame with a specific timestamp. More...
 
virtual FrameRef frameTimeout (const double timeout, SharedAnyCamera *anyCamera=nullptr) const
 Waits until the first frame is available. More...
 
virtual bool hasFrame (const Timestamp timestamp) const
 Returns whether this media object currently holds a frame with specified timestamp. More...
 
unsigned int preferredFrameWidth () const
 Returns the preferred width of the frame in pixel. More...
 
unsigned int preferredFrameHeight () const
 Returns the preferred height of the frame in pixel. More...
 
FrameType::PixelFormat preferredFramePixelFormat () const
 Returns the preferred frame pixel format. More...
 
FrameFrequency preferredFrameFrequency () const
 Returns the preferred frame frequency in Hz. More...
 
virtual HomogenousMatrixD4 device_T_camera () const
 Returns the transformation between the camera and device. More...
 
virtual bool setPreferredFrameDimension (const unsigned int width, const unsigned int height)
 Sets the preferred frame dimension. More...
 
virtual bool setPreferredFramePixelFormat (const FrameType::PixelFormat format)
 Sets the preferred frame pixel format. More...
 
virtual bool setPreferredFrameFrequency (const FrameFrequency frequency)
 Sets the preferred frame frequency in Hz. More...
 
size_t capacity () const
 Returns the capacity of the frame history of this frame medium object. More...
 
bool setCapacity (const size_t capacity)
 Sets or changes the capacity of the frame history of this frame medium object. More...
 
FrameCallbackScopedSubscription addFrameCallback (FrameCallbackFunction &&frameCallbackFunction)
 Adds a callback function which is called whenever a new frame arrives. More...
 
- Public Member Functions inherited from Ocean::Media::SoundMedium
bool hasSound () const
 Returns whether the object holds a sound. More...
 
unsigned int soundChannels () const
 Returns the number of sound channels. More...
 
SoundFrequency soundFrequency () const
 Returns the frequency of the sound in Hz. More...
 
unsigned int soundBitsPerSample () const
 Returns the number of bits per sample. More...
 
unsigned int preferredSoundChannels () const
 Returns the preferred number of sound channels. More...
 
SoundFrequency preferredSoundFrequency () const
 Returns the preferred sound frequency in Hz. More...
 
unsigned int preferredSoundBitsPerSample () const
 Returns the preferred bits per sound sample. More...
 
virtual bool setPreferredSoundChannels (const unsigned int channels)
 Sets the preferred number of sound channels. More...
 
virtual bool setPreferredSoundFrequency (const SoundFrequency frequency)
 Sets the preferred sound frequency in Hz. More...
 
virtual bool setPreferredSoundBitsPerSample (const unsigned int bits)
 Sets the preferred bits per sound sample. More...
 

Protected Types

using ScopedFileDescriptor = ScopedObjectCompileTimeT< int, int, int, close, 0, true, -1 >
 Definition of a scoped file based on a file descriptor. More...
 
- Protected Types inherited from Ocean::Media::FrameMedium
typedef ScopedSubscriptionCallbackHandlerT< FrameCallbackFunction, FrameMedium, true > FrameCallbackHandler
 Definition of a thread-safe subscription handler for frame callback functions. More...
 
typedef std::vector< MediaFrameTypeFrameTypes
 Definition of a vector holding frame types. More...
 
- Protected Types inherited from Ocean::Thread
typedef std::pair< pthread_t, bool > TimedJoinPair
 Definition of a pair holding a thread id and a boolean state. More...
 
enum  ThreadPriority {
  PRIORITY_IDLE , PRIORTY_BELOW_NORMAL , PRIORTY_NORMAL , PRIORTY_ABOVE_NORMAL ,
  PRIORTY_HIGH , PRIORTY_REALTIME
}
 Definition of different thread priority values. More...
 

Protected Member Functions

 AMovie (const std::string &url)
 Creates a new movie object. More...
 
 ~AMovie () override
 Destroys a movie object. More...
 
void release ()
 Releases the movie and all associated resources. More...
 
void threadRun () override
 The thread run function. More...
 
bool initializeMediaExtractor ()
 Creates and initializes the media extractor for the medium's url. More...
 
bool initializeMediaCodecs ()
 Creates and initializes the media codecs for the medium. More...
 
AMediaCodec * createCodecForTrack (AMediaFormat *trackFormat, const char *mime, const size_t trackIndex)
 Creates the media codec for a specific track. More...
 
bool processInputBuffer (AMediaCodec *const mediaCodec, double &normalRelativePresentationTime)
 Processes the input buffer of a media codec. More...
 
- Protected Member Functions inherited from Ocean::Media::Android::AMedium
 AMedium (const std::string &url)
 Creates a new medium by a given url. More...
 
- Protected Member Functions inherited from Ocean::Media::Medium
 Medium (const Medium &medium)=delete
 Disabled copy constructor. More...
 
 Medium (const std::string &url)
 Creates a new medium by a given url. More...
 
virtual ~Medium ()
 Destructs a medium. More...
 
Mediumoperator= (const Medium &medium)=delete
 Disabled copy operator. More...
 
- Protected Member Functions inherited from Ocean::Media::Movie
 Movie (const std::string &url)
 Creates a new movie by a given url. More...
 
- Protected Member Functions inherited from Ocean::Media::FiniteMedium
 FiniteMedium (const std::string &url)
 Creates a new finite medium by a given url. More...
 
- Protected Member Functions inherited from Ocean::Media::FrameMedium
 FrameMedium (const std::string &url)
 Creates a new frame medium by a given url. More...
 
virtual bool deliverNewFrame (Frame &&frame, SharedAnyCamera &&anyCamera=SharedAnyCamera())
 Delivers a new frame to this FrameMedium. More...
 
- Protected Member Functions inherited from Ocean::Media::SoundMedium
 SoundMedium (const std::string &url)
 Creates a new sound medium by a given url. More...
 
- Protected Member Functions inherited from Ocean::Thread
 Thread (const Thread &thread)=delete
 Disabled copy constructor. More...
 
void createThread ()
 Creates the thread itself. More...
 
void destroyThread ()
 Destroys the thread itself. More...
 
void stopThreadExplicitly (const unsigned int timeout=5000u)
 Tries to stop the thread gracefully. More...
 
Threadoperator= (const Thread &thread)=delete
 The disabled assign operator. More...
 
 Thread (const std::string &name=std::string())
 Creates a new thread object. More...
 
 Thread (const unsigned int randomNumberSeedValue, const std::string &name=std::string())
 Creates a new thread object. More...
 
virtual ~Thread ()
 Destructs a thread object. More...
 
bool startThread ()
 Starts the thread. More...
 
void stopThread ()
 Informs the thread to stop. More...
 
bool terminateThread ()
 Terminates the thread. More...
 
bool joinThread (const unsigned int timeout=(unsigned int)(-1))
 Waits until this thread has been stopped. More...
 
bool shouldThreadStop () const
 Returns whether this thread should stop. More...
 
bool isThreadInvokedToStart () const
 Returns whether this thread has been invoked to start immediately. More...
 
bool isThreadActive () const
 Returns whether this thread is active. More...
 

Static Protected Member Functions

static bool extractAudioSamplesFromCodecOutputBuffer (AMediaCodec *const mediaCodec)
 Extracts the audio samples from an output buffer of a audio codec. More...
 
- Static Protected Member Functions inherited from Ocean::Thread
static void sleep (unsigned int ms)
 Sleeps the calling thread for a given time. More...
 
static void giveUp ()
 Gives up the remaining thread time. More...
 
static ThreadId currentThreadId ()
 Returns the thread id of the current (calling) thread. More...
 
static ThreadPriority threadPriority ()
 Returns the priority of the current thread. More...
 
static bool setThreadPriority (const ThreadPriority priority)
 Sets the priority of the current thread. More...
 
template<typename TObject , typename TExpectedValue >
static bool waitForValue (TObject &object, const TExpectedValue &expectedValue, const double timeout=-1.0)
 Waits until an object/variable has an expected value. More...
 
template<typename TObject , typename TExpectedValue >
static bool waitForValue (TObject &object, const TExpectedValue &expectedValue, TemporaryScopedLock &temporaryScopedLock, const double timeout=-1.0)
 Waits until an object/variable has an expected value. More...
 
static int pthread_timedjoin_np (pthread_t thread, void **retval, const struct timespec *abstime)
 Implements a thread join function with timeout value. More...
 

Protected Attributes

ScopedFileDescriptor fileDescriptor_
 Optional file description if used. More...
 
AMediaExtractor * mediaExtractor_ = nullptr
 The media extractor to be used t. More...
 
AMediaCodec * videoMediaCodec_ = nullptr
 The media codecs for the video track. More...
 
AMediaCodec * audioMediaCodec_ = nullptr
 The media codecs for the audio track. More...
 
Timestamp startTimestamp_ = Timestamp(false)
 The timestamp when the medium started. More...
 
Timestamp pauseTimestamp_ = Timestamp(false)
 The timestamp when the medium paused. More...
 
Timestamp stopTimestamp_ = Timestamp(false)
 The timestamp when the medium stopped. More...
 
std::atomic< float > speed_ = 1.0f
 The playback speed of this movie. More...
 
double normalDuration_ = -1.0
 The duration of the movie with normal speed. More...
 
bool useSound_ = false
 True, to enable audio in the movie; False, to disable audio, currently AMovie does not support audio. More...
 
- Protected Attributes inherited from Ocean::Media::Medium
std::string url_
 Url of the medium. More...
 
std::string libraryName_
 Name of the owner library. More...
 
bool isValid_ = false
 Determines whether the medium is valid. More...
 
Type type_ = MEDIUM
 Type of the medium. More...
 
Lock lock_
 Medium lock. More...
 
- Protected Attributes inherited from Ocean::Media::FiniteMedium
bool loop_ = false
 Determines whether the medium is played in a loop. More...
 
- Protected Attributes inherited from Ocean::Media::FrameMedium
FrameCollection frameCollection_
 Frame collection storing several frames with different timestamps. More...
 
FrameCallbackHandler frameCallbackHandler_
 The handler for frame callback functions. More...
 
FrameFrequency recentFrameFrequency_ = FrameFrequency(0)
 Frame frequency. More...
 
MediaFrameType preferredFrameType_
 Preferred frame type of the medium. More...
 
- Protected Attributes inherited from Ocean::Media::SoundMedium
SoundType mediumSoundType
 Actual sound type. More...
 
SoundType mediumPreferredSoundType
 Preferred sound type. More...
 
Timestamp mediumSoundTimestamp
 Timestamp of the recent sound frame. More...
 
Timestamp mediumSoundTypeTimestamp
 Timestamp of the recent sound frame type. More...
 

Friends

class ALibrary
 

Additional Inherited Members

- Public Types inherited from Ocean::Media::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...
 
- Public Types inherited from Ocean::Media::FrameMedium
typedef double FrameFrequency
 Definition of a frame frequency defined in Hz. More...
 
typedef std::function< void(const Frame &frame, const SharedAnyCamera &camera)> FrameCallbackFunction
 Definition of a callback function for frame events. More...
 
typedef ScopedSubscriptionHandler::ScopedSubscriptionType FrameCallbackScopedSubscription
 Definition of a subscription object for frame callback events. More...
 
- Public Types inherited from Ocean::Media::SoundMedium
typedef float SoundFrequency
 Definition of a sound frequency defined in Hz. More...
 
- Static Public Member Functions inherited from Ocean::Media::Android::AMedium
static bool areInterfaceIdsIdentical (const SLInterfaceID &interfaceId0, const SLInterfaceID &interfaceId1)
 Returns whether two interface ids are identical. More...
 
static std::string toAString (const SLInterfaceID &interfaceId)
 Returns the hex string of an interface id,. More...
 
- Static Public Member Functions inherited from Ocean::Media::Medium
static std::string convertType (const Type type)
 Converts a medium type to a unique string. More...
 
static Type convertType (const std::string &type)
 Converts a medium type string to a medium type. More...
 
- Static Public Member Functions inherited from Ocean::Media::FrameMedium
static bool syncedFrames (const FrameMediumRefs &frameMediums, const Timestamp lastTimestamp, FrameRefs &frames, SharedAnyCameras &cameras, const unsigned int waitTime=2u, bool *timedOut=nullptr, HomogenousMatricesD4 *device_T_cameras=nullptr)
 Extracts most recent frames from several frame medium objects and ensures that the timestamps of all frames are identical. More...
 
- Static Public Attributes inherited from Ocean::Media::Android::AMedium
static constexpr SLInterfaceID_ slEffectTypeNoiseSuppressorId_ = {0x58b4b260, 0x8e06, 0x11e0, 0xaa8e, {0x00, 0x02, 0xa5, 0xd5, 0xc5, 0x1b}}
 Definition of the interface for Noise Suppressor (NS). More...
 
static constexpr SLInterfaceID_ slEffectTypeAcousticEchoCancelerId_ = {0x7b491460, 0x8d4d, 0x11e0, 0xbd61, {0x00, 0x02, 0xa5, 0xd5, 0xc5, 0x1b}}
 Definition of the interface for Acoustic Echo Canceler (AEC). More...
 
- Static Public Attributes inherited from Ocean::Media::FiniteMedium
static constexpr float AS_FAST_AS_POSSIBLE = 0.0f
 Definition of a speed value allowing to deliver the media content as fast as possible. More...
 

Detailed Description

This class implements a movie recorder class for Android.

NOTE: The supported pixel formats for recording may vary from device to device.

Member Typedef Documentation

◆ ScopedFileDescriptor

using Ocean::Media::Android::AMovie::ScopedFileDescriptor = ScopedObjectCompileTimeT<int, int, int, close, 0, true, -1>
protected

Definition of a scoped file based on a file descriptor.

Constructor & Destructor Documentation

◆ AMovie()

Ocean::Media::Android::AMovie::AMovie ( const std::string &  url)
explicitprotected

Creates a new movie object.

Parameters
urlThe URL of the movie, must be valid

◆ ~AMovie()

Ocean::Media::Android::AMovie::~AMovie ( )
overrideprotected

Destroys a movie object.

Member Function Documentation

◆ clone()

MediumRef Ocean::Media::Android::AMovie::clone ( ) const
overridevirtual

Clones this movie medium and returns a new independent instance of this medium.

See also
Medium::clone()

Reimplemented from Ocean::Media::Medium.

◆ createCodecForTrack()

AMediaCodec* Ocean::Media::Android::AMovie::createCodecForTrack ( AMediaFormat *  trackFormat,
const char *  mime,
const size_t  trackIndex 
)
protected

Creates the media codec for a specific track.

Parameters
trackFormatThe format of the track for which the code will be created, must be valid
mimeThe mime of the format, must be valid
trackIndexThe index of the track for which the codec will be created, must be valid
Returns
The media codec if succeeded; nullptr otherwise

◆ duration()

double Ocean::Media::Android::AMovie::duration ( ) const
overridevirtual

Returns the duration of the finite medium.

See also
FiniteMedium::duration().

Implements Ocean::Media::FiniteMedium.

◆ extractAudioSamplesFromCodecOutputBuffer()

static bool Ocean::Media::Android::AMovie::extractAudioSamplesFromCodecOutputBuffer ( AMediaCodec *const  mediaCodec)
staticprotected

Extracts the audio samples from an output buffer of a audio codec.

Parameters
mediaCodecThe media codec to which the output buffer belongs, must be valid
Returns
The resulting extracted frame, invalid if the frame could not be extracted

◆ initializeMediaCodecs()

bool Ocean::Media::Android::AMovie::initializeMediaCodecs ( )
protected

Creates and initializes the media codecs for the medium.

Returns
True, if at least the video codec could be initialized successfully

◆ initializeMediaExtractor()

bool Ocean::Media::Android::AMovie::initializeMediaExtractor ( )
protected

Creates and initializes the media extractor for the medium's url.

Returns
True, if succeeded

◆ isStarted()

bool Ocean::Media::Android::AMovie::isStarted ( ) const
overridevirtual

Returns whether the medium is started currently.

See also
Medium::isStarted().

Implements Ocean::Media::Medium.

◆ normalDuration()

double Ocean::Media::Android::AMovie::normalDuration ( ) const
overridevirtual

Returns the duration without speed consideration.

See also
FiniteMedium::normalDuration().

Implements Ocean::Media::FiniteMedium.

◆ pause()

bool Ocean::Media::Android::AMovie::pause ( )
overridevirtual

Pauses the medium.

See also
Medium::pause():

Implements Ocean::Media::Medium.

◆ pauseTimestamp()

Timestamp Ocean::Media::Android::AMovie::pauseTimestamp ( ) const
overridevirtual

Returns the pause timestamp.

See also
FiniteMedium::pauseTimestamp().

Implements Ocean::Media::Medium.

◆ position()

double Ocean::Media::Android::AMovie::position ( ) const
overridevirtual

Returns the recent position of the finite medium.

See also
FiniteMedium::position().

Implements Ocean::Media::FiniteMedium.

◆ processInputBuffer()

bool Ocean::Media::Android::AMovie::processInputBuffer ( AMediaCodec *const  mediaCodec,
double &  normalRelativePresentationTime 
)
protected

Processes the input buffer of a media codec.

Parameters
mediaCodecThe media codec which input buffer will be processed, must be valid
normalRelativePresentationTimeThe resulting relative presentation time in seconds for normal speed
Returns
False, if no more buffers need to be processed

◆ release()

void Ocean::Media::Android::AMovie::release ( )
protected

Releases the movie and all associated resources.

◆ setPosition()

bool Ocean::Media::Android::AMovie::setPosition ( const double  position)
overridevirtual

Sets the recent position of the finite medium.

See also
FiniteMedium::setPosition().

Reimplemented from Ocean::Media::FiniteMedium.

◆ setSoundMute()

bool Ocean::Media::Android::AMovie::setSoundMute ( const bool  mute)
overridevirtual

Sets or un-sets the sound medium to a mute state.

See also
SoundMedium::setSoundMute().

Implements Ocean::Media::SoundMedium.

◆ setSoundVolume()

bool Ocean::Media::Android::AMovie::setSoundVolume ( const float  volume)
overridevirtual

Sets the volume of the sound in db.

See also
SoundMedium::setSoundVolume().

Implements Ocean::Media::SoundMedium.

◆ setSpeed()

bool Ocean::Media::Android::AMovie::setSpeed ( const float  speed)
overridevirtual

Sets the speed of the finite medium.

See also
FiniteMedium::setSpeed().

Reimplemented from Ocean::Media::FiniteMedium.

◆ setUseSound()

bool Ocean::Media::Android::AMovie::setUseSound ( const bool  state)
overridevirtual

Enables or disables the audio in this movie (has no effect if the movie does not have audio).

See also
Movie::setUseSound()

Reimplemented from Ocean::Media::Movie.

◆ soundMute()

bool Ocean::Media::Android::AMovie::soundMute ( ) const
overridevirtual

Returns whether the sound medium is in a mute state.

See also
SoundMedium::soundMute().

Implements Ocean::Media::SoundMedium.

◆ soundVolume()

float Ocean::Media::Android::AMovie::soundVolume ( ) const
overridevirtual

Returns the volume of the sound in db.

See also
SoundMedium::soundVolume().

Implements Ocean::Media::SoundMedium.

◆ speed()

float Ocean::Media::Android::AMovie::speed ( ) const
overridevirtual

Returns the speed of the finite medium.

See also
FiniteMedium::speed().

Implements Ocean::Media::FiniteMedium.

◆ start()

bool Ocean::Media::Android::AMovie::start ( )
overridevirtual

Starts the medium.

See also
Medium::start().

Implements Ocean::Media::Medium.

◆ startTimestamp()

Timestamp Ocean::Media::Android::AMovie::startTimestamp ( ) const
overridevirtual

Returns the start timestamp.

See also
FiniteMedium::startTimestamp().

Implements Ocean::Media::Medium.

◆ stop()

bool Ocean::Media::Android::AMovie::stop ( )
overridevirtual

Stops the medium.

See also
Medium::stop().

Implements Ocean::Media::Medium.

◆ stopTimestamp()

Timestamp Ocean::Media::Android::AMovie::stopTimestamp ( ) const
overridevirtual

Returns the stop timestamp.

See also
FiniteMedium::stopTimestamp().

Implements Ocean::Media::Medium.

◆ threadRun()

void Ocean::Media::Android::AMovie::threadRun ( )
overrideprotectedvirtual

The thread run function.

Implements Ocean::Thread.

◆ useSound()

bool Ocean::Media::Android::AMovie::useSound ( ) const
overridevirtual

Returns whether the sound of this movie is enabled or disabled.

See also
Movie::useSound().

Reimplemented from Ocean::Media::Movie.

Friends And Related Function Documentation

◆ ALibrary

friend class ALibrary
friend

Field Documentation

◆ audioMediaCodec_

AMediaCodec* Ocean::Media::Android::AMovie::audioMediaCodec_ = nullptr
protected

The media codecs for the audio track.

◆ fileDescriptor_

ScopedFileDescriptor Ocean::Media::Android::AMovie::fileDescriptor_
protected

Optional file description if used.

◆ mediaExtractor_

AMediaExtractor* Ocean::Media::Android::AMovie::mediaExtractor_ = nullptr
protected

The media extractor to be used t.

◆ normalDuration_

double Ocean::Media::Android::AMovie::normalDuration_ = -1.0
protected

The duration of the movie with normal speed.

◆ pauseTimestamp_

Timestamp Ocean::Media::Android::AMovie::pauseTimestamp_ = Timestamp(false)
protected

The timestamp when the medium paused.

◆ speed_

std::atomic<float> Ocean::Media::Android::AMovie::speed_ = 1.0f
protected

The playback speed of this movie.

◆ startTimestamp_

Timestamp Ocean::Media::Android::AMovie::startTimestamp_ = Timestamp(false)
protected

The timestamp when the medium started.

◆ stopTimestamp_

Timestamp Ocean::Media::Android::AMovie::stopTimestamp_ = Timestamp(false)
protected

The timestamp when the medium stopped.

◆ useSound_

bool Ocean::Media::Android::AMovie::useSound_ = false
protected

True, to enable audio in the movie; False, to disable audio, currently AMovie does not support audio.

◆ videoMediaCodec_

AMediaCodec* Ocean::Media::Android::AMovie::videoMediaCodec_ = nullptr
protected

The media codecs for the video track.


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