summaryrefslogtreecommitdiffstats
path: root/libavcodec/pcm.c
Commit message (Collapse)AuthorAgeFilesLines
* lavc decoders: work with refcounted frames.Anton Khirnov2013-03-081-1/+1
|
* pcm: decode directly to the user-provided AVFrameJustin Ruggles2013-02-121-12/+8
|
* lavc: add a wrapper for AVCodecContext.get_buffer().Anton Khirnov2012-12-041-1/+1
| | | | It will be useful in the upcoming transition to refcounted AVFrames.
* pcm: fix decoding of pcm_s16le_planar on big-endianJustin Ruggles2012-11-201-2/+4
| | | | | | The sample count is decremented by the DECODE() macro and needs to be reset in each loop iteration. Also, DECODE() increments the src pointer so that does not need to be done separately.
* pcmdec: use planar sample format for pcm_s16le_planarJustin Ruggles2012-11-191-9/+10
|
* lavc: move SANE_NB_CHANNELS to internal.h and use it in the PCM decodersJustin Ruggles2012-11-011-4/+2
|
* pcm: define AVCodec instances only for enabled codecsMans Rullgard2012-10-221-37/+45
| | | | | | | This defines an AVCodec only if the corresponding CONFIG option is enabled instead of using the broad CONFIG_ENCODERS/DECODERS. Signed-off-by: Mans Rullgard <mans@mansr.com>
* Move av_reverse table to libavcodecDiego Biurrun2012-10-121-5/+6
| | | | It is only used in that library.
* pcmdec: use planar sample format for pcm_lxfJustin Ruggles2012-10-091-18/+15
|
* Replace all CODEC_ID_* with AV_CODEC_ID_*Anton Khirnov2012-08-071-94/+94
|
* pcmenc: set correct bitrate valueMans Rullgard2012-05-171-0/+1
| | | | | | | This fixes a bogus bitrate value in the header of WAV files with alaw/ulaw audio. Signed-off-by: Mans Rullgard <mans@mansr.com>
* pcm: K&R formatting cosmeticsAneesh Dogra2012-04-041-129/+136
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* check for coded_frame allocation failure in several audio encodersJustin Ruggles2012-02-251-0/+2
|
* audio encoders: do not set coded_frame->key_frame.Justin Ruggles2012-02-251-1/+0
| | | | it is already set in avcodec_alloc_frame()
* pcmenc: Do not set avpkt->size.Justin Ruggles2012-02-011-1/+0
| | | | It is already the correct size as set by ff_alloc_packet().
* pcmenc: use AVCodec.encode2()Justin Ruggles2012-01-151-10/+17
|
* avcodec: Add avcodec_encode_audio2() as replacement for avcodec_encode_audio()Justin Ruggles2012-01-151-0/+1
| | | | | | | | This allows audio encoders to optionally take an AVFrame as input and write encoded output to an AVPacket. This also adds AVCodec.encode2() which will also be usable by video and subtitle encoders once support is implemented in the public functions.
* pcmenc: set frame_size to 0.Justin Ruggles2012-01-111-1/+1
| | | | | This indicates that the actual frame size is based on the buf_size passed to avcodec_encode_audio().
* Add avcodec_decode_audio4().Justin Ruggles2011-12-021-17/+25
| | | | | | Deprecate avcodec_decode_audio3(). Implement audio support in avcodec_default_get_buffer(). Implement the new audio decoder API in all audio decoders.
* pcmdec: remove unneeded resetting of samples pointerJustin Ruggles2011-11-231-3/+0
|
* pcmdec: fix output buffer size check by calculating the actual output sizeJustin Ruggles2011-10-261-4/+11
| | | | prior to decoding.
* pcmdec: move codec-specific variable declarations to the corresponding codecJustin Ruggles2011-10-261-2/+11
| | | | blocks.
* pcmdec: return buf_size instead of src-buf.Justin Ruggles2011-10-261-7/+3
| | | | | The values will always be the same, so this change eliminates an unneeded variable. It also gets rid of the need to reset src when memcpy() is used.
* avcodec: remove the Zork PCM encoder.Justin Ruggles2011-10-261-10/+1
| | | | | | The Zork PCM decoder does not decode the 1 sample we have correctly, therefore the encoder based on the decoder is also incorrect. There is no good reason to keep the encoder.
* pcm_zork: use AV_SAMPLE_FMT_U8 instead of shifting all samples by 8.Justin Ruggles2011-10-261-11/+11
|
* pcmenc: remove unneeded sample_fmt check.Justin Ruggles2011-10-261-5/+0
| | | | It is already checked by avcodec_open2().
* pcmdec: move number of channels check to pcm_decode_init()Justin Ruggles2011-10-261-5/+5
|
* pcmdec: remove unnecessary check for sample_fmt changeJustin Ruggles2011-10-261-5/+0
|
* pcmdec: move DVD PCM bits_per_coded_sample check near to the code that setsJustin Ruggles2011-10-261-5/+7
| | | | the sample size.
* pcmdec: do not needlessly set *data_size to 0Justin Ruggles2011-10-261-1/+0
|
* pcm: reduce pointer type castingMans Rullgard2011-10-131-40/+37
| | | | | | | | | Making 'samples' a pointer to uint8_t simplifies the DECODE macro and reduces the amount of type casting overall. This also fixes some signed overflows on left shift. Signed-off-by: Mans Rullgard <mans@mansr.com>
* Remove statements immediately following unconditional jumpsMans Rullgard2011-07-031-1/+0
| | | | | | This removes a number of compiler warnings. Signed-off-by: Mans Rullgard <mans@mansr.com>
* pcm: Add const to cast in ENCODE macro.Diego Biurrun2011-04-191-1/+1
| | | | | This fixes a lot of warnings of the sort: libavcodec/pcm.c:105: warning: cast discards qualifiers from pointer target type
* Replace FFmpeg with Libav in licence headersMans Rullgard2011-03-191-4/+4
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* Remove final semicolon from some macrosMans Rullgard2011-02-101-3/+3
| | | | | | This avoids double semicolons after macro expansion. Signed-off-by: Mans Rullgard <mans@mansr.com>
* Add ff_ prefix to data symbols of encoders, decoders, hwaccel, parsers, bsf.Diego Elio Pettenò2011-01-261-2/+2
| | | | | | | None of these symbols should be accessed directly, so declare them as hidden. Signed-off-by: Mans Rullgard <mans@mansr.com>
* Don't declare a pcm_dvd encoder.Diego Elio Pettenò2011-01-251-1/+1
| | | | | | | | | | The PCM_DVD encoder would be left unused, as allcodecs.c properly declared it as being decoder-only, but it would still be built into the object file. Since there is no block of code to properly encode this PCM format, it's not a full codec. Signed-off-by: Mans Rullgard <mans@mansr.com>
* Do not crash for illegal sample size, fixes issue 2502.Daniel Kang2011-01-111-0/+5
| | | | | | Patch by Daniel Kang, daniel.d.kang at gmail Originally committed as revision 26309 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Replace deprecated symbols SAMPLE_FMT_* with AV_SAMPLE_FMT_*, and enumStefano Sabatini2010-11-121-28/+28
| | | | | | SampleFormat with AVSampleFormat. Originally committed as revision 25730 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add pcm_lxf, a decoder for the 20-bit planar PCM format used in LXFTomas Härdin2010-10-011-1/+25
| | | | Originally committed as revision 25280 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Use "const" qualifier for pointers that point to input data ofReimar Döffinger2010-07-241-7/+7
| | | | | | | audio encoders. This is purely for clarity/documentation purposes. Originally committed as revision 24481 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Use designated initialisers for pcm codec structPeter Ross2010-07-161-20/+16
| | | | Originally committed as revision 24264 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Set bits_per_raw_sample in the pcm decoder.Justin Ruggles2010-06-101-0/+4
| | | | Originally committed as revision 23566 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Remove explicit filename from Doxygen @file commands.Diego Biurrun2010-04-201-1/+1
| | | | | | | | Passing an explicit filename to this command is only necessary if the documentation in the @file block refers to a file different from the one the block resides in. Originally committed as revision 22921 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Allow hardcoding of ulaw and alaw tables.Reimar Döffinger2010-04-011-76/+3
| | | | Originally committed as revision 22762 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Define AVMediaType enum, and use it instead of enum CodecType, whichStefano Sabatini2010-03-301-2/+2
| | | | | | is deprecated and will be dropped at the next major bump. Originally committed as revision 22735 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Move ff_reverse in libavcodec to av_reverse in libavutil.Francesco Lavra2009-11-091-5/+5
| | | | | | Patch by Francesco Lavra, francescolavra interfree it Originally committed as revision 20484 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Make sample_fmts and channel_layouts compound literals const to reduce size ofReimar Döffinger2009-09-061-2/+2
| | | | | | .data section. Originally committed as revision 19787 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Replace WORDS_BIGENDIAN with HAVE_BIGENDIANMåns Rullgård2009-07-261-4/+4
| | | | Originally committed as revision 19508 to svn://svn.ffmpeg.org/ffmpeg/trunk
* IndentMichael Niedermayer2009-04-191-2/+2
| | | | Originally committed as revision 18627 to svn://svn.ffmpeg.org/ffmpeg/trunk
OpenPOWER on IntegriCloud