summaryrefslogtreecommitdiffstats
path: root/libavcodec/lsp.c
Commit message (Collapse)AuthorAgeFilesLines
* avcodec/lsp: Fix undefined shifts in lsp2poly()Michael Niedermayer2019-10-161-2/+2
| | | | | | | | Fixes: left shift of negative value -30635 Fixes: 17689/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_ACELP_KELVIN_fuzzer-5756275014500352 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* Merge commit '41ed7ab45fc693f7d7fc35664c0233f4c32d69bb'Clément Bœsch2016-06-211-1/+1
|\ | | | | | | | | | | | | * commit '41ed7ab45fc693f7d7fc35664c0233f4c32d69bb': cosmetics: Fix spelling mistakes Merged-by: Clément Bœsch <u@pkh.me>
| * cosmetics: Fix spelling mistakesVittorio Giovara2016-05-041-1/+1
| | | | | | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* | lsp: change assert to av_assertMichael Niedermayer2012-09-031-1/+1
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge remote-tracking branch 'qatar/master'Michael Niedermayer2012-08-281-2/+24
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * qatar/master: vc1: export some functions configure: use HOSTCC_C/O in check_host_cc configure: use AS_O setting in check_as configure: use LD_O setting in check_ld() Revert "dsputil: make {add/put/put_signed}_pixels_clamped() non-static." build: Restore dependency of acelp_filters.o on celp_math.o celp_math: Replace duplicate ff_dot_productf() by ff_scalarproduct_c() celp_math: Move ff_cos() to the only place it is used build: Use portable abstraction for linker/hostcc output file syntax configure: Fix shared library creation for OpenBSD vp56: Don't use DECLARE_ALIGN on a typedef name mss1: move code that will be reused by MSS2 decoder into separate file mss1: merge decode_intra() and decode_inter() avprobe: Get rid of ugly casts in the options table vf_hqdn3d: Remove a duplicate inline declaration Conflicts: Makefile configure ffprobe.c libavcodec/Makefile libavcodec/amrnbdec.c libavcodec/amrwbdec.c libavcodec/celp_math.c libavcodec/celp_math.h libavcodec/dsputil.c libavcodec/lsp.c libavcodec/mss1.c libavcodec/ra288.c libavcodec/vc1dec.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * celp_math: Replace duplicate ff_dot_productf() by ff_scalarproduct_c()Diego Biurrun2012-08-271-1/+0
| |
| * celp_math: Move ff_cos() to the only place it is usedDiego Biurrun2012-08-271-0/+24
| |
* | lsp: use av_assertMichael Niedermayer2012-06-281-1/+2
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Optimization of AMR NB and WB decoders for MIPSNedeljko Babic2012-06-111-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | AMR NB and WB decoders are optimized for MIPS architecture. Appropriate Makefiles are changed accordingly. Cnfigure script is changed in order to support optimizations. Optimizations are enabled by default when compiling is done for mips architecture. Appropriate cflags are automatically set. Support for several mips CPUs is added in configure script. New ffmpeg options are added for disabling optimizations. The FFMPEG option --disable-mipsfpu disables MIPS floating point optimizations. The FFMPEG option --disable-mips32r2 disables MIPS32R2 optimizations. The FFMPEG option --disable-mipsdspr1 disables MIPS DSP ASE R1 optimizations. The FFMPEG option --disable-mipsdspr2 disables MIPS DSP ASE R2 optimizations. Signed-off-by: Nedeljko Babic <nbabic@mips.com> Reviewed-by: Vitor Sessak <vitor1001@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge remote-tracking branch 'qatar/master'Michael Niedermayer2011-12-061-1/+1
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * qatar/master: mov: Don't av_malloc(0). avconv: only allocate 1 AVFrame per input stream avconv: fix memleaks due to not freeing the AVFrame for audio h264-fate: remove -strict 1 except where necessary (mr4/5-tandberg). misc Doxygen markup improvements doxygen: eliminate Qt-style doxygen syntax g722: Add a regression test for muxing/demuxing in wav g722: Change bits per sample to 4 g722dec: Signal skipping the lower bits via AVOptions instead of bits_per_coded_sample api-example: update to use avcodec_decode_audio4() avplay: use avcodec_decode_audio4() avplay: use a separate buffer for playing silence avformat: use avcodec_decode_audio4() in avformat_find_stream_info() avconv: use avcodec_decode_audio4() instead of avcodec_decode_audio3() mov: Allow empty stts atom. doc: document preferred Doxygen syntax and make patcheck detect it Conflicts: avconv.c ffplay.c libavcodec/mlpdec.c libavcodec/version.h libavformat/mov.c tests/codec-regression.sh tests/fate/h264.mak Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * misc Doxygen markup improvementsDiego Biurrun2011-12-051-1/+1
| |
* | Restore WIP g729 code that has been remvoed by diego biurrun.Michael Niedermayer2011-09-241-0/+4
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge remote-tracking branch 'qatar/master'Michael Niedermayer2011-07-211-4/+0
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * qatar/master: rv30: return AVERROR(EINVAL) instead of EINVAL build: add -L flags before existing LDFLAGS simple_idct: whitespace cosmetics simple_idct: make repeated code a macro dsputil: remove huge #if 0 block simple_idct: change 10-bit add/put stride from pixels to bytes dsputil: allow 9/10-bit functions for non-h264 codecs dnxhd: rename some data tables dnxhdenc: remove inline from function only called through pointer dnxhdenc: whitespace cosmetics swscale: mark YUV422P10(LE,BE) as supported for output configure: add -xc99 to LDFLAGS for Sun CC Remove unused and non-compiling vestigial g729 decoder Remove unused code under G729_BITEXACT #ifdef. mpegvideo: fix invalid picture unreferencing. dsputil: Remove extra blank line at end. dsputil: Replace a LONG_MAX check with HAVE_FAST_64BIT. simple_idct: add 10-bit version Conflicts: Makefile libavcodec/g729data.h libavcodec/g729dec.c libavcodec/rv30.c tests/ref/lavfi/pixdesc tests/ref/lavfi/pixfmts_copy tests/ref/lavfi/pixfmts_null tests/ref/lavfi/pixfmts_scale tests/ref/lavfi/pixfmts_vflip Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * Remove unused code under G729_BITEXACT #ifdef.Diego Biurrun2011-07-201-4/+0
| | | | | | | | G729_BITEXACT is never set, so the code is all dead code.
* | Merge remote-tracking branch 'qatar/master'Michael Niedermayer2011-07-191-2/+2
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | * qatar/master: simple_idct: simplify some ifdeffery simple_idct: remove code for DCTELEM != int16 Remove VLAs in ff_amrwb_lsp2lpc() fate: make vsynth tests depend on only the relevant vref rtsp: remove disabled code dsputil: restore mistakenly removed hunk of disabled code Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * Remove VLAs in ff_amrwb_lsp2lpc()Mans Rullgard2011-07-181-2/+2
| | | | | | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* | Merge remote-tracking branch 'qatar/master'Michael Niedermayer2011-06-241-3/+3
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * qatar/master: doxygen: Consistently use '@' instead of '\' for Doxygen markup. Use av_printf_format to check the usage of printf style functions Add av_printf_format, for marking printf style format strings and their parameters ARM: enable thumb for Cortex-M* CPUs nsvdec: Propagate error values instead of returning 0 in nsv_read_header(). build: remove SRC_PATH_BARE variable build: move basic rules and variables to main Makefile build: move special targets to end of main Makefile lavdev: improve feedback in case of invalid frame rate/size vfwcap: prefer "framerate_q" over "fps" in vfw_read_header() v4l2: prefer "framerate_q" over "fps" in v4l2_set_parameters() fbdev: prefer "framerate_q" over "fps" in device context bktr: prefer "framerate" over "fps" for grab_read_header() ALSA: implement channel layout for playback. alsa: support unsigned variants of already supported signed formats. alsa: add support for more formats. ARM: allow building in Thumb2 mode Conflicts: common.mak doc/APIchanges libavcodec/vdpau.h libavdevice/alsa-audio-common.c libavdevice/fbdev.c libavdevice/libdc1394.c libavutil/avutil.h Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * doxygen: Consistently use '@' instead of '\' for Doxygen markup.Diego Biurrun2011-06-241-3/+3
| | | | | | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
| * Replace FFmpeg with Libav in licence headersMans Rullgard2011-03-191-4/+4
|/ | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* Move lsp2lpc_sipr() function to common code so it can be reused in aMarcelo Galvăo Póvoa2010-09-071-0/+26
| | | | | | | | AMRWB decoder. Patch by Marcelo Galvăo Póvoa. Originally committed as revision 25062 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Move AMRNB lsf2lsp() function to common code for using in future AMRWB decoder.Marcelo Galvăo Póvoa2010-09-071-0/+8
| | | | | | Patch by Marcelo Galvăo Póvoa Originally committed as revision 25061 to svn://svn.ffmpeg.org/ffmpeg/trunk
* lsp: convert variable-length arrays to fixed sizeMåns Rullgård2010-06-261-3/+3
| | | | | | Max LP order is defined to be 16, fixed-size buffers are OK. Originally committed as revision 23795 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Make lsp2polyf() function non-static for upcoming usage in SIPRVitor Sessak2009-11-241-13/+3
| | | | Originally committed as revision 20602 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Make sorting function used in TwinVQ a shared functionVitor Sessak2009-11-221-0/+9
| | | | Originally committed as revision 20584 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Use doubles in ff_set_min_dist_lsf(). After this patch, AMR can use thisVitor Sessak2009-11-111-1/+1
| | | | | | function with no change in output. Originally committed as revision 20511 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Avoid variable-length array use in ff_acelp_lspd2lpc()Vitor Sessak2009-11-101-1/+3
| | | | Originally committed as revision 20496 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Do not hardcode filter order in ff_acelp_lspd2lpc()Vitor Sessak2009-11-091-11/+10
| | | | Originally committed as revision 20485 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Commit some functions that are used by both SIPR and AMR.Vitor Sessak2009-10-271-0/+8
| | | | | | Based on AMR SoC code by Robert Swain and Colin McQuillan. Originally committed as revision 20392 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Expose QCELP's floating-point LSP-to-LPC functionColin McQuillan2009-08-031-0/+46
| | | | | | | | | | qcelp_lsp exported a single function, ff_acelp_lspd2lpc, which was not specific to qcelp. It can be kept with its fixed-point version ff_acelp_lsp2lpc in lpc.c. Patch by Colin McQuillan ( m.niloc googlemail com ) Originally committed as revision 19571 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add shift argument to MULL() macroMåns Rullgård2008-11-241-1/+1
| | | | | | | | This replaces use of FRAC_BITS in the MULL() definition with a third argument specifying the shift amount. All uses of this macro are updated to pass FRAC_BITS as third argument. Originally committed as revision 15921 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Rename acelp_math.[ch] to celp_math.[ch] to prepare for QCELP decoder merge.Kenan Gillet2008-10-241-1/+1
| | | | | | patch by Kenan Gillet, kenan.gillet gmail com Originally committed as revision 15679 to svn://svn.ffmpeg.org/ffmpeg/trunk
* (cosmetics) Remove incorrect comment.Vladimir Voroshilov2008-08-261-1/+1
| | | | Originally committed as revision 14980 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Fix compilation error.Vladimir Voroshilov2008-05-111-1/+1
| | | | | | | It was introduced after changing input parameter and overlooked during review process. Originally committed as revision 13112 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Replace hardcoded LP filter order with parameter.Vladimir Voroshilov2008-05-111-20/+20
| | | | | | This will allow to reuse the code in the SIPR decoder. Originally committed as revision 13108 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Fixed-point LSP and LPC decoding routines for ACELP-based codecsVladimir Voroshilov2008-04-261-0/+120
Originally committed as revision 12978 to svn://svn.ffmpeg.org/ffmpeg/trunk
OpenPOWER on IntegriCloud