diff options
Diffstat (limited to 'include/media/mediarecorder.h')
-rwxr-xr-x[-rw-r--r--] | include/media/mediarecorder.h | 30 |
1 files changed, 25 insertions, 5 deletions
diff --git a/include/media/mediarecorder.h b/include/media/mediarecorder.h index 15ff82d..0cf1146 100644..100755 --- a/include/media/mediarecorder.h +++ b/include/media/mediarecorder.h @@ -1,4 +1,7 @@ /* + ** Copyright (c) 2014, The Linux Foundation. All rights reserved. + ** Not a Contribution. + ** ** Copyright (C) 2008 The Android Open Source Project ** ** Licensed under the Apache License, Version 2.0 (the "License"); @@ -74,6 +77,9 @@ enum output_format { /* VP8/VORBIS data in a WEBM container */ OUTPUT_FORMAT_WEBM = 9, + OUTPUT_FORMAT_QCP = 20, + OUTPUT_FORMAT_WAVE = 21, + OUTPUT_FORMAT_LIST_END // must be last - used to validate format type }; @@ -86,6 +92,10 @@ enum audio_encoder { AUDIO_ENCODER_AAC_ELD = 5, AUDIO_ENCODER_VORBIS = 6, + AUDIO_ENCODER_EVRC = 10, + AUDIO_ENCODER_QCELP = 11, + AUDIO_ENCODER_LPCM = 12, + AUDIO_ENCODER_LIST_END // must be the last - used to validate the audio encoder type }; @@ -96,7 +106,11 @@ enum video_encoder { VIDEO_ENCODER_MPEG_4_SP = 3, VIDEO_ENCODER_VP8 = 4, - VIDEO_ENCODER_LIST_END // must be the last - used to validate the video encoder type + VIDEO_ENCODER_LIST_END, // must be the last - used to validate the video encoder type + + VIDEO_ENCODER_LIST_VENDOR_START = 1000, + VIDEO_ENCODER_H265 = 1001, + VIDEO_ENCODER_LIST_VENDOR_END, }; /* @@ -120,6 +134,9 @@ enum media_recorder_states { // Recording is in progress. MEDIA_RECORDER_RECORDING = 1 << 4, + + // Recording is paused. + MEDIA_RECORDER_PAUSED = 1 << 5, }; // The "msg" code passed to the listener in notify. @@ -225,13 +242,13 @@ public: status_t setOutputFile(int fd, int64_t offset, int64_t length); status_t setVideoSize(int width, int height); status_t setVideoFrameRate(int frames_per_second); - status_t setParameters(const String8& params); + virtual status_t setParameters(const String8& params); status_t setListener(const sp<MediaRecorderListener>& listener); status_t setClientName(const String16& clientName); status_t prepare(); status_t getMaxAmplitude(int* max); - status_t start(); - status_t stop(); + virtual status_t start(); + virtual status_t stop(); status_t reset(); status_t init(); status_t close(); @@ -240,7 +257,7 @@ public: status_t setInputSurface(const sp<PersistentSurface>& surface); sp<IGraphicBufferProducer> querySurfaceMediaSourceFromMediaServer(); -private: +protected: void doCleanUp(); status_t doReset(); @@ -260,6 +277,9 @@ private: bool mIsOutputFileSet; Mutex mLock; Mutex mNotifyLock; + +public: + virtual status_t pause(); }; }; // namespace android |