• Home
  • History
  • Annotate
  • only in /frameworks/av/media/libstagefright/codecs/amrnb/enc/
History log of /frameworks/av/media/libstagefright/codecs/amrnb/enc/
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
2720c8b094cfa58de314daa8e5e4fb4fa81fe3b2 29-Feb-2016 Marco Nelissen <marcone@google.com> Verify OMX buffer sizes prior to access

Bug: 27207275
Change-Id: I4412825d1ee233d993af0a67708bea54304ff62d
oftAMRNBEncoder.cpp
808e3d55dfafd6fc8f53827c668668144a706253 11-Nov-2015 Dan Austin <danielaustin@google.com> Disabling signed integer overflow protection.

Likely benign integer overflows in the AMR-NB encoder are
causing SIGABRTs under normal speech processing. Disabling
this protection until bug 25597150 is resolved and further
testing can be performed.

Bug: 25409744
Change-Id: Ib40d2e03b84c73c573eca637253ed68977986b11
ndroid.mk
7a9ca6760b377cead6adcf2abf26ae930490da51 11-Sep-2015 Dan Austin <danielaustin@google.com> Enable fsanitize signed-integer-overflow in AMR-NB encoder

Bug: 23752600
Change-Id: Iae2103c4b9dfa0532093e4d923bdcfb90ddde822
ndroid.mk
ab44ed5712c23577b9dc3ab2ee469f27298b77e5 27-May-2014 Ashok Bhat <ashok.bhat@arm.com> AMR-NB encoder: Add test

The test accepts a raw PCM file as input and generates
.amr file as output.

To run the test, use following command
libstagefright_amrnbenc_test [options] <input pcm file> <output amr file>

Bug: 17722566
Change-Id: I4429af482223a1b28e847f91349900706c468d75
Signed-off-by: Ashok Bhat <ashok.bhat@arm.com>
ndroid.mk
est/amrnb_enc_test.cpp
28af4c3993e18559099401cbf65dade17b80c181 11-Aug-2015 Dan Albert <danalbert@google.com> Don't use `register`.

This causes a build failure with GCC and C++14. Fix by just not using
the register keyword.

"Guideline: Never write register. It's exactly as meaningful as
whitespace."
http://www.drdobbs.com/keywords-that-arent-or-comments-by-anoth/184403859

Change-Id: I275735c55e97e613e1704c1b896793740db8f404
rc/l_negate.cpp
2d0ac425564ff9882ebaac5267d1a04d4af67d00 27-Nov-2014 Bernhard Rosenkränzer <Bernhard.Rosenkranzer@linaro.org> Fix build with clang in C++11 mode

This removes the deprecated register keyword in many places, fixes one
instance of passing '\0' where a char* is expected, and 2 switch type
narrowing issues.

Change-Id: Ie265ac26ff6a61267ad6406dfe237226d97ca9ac
Signed-off-by: Bernhard Rosenkränzer <Bernhard.Rosenkranzer@linaro.org>
rc/autocorr.cpp
rc/c2_9pf.cpp
rc/cl_ltp.cpp
rc/convolve.cpp
rc/cor_h.cpp
rc/cor_h_x.cpp
rc/cor_h_x2.cpp
rc/dtx_enc.cpp
rc/levinson.cpp
rc/pitch_ol.cpp
rc/pre_proc.cpp
rc/set_sign.cpp
b3f9759c8c9437c45b9a34519ce2ea38a8314d4e 24-Nov-2014 Andreas Gampe <agampe@google.com> Stagefright: Fix unused variables, functions, values

For build-system CFLAGS clean-up, remove unused functions and
variables.

Change-Id: Ic3dee56b589ea9a693efa1d72ba394036efff168
ndroid.mk
84333e0475bc911adc16417f4ca327c975cf6c36 08-Feb-2014 Andreas Huber <andih@google.com> warnings be gone.

Change-Id: Ie3bae3f037730e316d7fca12e7a3527973f752ef
ndroid.mk
oftAMRNBEncoder.cpp
da0dc0af0effe9fbfb3ce3187c8472fca2baf3c6 10-Apr-2013 Ying Wang <wangying@google.com> Add liblog

Bug: 8580410
Change-Id: If493d87d60d71be664ad75b140c62acadb75b0d0
ndroid.mk
a5761dcb5f9f017ca9b83ec868565d7ce54a92ac 04-Apr-2013 Andreas Huber <andih@google.com> Fix a number of warnings in stagefright code.

Change-Id: If3edd00d991851797aeccdfe795a4a405e3a2ea3
oftAMRNBEncoder.cpp
64b3fe55f7edd16be32e07c28c2c90f84f3b9b80 17-Aug-2012 Jean-Baptiste Queru <jbq@google.com> Merge "stagefright amrnb: Remove unused leftover source files"
223933e8e7419d0d4431d01e8980592fcafd2404 23-Jun-2011 Martin Storsjo <martin@martin.st> stagefright amrnb: Remove unused leftover source files

This allows getting rid of adding the plain common directory
(not common/include) to the include paths in projects that use
this code, too.

Change-Id: Ifb1fe4fc1f5c6f1264cb2b64f7b78e42b1e7833a
ndroid.mk
6d72a807dc3910ddd0b7c4f85130951dd189e8f5 17-May-2011 Martin Storsjo <martin@martin.st> amrnb: Restart the p_xn pointer when retraversing the array on overflow

This is a safeguard to avoid issues in a rare codepath.

This was committed on the master branch of the opencore
repository in commit f532d145194e474cb30d8644b8eee83873ad24cc,
based on AOSP contribution 10905.

Change-Id: I9688b009bcbe63d88ee5040e883a021aefa30664
rc/g_pitch.cpp
3d51d5cb53cc630709a0ba78d0e60501a675f2d5 13-Jun-2012 James Dong <jdong@google.com> Add NOTICE and MODULE_LICENSE_APACH2 to libs build under /frameworks/av/

Change-Id: I0a3af3e2abdedebd5934f3d941d01c32cfc75e26
related-to-bug: 6647465
ODULE_LICENSE_APACHE2
OTICE
559bf2836f5da25b75bfb229fec0d20d540ee426 28-Mar-2012 James Dong <jdong@google.com> AV Android make files changes

o plus a few file relocation: ActivityManager.cpp/h, SoundPool.h, etc
o remove some runtime dependencies to libandroid, libandroid_runtime, etc

Change-Id: I047a47c5fb361dd5cf85cd98798c39f629a75d10
ndroid.mk
ded61aa958278147b5a150c189f86d025165f095 16-Mar-2012 Andreas Huber <andih@google.com> Remove obsolete software codec header files and amr encoders.

Change-Id: Ifbdf252ee312c9cb5ab29498f1e06dae8f23faf7
MRNBEncoder.cpp
ndroid.mk
6c6b4d0d2b98a7ceee8b697daaf611f8df3254fb 12-Mar-2012 James Dong <jdong@google.com> Switched to use the header files in /frameworks/native
and deleted the duplicate header files in /frameworks/base

o related-to-bug: 6044887

Change-Id: I17e0692d9a9b5c8796ded36677c833ca8ab36795
ndroid.mk
3f791be1032e6c4cc499598dd2be116db6fb33c3 28-Feb-2012 Jean-Baptiste Queru <jbq@google.com> am 254cf597: am 7b6b81f8: am f016dc1b: am f881fa51: Merge "stagefright amr: Avoid C++/C99 for loops with variable declaration"

* commit '254cf5973ebe5ebdce9ef261d826e88ed2f67f58':
stagefright amr: Avoid C++/C99 for loops with variable declaration
7b65e71b662ce3bd7983fbfb62e8dafade5ccc55 27-Feb-2012 Jean-Baptiste Queru <jbq@google.com> am b205a5d8: am 50ee92e9: am d91b744d: am f7f1280e: Merge changes Ib4e27ea3,I4ad55266,Ie32b32c7

* commit 'b205a5d861c5ba31599084a42c7d92549f464dac':
stagefright amrnb: Remove extern from table definitions
stagefright amrnb: Add includes for prototype declarations of tables
stagefright amrnb: Add missing const qualifier to table declarations in headers
f27422a71112e77af77de0da2e60d4deb94a9375 23-Jun-2011 Martin Storsjo <martin@martin.st> stagefright amr: Avoid C++/C99 for loops with variable declaration

This makes the code compileable in C89 mode, too.

Change-Id: I9b76f8bfca148d1aec6081b8db139f351d64cfed
rc/ton_stab.cpp
1ead790eadd0e09a118308caccc7ac37d36f43f3 17-May-2011 Martin Storsjo <martin@martin.st> stagefright amrnb: Remove extern from table definitions

Local prototype declarations are added where no suitable ones are
available in headers.

This fixes warnings when compiling as C - while the source
files are named .cpp, they actually are compileable as pure C.

This was committed on the master branch of the opencore
repository in commit a0acb494ea6682ca966b5ebbd3676c89c56d63a6,
based on AOSP contribution 10303.

Change-Id: Ib4e27ea30302c66e0233e63e5a4652f6339bc940
rc/corrwght_tab.cpp
rc/enc_output_format_tab.cpp
rc/inter_36_tab.cpp
rc/lag_wind_tab.cpp
d95a8462c367a7bea1b4aee24917d3e9ed7e2a48 17-May-2011 Martin Storsjo <martin@martin.st> stagefright amrnb: Add includes for prototype declarations of tables

This was committed on the master branch of the opencore
repository in commit da3d0463c999871ee584a0d750be65be65d19b00,
based on AOSP contribution 10302.

Change-Id: I4ad5526634efecc2d2bb3d2169184b8d4d4d7671
rc/corrwght_tab.cpp
rc/enc_output_format_tab.cpp
rc/inter_36_tab.cpp
rc/lag_wind_tab.cpp
837b1e098a3b321bf1b19f22189d8c8bcdd509a6 24-Feb-2012 Jean-Baptiste Queru <jbq@google.com> am 78fc0c0b: am 428ece23: am c4aa19a5: am ea227787: Merge changes I903353c5,I822dcc74

* commit '78fc0c0bfae913a4a44011225396ae525b335fb1':
stagefright amrnb: Properly negate all values
stagefright amrnb: Fix a bug on architectures where long is 64 bit
de8b924a7f7d104af4243b1dfaef6f4480f93eea 24-Feb-2012 Jean-Baptiste Queru <jbq@google.com> Merge changes I903353c5,I822dcc74

* changes:
stagefright amrnb: Properly negate all values
stagefright amrnb: Fix a bug on architectures where long is 64 bit
f1d5aa162c02a16b7195a43a9bcea4d592600ac4 07-Feb-2012 James Dong <jdong@google.com> Move away from MediaDebug and use ADebug instead

Change-Id: I963a3b6f79a7292891973cbeeaf3378b38629f08
MRNBEncoder.cpp
252353088a5ebf8508fbc01439ff417805ef1417 31-Jan-2012 Andreas Huber <andih@google.com> The software AMR NB encoder is now an OMX component.

Change-Id: I890eab052a7c36409b8b694c964884e28dd8d8fc
ndroid.mk
oftAMRNBEncoder.cpp
oftAMRNBEncoder.h
9a8ded7348c5b2302dd27b285b395416bc842c49 06-Jan-2012 Steve Block <steveblock@google.com> Rename (IF_)LOGE(_IF) to (IF_)ALOGE(_IF)

Change-Id: I1de629b4632a4b3187ca1a28d6416daccd35f924
MRNBEncoder.cpp
aa70226152d2084f85a96b52359dbc8476a86a45 06-Jan-2012 Steve Block <steveblock@google.com> Rename (IF_)LOGW(_IF) to (IF_)ALOGW(_IF)

Change-Id: I8fbdfa7a7581f481968dbb65aa40f7042936d7cb
MRNBEncoder.cpp
29357bc2c0dd7c43ad3bd0c8e3efa4e6fd9bfd47 06-Jan-2012 Steve Block <steveblock@google.com> Rename (IF_)LOGE(_IF) to (IF_)ALOGE(_IF) DO NOT MERGE

See https://android-git.corp.google.com/g/#/c/157220

Bug: 5449033
Change-Id: Ic9c19d30693bd56755f55906127cd6bd7126096c
MRNBEncoder.cpp
5ff1dd576bb93c45b44088a51544a18fc43ebf58 06-Jan-2012 Steve Block <steveblock@google.com> Rename (IF_)LOGW(_IF) to (IF_)ALOGW(_IF) DO NOT MERGE

See https://android-git.corp.google.com/g/157065

Bug: 5449033
Change-Id: I00a4b904f9449e6f93b7fd35eac28640d7929e69
MRNBEncoder.cpp
b05e3b5b3c2d77f6c71631ea538f6190ec61b3d9 27-Oct-2011 James Dong <jdong@google.com> Report call status from AudioSource::start() to file writer

Change-Id: I5109dc87a92170dede4eaa58b039efe6d8b7c330
related-to-bug: 5514288
MRNBEncoder.cpp
e55147f462e04d41bff7ead6e9ea61a5b83bda4b 17-May-2011 Martin Storsjo <martin@martin.st> stagefright amrnb: Properly negate all values

Initially, input values -32768 weren't negated properly.

This was committed on the master branch of the opencore
repository in commit f532d145194e474cb30d8644b8eee83873ad24cc,
based on AOSP contribution 10906.

Change-Id: I903353c5539a8fe94b7fc5f26b95eaeac57df5f4
rc/set_sign.cpp
88cfb59fde78a07ac8797008cf79b22193e983d9 29-Sep-2010 Chia-chi Yeh <chiachi@android.com> AMRNB: use Frame_Type_3GPP defined in frame_type_3gpp.h instead.

This allows gsmamr_enc.h and gsmamr_dec.h to be included in the same
file without conflict definition.

Change-Id: I1c8dac235c122735ba14a1af2fda48c0f8d9f87b
rc/gsmamr_enc.h
3c3763d2ee1cd1fba7fe522fbaf0faca315d8c2a 09-Sep-2010 James Dong <jdong@google.com> HW audio encoder expects timestamp via kKeyTime from each input buffer

- This fixes media server crashes on droid

Change-Id: I7191cadc5275107425ec3ee3d437b2c5295858dc
MRNBEncoder.cpp
caa68a57f0b358b8fbe17447ffa453b9120a8610 03-Sep-2010 James Dong <jdong@google.com> Not all audio source has the drift time information

Change-Id: I74e502376348ca4a6ffaa7492bed35c1355e7e62
MRNBEncoder.cpp
d707fcb3e29707ca4a5935c294ef0b38eb5aba5f 02-Sep-2010 James Dong <jdong@google.com> Calculate audio media drift time from AudioSource

The problem was that the time to receive an output buffer
from an audio encoder is different because the encoder does not
need to read from the source for all output buffers. This leads
to large fluctuation in terms of wall clock duration between two
neighboring audio sample outputs from the audio encoder. As a
result, the media time for the video track after adjustment using
the drifting changes wildly sometimes.

This patch addresses this issue by only updating the media drift
time when an audio source input buffer is read. the wall clock
for the audio track is also calculated at the same time when
the input audio buffer is read at AudioSource.

bug - 2959800

Change-Id: I3174aa182f744784b540f0a7198524d4eee8bd7b
MRNBEncoder.cpp
abd1f4f870925d6776dbe4b930b759a1ab6595ca 21-Jul-2010 Andreas Huber <andih@google.com> Support finer seek control on MediaSources.

related-to-bug: 2858448

Change-Id: Ifb4b13b990fd5889113e47e2c62249ac43391fa1
MRNBEncoder.cpp
d329e21495eda9dbc531fdd0c26c77f1593ac3f4 30-Jun-2010 James Dong <jdong@google.com> Added encoding parameters set up for H263 video encoder

Also:
- Allowed start() call when encoder already starts and stop() call when encoder has not started yet
- Handled default value for audio/video sources/encoders and file output format

Change-Id: I03b2f7d3cf570baa0fd011a8c0ad200f2f2a5da1
MRNBEncoder.cpp
f60cafe0e6aad8f9ce54660fa88b651ae4e749e6 19-Jun-2010 James Dong <jdong@google.com> Audio/video sync during recording (second part)

Change-Id: Iba0b35f57fdeac7ee1da16899406bf4b957a2c8c
MRNBEncoder.cpp
956c553ab0ce72f8074ad0fda2ffd66a0305700c 15-May-2010 James Dong <jdong@google.com> Initial software encoder checkins

Change-Id: I27f387db23594e46384c4eb3a0093ce220bb6b60
MRNBEncoder.cpp
47f729a0543376773070aaeafc12e13eed03f7be 30-Mar-2010 Andreas Huber <andih@google.com> Properly fill in the component name for the software decoders.

Change-Id: I92071481f7ed94922b10856c981e507a9eec4c0c
related-to-bug: 2557787
MRNBEncoder.cpp
b841f14f8e51f2365945281fbfa54ef6a1b1b5a6 12-Dec-2009 Andreas Huber <andih@google.com> Initial checkin of software AMR NB encoder based on PV source code.
MRNBEncoder.cpp
ndroid.mk
rc/amrencode.cpp
rc/amrencode.h
rc/autocorr.cpp
rc/autocorr.h
rc/c1035pf.cpp
rc/c1035pf.h
rc/c2_11pf.cpp
rc/c2_11pf.h
rc/c2_9pf.cpp
rc/c2_9pf.h
rc/c3_14pf.cpp
rc/c3_14pf.h
rc/c4_17pf.cpp
rc/c4_17pf.h
rc/c8_31pf.cpp
rc/c8_31pf.h
rc/calc_cor.cpp
rc/calc_cor.h
rc/calc_en.cpp
rc/calc_en.h
rc/cbsearch.cpp
rc/cbsearch.h
rc/cl_ltp.cpp
rc/cl_ltp.h
rc/cod_amr.cpp
rc/cod_amr.h
rc/convolve.cpp
rc/convolve.h
rc/cor_h.cpp
rc/cor_h.h
rc/cor_h_x.cpp
rc/cor_h_x.h
rc/cor_h_x2.cpp
rc/cor_h_x2.h
rc/corrwght_tab.cpp
rc/dtx_enc.cpp
rc/dtx_enc.h
rc/enc_lag3.cpp
rc/enc_lag3.h
rc/enc_lag6.cpp
rc/enc_lag6.h
rc/enc_output_format_tab.cpp
rc/ets_to_if2.cpp
rc/ets_to_if2.h
rc/ets_to_wmf.cpp
rc/ets_to_wmf.h
rc/g_adapt.cpp
rc/g_adapt.h
rc/g_code.cpp
rc/g_code.h
rc/g_pitch.cpp
rc/g_pitch.h
rc/gain_q.cpp
rc/gain_q.h
rc/gsmamr_enc.h
rc/hp_max.cpp
rc/hp_max.h
rc/inter_36.cpp
rc/inter_36.h
rc/inter_36_tab.cpp
rc/inter_36_tab.h
rc/l_comp.cpp
rc/l_extract.cpp
rc/l_negate.cpp
rc/lag_wind.cpp
rc/lag_wind.h
rc/lag_wind_tab.cpp
rc/lag_wind_tab.h
rc/levinson.cpp
rc/levinson.h
rc/lpc.cpp
rc/lpc.h
rc/ol_ltp.cpp
rc/ol_ltp.h
rc/p_ol_wgh.cpp
rc/pitch_fr.cpp
rc/pitch_fr.h
rc/pitch_ol.cpp
rc/pitch_ol.h
rc/pre_big.cpp
rc/pre_big.h
rc/pre_proc.cpp
rc/pre_proc.h
rc/prm2bits.cpp
rc/prm2bits.h
rc/q_gain_c.cpp
rc/q_gain_c.h
rc/q_gain_p.cpp
rc/q_gain_p.h
rc/qgain475.cpp
rc/qgain475.h
rc/qgain795.cpp
rc/qgain795.h
rc/qua_gain.cpp
rc/s10_8pf.cpp
rc/s10_8pf.h
rc/set_sign.cpp
rc/set_sign.h
rc/sid_sync.cpp
rc/sid_sync.h
rc/sp_enc.cpp
rc/sp_enc.h
rc/spreproc.cpp
rc/spreproc.h
rc/spstproc.cpp
rc/spstproc.h
rc/ton_stab.cpp
rc/ton_stab.h