diff options
Diffstat (limited to 'media/libavextensions')
-rw-r--r-- | media/libavextensions/stagefright/AVExtensions.h | 7 | ||||
-rw-r--r-- | media/libavextensions/stagefright/AVUtils.cpp | 12 |
2 files changed, 18 insertions, 1 deletions
diff --git a/media/libavextensions/stagefright/AVExtensions.h b/media/libavextensions/stagefright/AVExtensions.h index 3e51463..4d73f59 100644 --- a/media/libavextensions/stagefright/AVExtensions.h +++ b/media/libavextensions/stagefright/AVExtensions.h @@ -32,6 +32,8 @@ #include <media/stagefright/DataSource.h> #include <common/AVExtensionsCommon.h> #include <system/audio.h> +#include <camera/ICamera.h> +#include <media/mediarecorder.h> namespace android { @@ -141,9 +143,12 @@ struct AVUtils { return mHEVCMuxer; } + virtual bool isAudioMuxFormatSupported(const char *mime); + virtual void cacheCaptureBuffers(sp<ICamera> camera, video_encoder encoder); + virtual const char *getCustomCodecsLocation(); + private: HEVCMuxer mHEVCMuxer; - // ----- NO TRESSPASSING BEYOND THIS LINE ------ DECLARE_LOADABLE_SINGLETON(AVUtils); }; diff --git a/media/libavextensions/stagefright/AVUtils.cpp b/media/libavextensions/stagefright/AVUtils.cpp index 8e7c39d..5113446 100644 --- a/media/libavextensions/stagefright/AVUtils.cpp +++ b/media/libavextensions/stagefright/AVUtils.cpp @@ -143,6 +143,18 @@ void AVUtils::HEVCMuxer::getHEVCCodecSpecificDataFromInputFormatIfPossible( return; } +bool AVUtils::isAudioMuxFormatSupported(const char *) { + return true; +} + +void AVUtils::cacheCaptureBuffers(sp<ICamera>, video_encoder) { + return; +} + +const char *AVUtils::getCustomCodecsLocation() { + return "/etc/media_codecs.xml"; +} + // ----- NO TRESSPASSING BEYOND THIS LINE ------ AVUtils::AVUtils() {} |