summaryrefslogtreecommitdiff
path: root/libavcodec/libopencore-amr.c
Commit message (Collapse)AuthorAge
* cosmetics: Fix spelling mistakesVittorio Giovara2016-05-04
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* libopencore-amr: Fix ff_dlog()/av_log() invocationsDiego Biurrun2016-05-03
|
* lavc: AV-prefix all codec capabilitiesVittorio Giovara2015-07-27
| | | | | | Express bitfields more simply. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* Gather all coded_frame allocations and free functions to a single placeVittorio Giovara2015-07-20
| | | | | | | | | | | | | | Allocating coded_frame is what most encoders do anyway, so it makes sense to always allocate and free it in a single place. Moreover a lot of encoders freed the frame with av_freep() instead of the correct API av_frame_free(). This bring uniformity to encoder behaviour and prevents applications from erroneusly accessing this field when not allocated. Additionally this helps isolating encoders that export information with coded_frame, and heavily simplifies its deprecation. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* lavc: Replace av_dlog and tprintf with internal macrosVittorio Giovara2015-04-19
|
* lavc: use a separate field for exporting audio encoder paddingAnton Khirnov2014-10-13
| | | | | | | | | | | | | | Currently, the amount of padding inserted at the beginning by some audio encoders, is exported through AVCodecContext.delay. However - the term 'delay' is heavily overloaded and can have multiple different meanings even in the case of audio encoding. - this field has entirely different meanings, depending on whether the codec context is used for encoding or decoding (and has yet another different meaning for video), preventing generic handling of the codec context. Therefore, add a new field -- AVCodecContext.initial_padding. It could conceivably be used for decoding as well at a later point.
* cosmetics: Group .name and .long_name together in codec/format declarationsDiego Biurrun2013-10-03
|
* av_log_missing_feature() ---> avpriv_report_missing_feature()Diego Biurrun2013-03-13
|
* lavc: remove disabled FF_API_OLD_ENCODE_AUDIO cruftAnton Khirnov2013-03-09
|
* libopencore-amr: Add the missing 3rd argument of ff_get_buffer()Yusuke Nakamura2013-03-08
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* lavc decoders: work with refcounted frames.Anton Khirnov2013-03-08
|
* libopencore-amrwb: Make AMR-WB ifdeffery more preciseDiego Biurrun2013-02-17
| | | | | | | | The library might provide an encoder in the future, so it's better to check for the presence of the decoder rather than just the library. CC: libav-stable@libav.org Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* libopencore-amr: Conditionally compile decoder and encoder bitsDiego Biurrun2013-02-17
| | | | | CC: libav-stable@libav.org Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* libopencore-amrnb: cosmetics: Group all encoder-related code togetherDiego Biurrun2013-02-17
| | | | | CC: libav-stable@libav.org Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* libopencore-amr: decode directly to the user-provided AVFrameJustin Ruggles2013-02-12
|
* lavc: Fix assignments in if() when calling ff_af_queue_addMichael Niedermayer2013-01-14
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* lavc: add a wrapper for AVCodecContext.get_buffer().Anton Khirnov2012-12-04
| | | | It will be useful in the upcoming transition to refcounted AVFrames.
* Include libavutil/channel_layout.h instead of libavutil/audioconvert.hJustin Ruggles2012-11-11
| | | | Also reorder some other #include when applicable.
* libopencore-amr: Check the return value of amr_decode_fix_avctxMartin Storsjö2012-11-07
| | | | | | | | | | | | | This allows getting rid of redundant checks later in the codec specific init functions. Move the check to before actually initializing the decoder lib, to simplify error handling. This fixes a case of returning a value from a void function, present since d40dab907. Signed-off-by: Martin Storsjö <martin@martin.st>
* libopencore-amr: set channel layout for amr-nb or if not set by the userJustin Ruggles2012-11-01
|
* avopt: Store defaults for AV_OPT_TYPE_INT in the i64 union memberMartin Storsjö2012-09-04
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* Don't include common.h from avutil.hMartin Storsjö2012-08-15
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* Replace all CODEC_ID_* with AV_CODEC_ID_*Anton Khirnov2012-08-07
|
* Improve descriptiveness of a number of codec and container long namesDiego Biurrun2012-07-30
|
* cosmetics: Align codec declarationsMartin Storsjö2012-04-06
| | | | | | | Also break some long lines, remove codec function placeholder comments and add spaces in sample/pixel format lists. Signed-off-by: Martin Storsjö <martin@martin.st>
* libopencore-amrnbenc: use AVCodec.encode2()Justin Ruggles2012-03-21
|
* libopencore-amr: do not set AVCodecContext.frame_sizeJustin Ruggles2012-03-05
| | | | It is not necessary
* libopencore-amrnbenc: fix end-of-stream handlingJustin Ruggles2012-03-04
| | | | | | Use CODEC_CAP_DELAY and CODEC_CAP_SMALL_LAST_FRAME to properly pad and flush the encoder at the end of encoding. This is needed in order to have all input samples decoded.
* check for coded_frame allocation failure in several audio encodersJustin Ruggles2012-02-25
|
* Add avcodec_decode_audio4().Justin Ruggles2011-12-02
| | | | | | Deprecate avcodec_decode_audio3(). Implement audio support in avcodec_default_get_buffer(). Implement the new audio decoder API in all audio decoders.
* libopencore-amr: check output buffer size before decodingJustin Ruggles2011-10-26
|
* libopencore-amr: remove unneeded buf_size==0 check.Justin Ruggles2011-10-26
| | | | | avcodec_decode_audio3() already checks it before sending the packet to the decoder.
* libopencore-amr: remove unneeded frame_count field.Justin Ruggles2011-10-26
| | | | Use AVCodecContext.frame_number instead.
* AVOptions: rename FF_OPT_TYPE_* => AV_OPT_TYPE_*Anton Khirnov2011-10-12
|
* lavc: use designated initialisers for all codecs.Anton Khirnov2011-07-29
| | | | It's more readable and less prone to breakage.
* opencore-amr: Add missing initializer braces to shut up gcc warning.Diego Biurrun2011-07-05
| | | | | This fixes the warning: libavcodec/libopencore-amr.c:91: warning: missing braces around initializer
* libopencore-amr, libvo-amrwbenc: Allow enabling DTX via private AVOptionsMartin Storsjö2011-04-14
| | | | | | | DTX, discontinuous transmission, allows emitting frames with comfort noise when no voice is detected in the input audio. Signed-off-by: Martin Storsjö <martin@martin.st>
* libopencore-amr, libvo-amrwbenc: Only check the bitrate when changedMartin Storsjö2011-04-14
| | | | | | | | | | | Also rename the incorrectly named enc_bitrate to enc_mode, use the enc_bitrate variable for storing the last chosen bitrate. This avoids continuous warning log messages if not using an exactly matching bitrate, while still allowing changing bitrate at any point. Signed-off-by: Martin Storsjö <martin@martin.st>
* libopencore-amr, libvo-amrwbenc: Find the closest matching bitrateMartin Storsjö2011-04-14
| | | | | | | Dynamically print the supported bitrates from the local table, instead of using a hardcoded log message. Signed-off-by: Martin Storsjö <martin@martin.st>
* libopencore-amr: Cosmetics: Rewrap and alignMartin Storsjö2011-04-13
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* libopencore-amr, libvo-amrbwenc: Rename variables and functionsMartin Storsjö2011-04-13
| | | | | | Avoid camelCase names for functions and variables. Signed-off-by: Martin Storsjö <martin@martin.st>
* libopencore-amr: Convert commented out debug logging into av_dlogMartin Storsjö2011-04-13
| | | | | | Also add the avctx as logging context. Signed-off-by: Martin Storsjö <martin@martin.st>
* libopencore-amr: Remove an unused state variableMartin Storsjö2011-04-13
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* libopencore-amr: Remove a useless local variableMartin Storsjö2011-04-13
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* libopencore-amr, libvo-amrwbenc: Make the bitrate/mode mapping array static ↵Martin Storsjö2011-04-13
| | | | | | const Signed-off-by: Martin Storsjö <martin@martin.st>
* libopencore-amr, libvo-amrwbenc: Return proper error codes in most placesMartin Storsjö2011-04-13
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* libopencore-amr: Don't print carriage returns in log messagesMartin Storsjö2011-04-13
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* libopencore-amr: Remove an old workaround for libamr header weirdnessMartin Storsjö2011-04-13
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* libopencore-amr: Make the opaque encoder pointer a void*Martin Storsjö2011-04-13
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* libopencore-amr: Remove unused code fragmentsMartin Storsjö2011-04-13
| | | | | | | This parts are heritage from the encoder part from the old libamr code removed in SVN rev 19365. Signed-off-by: Martin Storsjö <martin@martin.st>