8 #ifndef META_OCEAN_MEDIA_A_MOVIE_RECORDER_H
9 #define META_OCEAN_MEDIA_A_MOVIE_RECORDER_H
29 #if defined(__ANDROID_API__) && __ANDROID_API__ >= 21
43 static constexpr
int DEFAULT_BITRATE = 2000000;
46 static constexpr
int DEFAULT_IFRAME_INTERVAL_SECONDS = 1;
142 AMediaFormat* mediaFormat_ =
nullptr;
145 AMediaCodec* mediaCodec_ =
nullptr;
148 AMediaMuxer* mediaMuxer_ =
nullptr;
154 ssize_t bufferIndex_ = -1;
157 size_t bufferSize_ = 0;
160 ssize_t trackIndex_ = -1;
163 double nextFrameTimestamp_ = 0.0;
166 bool isRecording_ =
false;
169 bool isStopped_ =
false;
This class implements Ocean's image class.
Definition: Frame.h:1792
Definition of a frame type composed by the frame dimension, pixel format and pixel origin.
Definition: Frame.h:30
The namespace covering the entire Ocean framework.
Definition: Accessor.h:15