aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
Commit message (Collapse)AuthorAgeFilesLines
* Fix FFv1 decoder buffer releasing.Stefano Sabatini2010-11-041-3/+7
| | | | | | | Previously it was releasing the buffer which was returned to the user, which was resulting in a crash in case of direct rendering. Originally committed as revision 25678 to svn://svn.ffmpeg.org/ffmpeg/trunk
* aacdec: consume the audio specific config during LATM parsingJanne Grunau2010-11-041-0/+2
| | | | | | | Spotted by Alex after Carl Eugen found errors some samples. There no errors or noticeable artifacts in the samples I used during development. Originally committed as revision 25676 to svn://svn.ffmpeg.org/ffmpeg/trunk
* H.264 decode: support cropping up to 28 pixels in interlaced mode.Reimar Döffinger2010-11-034-4/+4
| | | | | | | | Contrary to progressive, just being able to crop up to 14/15 pixels is not enough to encode all supported resolutions, and the new behaviour is also consistent with e.g. MPEG-2 etc. Originally committed as revision 25669 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Remove usage of deprecated libavcodec/audioconvert.h functions.Stefano Sabatini2010-11-033-7/+10
| | | | Originally committed as revision 25668 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Fix aspect for 24bpp TM1 samples.Reimar Döffinger2010-11-031-0/+1
| | | | Originally committed as revision 25663 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Fix decoding of 24 bpp TM1 (except for aspect).Reimar Döffinger2010-11-031-6/+10
| | | | Originally committed as revision 25662 to svn://svn.ffmpeg.org/ffmpeg/trunk
* 100l, calculate mb_change_bits_row_size from the update width.Reimar Döffinger2010-11-031-5/+5
| | | | Originally committed as revision 25661 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Support mid-stream resolution/format changes for TM1.Reimar Döffinger2010-11-031-5/+17
| | | | | | This makes it easier to fix playback of 24 bit formats. Originally committed as revision 25660 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add av_get_bits_per_sample_fmt() to libavcore/samplefmt.h andStefano Sabatini2010-11-022-18/+8
| | | | | | deprecate av_get_bits_per_sample_format(). Originally committed as revision 25654 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Implement functions:Stefano Sabatini2010-11-023-42/+15
| | | | | | | | | | | | | av_get_sample_fmt_name() av_get_sample_fmt() av_get_sample_fmt_string() in libavcore, and deprecate the corresponding libavcodec/audioconvert.h functions: avcodec_get_sample_fmt_name() avcodec_get_sample_fmt() avcodec_sample_fmt_string() Originally committed as revision 25653 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Move sample format definitions from libavcodec to libavcore.Stefano Sabatini2010-11-021-13/+16
| | | | Originally committed as revision 25652 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Allow mono encoding with LAME.Thierry Foucu2010-11-021-2/+1
| | | | | | Patch by Thierry Foucu, tfoucu gmail Originally committed as revision 25650 to svn://svn.ffmpeg.org/ffmpeg/trunk
* aacdec: change type of data in decode_audio_specific_config parametersJanne Grunau2010-11-021-1/+1
| | | | | | AVCodecContext.extradata is uint8_t*, silence a warning Originally committed as revision 25644 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add single stream LATM/LOAS decoderJanne Grunau2010-11-025-1/+403
| | | | | | | The decoder is just a wrapper around the AAC decoder. based on patch by Paul Kendall { paul <ät> kcbbs gen nz } Originally committed as revision 25642 to svn://svn.ffmpeg.org/ffmpeg/trunk
* aacdec: pass avctx as logging context for decode_audio_specific_configJanne Grunau2010-11-021-19/+30
| | | | | | | | Use avctx in all called functions. This allows passing a NULL AACContext for LATM since the AACContext is only used in output_configure() which is skipped for LATM parsing. Originally committed as revision 25641 to svn://svn.ffmpeg.org/ffmpeg/trunk
* aacdec: refactor the actual aac decoding code into its own functionJanne Grunau2010-11-021-23/+34
| | | | | | | | aac_decode_frame() remains as AVPacket handling a wrapper. The actual decoding function takes a GetBitContext as input and will be used be the AAC LATM decoder to avoid copying the unaligned AAC bitstream. Originally committed as revision 25640 to svn://svn.ffmpeg.org/ffmpeg/trunk
* aacdec: return consumed bits in decode_audio_specific_configJanne Grunau2010-11-021-2/+2
| | | | Originally committed as revision 25639 to svn://svn.ffmpeg.org/ffmpeg/trunk
* aacdec: add MPEG4AudioConfig as parameter for decode_audio_specific_configJanne Grunau2010-11-021-13/+16
| | | | | | | This will be used by the latm decoder to avoid AACContext changes during audio specific config parsing. Originally committed as revision 25638 to svn://svn.ffmpeg.org/ffmpeg/trunk
* dnxhd_mmx: prefer xmm registers below xmm6 when they are availableRamiro Polla2010-11-021-5/+5
| | | | Originally committed as revision 25634 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Fix possibly exploitable out of buffer writes in msrle_decode_pal4().Michael Niedermayer2010-11-021-1/+1
| | | | | | This fix is minimalistic, that function should be cleaned up by someone. Originally committed as revision 25633 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Fix possibly exploitable buffer overrun in msrle_decode_8_16_24_32().Michael Niedermayer2010-11-021-2/+3
| | | | | | Issue has been reported to me by Gynvael Coldwind Originally committed as revision 25632 to svn://svn.ffmpeg.org/ffmpeg/trunk
* remove impossible condition from msrle_decode_pal4()Michael Niedermayer2010-11-021-4/+2
| | | | Originally committed as revision 25631 to svn://svn.ffmpeg.org/ffmpeg/trunk
* fix indentMichael Niedermayer2010-11-021-26/+26
| | | | Originally committed as revision 25630 to svn://svn.ffmpeg.org/ffmpeg/trunk
* dsputil: Use explicit movzbl instead of movzxİsmail Dönmez2010-11-011-1/+1
| | | | | | | | This fixes compilation with the latest clang trunk version. Patch by İsmail Dönmez, ismail at namtrac dot org Originally committed as revision 25628 to svn://svn.ffmpeg.org/ffmpeg/trunk
* aacenc: Correct spreading calculation for high spreading.Nathan Caldwell2010-11-011-1/+1
| | | | | | | | | | | | | | | | | | | | The 3GPP spec uses the following calculation for high spreading: thr'_spr = max(thr_scaled, s_h(n) * thr_scaled(n-1)) where, n is defined as the current band, and s_h() is defined as "[...] the distance of adjacent bands in Bark and a constant slope that is 15 dB/Bark [...]". This is a little ambiguous as you would assume you want the Bark width of the previous band for this calculation. However, this assumption appears to be incorrect, and you really want the Bark width of the current band. Coincidentally this is exactly what the spec calls for! =P This noticeably improves Tom's Diner at low bitrates (I tested at 64kbps, with mid/side disabled). Patch by: Nathan Caldwell <saintdev@gmail.com> Originally committed as revision 25622 to svn://svn.ffmpeg.org/ffmpeg/trunk
* aacenc: cosmetics: Swap spreading_hi/low name to match the 3GPP spec.Nathan Caldwell2010-11-011-4/+4
| | | | | | Patch by: Nathan Caldwell <saintdev@gmail.com> Originally committed as revision 25621 to svn://svn.ffmpeg.org/ffmpeg/trunk
* lpc_mmx: add xmm registers to clobber listRamiro Polla2010-10-311-0/+2
| | | | Originally committed as revision 25620 to svn://svn.ffmpeg.org/ffmpeg/trunk
* lpc_mmx: merge some asm blocksRamiro Polla2010-10-311-9/+10
| | | | | | | These blocks depended on the compiler keeping xmm registers untouched between them. Originally committed as revision 25619 to svn://svn.ffmpeg.org/ffmpeg/trunk
* sad16_sse2: merge 2 asm blocksRamiro Polla2010-10-311-10/+7
| | | | Originally committed as revision 25617 to svn://svn.ffmpeg.org/ffmpeg/trunk
* xmm_clobbers: list xmm registers first in clobber listRamiro Polla2010-10-314-34/+34
| | | | | | | suncc does not like the leading commas inside the macro, but it has no problem with trailing commas. Originally committed as revision 25615 to svn://svn.ffmpeg.org/ffmpeg/trunk
* idct_sse2_xvid: only mark xmm>=8 as clobbered on x86_64Ramiro Polla2010-10-311-2/+4
| | | | Originally committed as revision 25614 to svn://svn.ffmpeg.org/ffmpeg/trunk
* motion_est_mmx: prefer xmm registers below xmm6 when they are availableRamiro Polla2010-10-311-6/+6
| | | | Originally committed as revision 25612 to svn://svn.ffmpeg.org/ffmpeg/trunk
* dsputil_mmx: add xmm registers to clobber listRamiro Polla2010-10-311-0/+2
| | | | Originally committed as revision 25611 to svn://svn.ffmpeg.org/ffmpeg/trunk
* cosmetics: split long lineRamiro Polla2010-10-311-1/+2
| | | | Originally committed as revision 25610 to svn://svn.ffmpeg.org/ffmpeg/trunk
* fdct_mmx: add xmm registers to clobber listRamiro Polla2010-10-311-0/+3
| | | | Originally committed as revision 25609 to svn://svn.ffmpeg.org/ffmpeg/trunk
* idct_sse2_xvid: add xmm registers to clobber listRamiro Polla2010-10-311-1/+7
| | | | Originally committed as revision 25608 to svn://svn.ffmpeg.org/ffmpeg/trunk
* mpegvideo_mmx: add xmm registers to clobber listRamiro Polla2010-10-312-0/+6
| | | | Originally committed as revision 25607 to svn://svn.ffmpeg.org/ffmpeg/trunk
* dsputil_mmx: prefer xmm registers below xmm6 when they are availableRamiro Polla2010-10-312-17/+17
| | | | Originally committed as revision 25606 to svn://svn.ffmpeg.org/ffmpeg/trunk
* bink: make bink_rlelens static (it's only used in this file)Ramiro Polla2010-10-301-1/+1
| | | | Originally committed as revision 25605 to svn://svn.ffmpeg.org/ffmpeg/trunk
* h264dsp: add xmm registers to clobber listRamiro Polla2010-10-301-0/+16
| | | | Originally committed as revision 25604 to svn://svn.ffmpeg.org/ffmpeg/trunk
* indentRamiro Polla2010-10-281-70/+70
| | | | Originally committed as revision 25598 to svn://svn.ffmpeg.org/ffmpeg/trunk
* h264dsp: merge some more asm blocksRamiro Polla2010-10-281-39/+21
| | | | Originally committed as revision 25597 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Fix 10l leak in ffv1.Michael Niedermayer2010-10-281-0/+4
| | | | Originally committed as revision 25595 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Try to find a bit better initial states in ffv1 2pass.Michael Niedermayer2010-10-281-4/+48
| | | | | | | | | | | | Difference in filesizes to foreman ffv1 version=2, context=1 coder=1 18637016 adv-pass2-g300.avi 18638806 adv-pass1-g300.avi 18640534 ref-pass2-g300.avi 18918214 adv-pass2-g1.avi 18982048 ref-pass2-g1.avi 21516230 adv-pass1-g1.avi Originally committed as revision 25594 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Keep track of how many slices*gops where encoded in ffv1 2 pass.Michael Niedermayer2010-10-281-1/+10
| | | | Originally committed as revision 25593 to svn://svn.ffmpeg.org/ffmpeg/trunk
* factorize variable declaration in ffv1.Michael Niedermayer2010-10-281-2/+1
| | | | Originally committed as revision 25592 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Fix crashes in vorbis decoding found by zzufJason Garrett-Glaser2010-10-271-11/+21
| | | | | | Fixes issue 2322. Originally committed as revision 25591 to svn://svn.ffmpeg.org/ffmpeg/trunk
* aacenc: Remove energy 'normalization' modification from the 3GPP psymodelNathan Caldwell2010-10-271-1/+0
| | | | | | | | | | | | This greatly improves bitrate handling. You will now get within a few kbps of your requested bitrate instead of 20-40kbps higher. There is absolutely no analog to this line in the 3GPP spec, that I can find. patch by Nathan Caldwell saintdev (at) gmail Originally committed as revision 25589 to svn://svn.ffmpeg.org/ffmpeg/trunk
* aacenc: Fix threshold-in-quiet calculation in the 3GPP psymodel.Nathan Caldwell2010-10-271-5/+3
| | | | | | | | | | | | | | Removing the modification vastly improves quality (at a slight bitrate cost) for some samples. castanets.wav is a good example. The closest equivalent I see to the modification in the 3GPP spec is a similar modification (over a specific frequency range) when TNS is used. This also changes the threshold-in-quiet calculation to match the 3GPP spec. patch by Nathan Caldwell saintdev (at) gmail Originally committed as revision 25588 to svn://svn.ffmpeg.org/ffmpeg/trunk
* aacenc: Fix the conditions under which 3GPP pre-echo control is run.Nathan Caldwell2010-10-271-1/+1
| | | | | | | | | | | | | | According to the 3GPP spec: "Thus the pre-echo control is inactive for the first short window (but not all short windows in a short frame) after a start block and for all frames with a stop window sequence." Currently, pre-echo control is only run when the current frame is not a short frame, and the previous frame is not a short frame. patch by Nathan Caldwell saintdev (at) gmail Originally committed as revision 25587 to svn://svn.ffmpeg.org/ffmpeg/trunk