Initial checkin of software AMR NB encoder based on PV source code.
diff --git a/media/libstagefright/OMXCodec.cpp b/media/libstagefright/OMXCodec.cpp
index 9c9787f..5a89b73 100644
--- a/media/libstagefright/OMXCodec.cpp
+++ b/media/libstagefright/OMXCodec.cpp
@@ -21,6 +21,7 @@
#if BUILD_WITH_FULL_STAGEFRIGHT
#include "include/AACDecoder.h"
#include "include/AMRNBDecoder.h"
+#include "include/AMRNBEncoder.h"
#include "include/AMRWBDecoder.h"
#include "include/AVCDecoder.h"
#include "include/MP3Decoder.h"
@@ -306,6 +307,10 @@
&& (flags & kPreferSoftwareCodecs)) {
return new AVCDecoder(source);
}
+ } else {
+ if (!strcasecmp(mime, MEDIA_MIMETYPE_AUDIO_AMR_NB)) {
+ return new AMRNBEncoder(source);
+ }
}
#endif