aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/ratecontrol.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix all GNU %LdMichael Niedermayer2011-12-131-1/+1
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* Merge remote-tracking branch 'qatar/master'Michael Niedermayer2011-12-131-2/+2
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * qatar/master: doxygen: misc consistency, spelling and wording fixes vcr1: drop unnecessary emms_c() calls without MMX code Replace all uses of av_close_input_file() with avformat_close_input(). lavf: add avformat_close_input(). lavf: deprecate av_close_input_stream(). lavf doxy: add some basic demuxing documentation. lavf doxy: add some general lavf information. lavf doxy: add misc utility functions to a group. lavf doxy: add av_guess_codec/format to the encoding group. lavf doxy: add core functions to a doxy group. Add basic libavdevice documentation. lavc: convert error_recognition to err_recognition. avconv: update -map option help text x86: Require 7 registers for the cabac asm x86: bswap: remove test for bswap instruction bswap: make generic implementation more compiler-friendly h264: remove useless cast proresdec: fix decode_slice() prototype Conflicts: configure doc/APIchanges ffprobe.c libavcodec/avcodec.h libavcodec/celp_math.h libavcodec/h264.c libavfilter/src_movie.c libavformat/anm.c libavformat/avformat.h libavformat/version.h libavutil/avstring.h libavutil/bswap.h Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * doxygen: misc consistency, spelling and wording fixesDiego Biurrun2011-12-121-2/+2
| |
* | ratecontrol: replace VLAs with malloc/freeMans Rullgard2011-10-221-2/+5
| | | | | | | | | | | | (cherry picked from commit 2c6bd7d1f992989d1cc108534e0896771b86824f) Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge remote-tracking branch 'qatar/master'Michael Niedermayer2011-09-241-0/+2
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * qatar/master: rtp: factorize dynamic payload type fallback flvdec: Ignore the index if it's from a creator known to be different cmdutils: move grow_array out of #if CONFIG_AVFILTER avconv: actually set InputFile.rate_emu ratecontrol: update last_qscale_for sooner Fix unnecessary shift with 9/10bit vertical scaling prores: mark prores as intra-only in libavformat/utils.c:is_intra_only() prores: return more meaningful error values prores: improve error message wording prores: cosmetics: prettyprinting, drop useless parentheses prores: lowercase AVCodec name entry Conflicts: cmdutils.c libavcodec/proresdec_lgpl.c tests/ref/lavfi/pixfmts_scale Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * ratecontrol: update last_qscale_for soonerLuca Barbato2011-09-221-0/+2
| | | | | | | | | | | | | | | | In order to make ratecontrol converge properly update the last_qscale_for values when populating the qscale array. It fixes the issue reported on http://lists.libav.org/pipermail/libav-tools/2011-September/000050.html
* | rc: finetune convergence failure fixMichael Niedermayer2011-09-091-1/+1
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | rc: fix convergence failureMichael Niedermayer2011-09-091-0/+6
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge remote-tracking branch 'qatar/master'Michael Niedermayer2011-07-121-5/+5
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * qatar/master: changelog: misc typo and wording fixes H.264: add filter_mb_fast support for >8-bit decoding doc: Remove outdated comments about gcc 2.95 and gcc 3.3 support. lls: use av_lfg instead of rand() in test program build: remove unnecessary dependency on libs from 'all' target H.264: avoid redundant alpha/beta calculations in loopfilter H.264: optimize intra/inter loopfilter decision mpegts: fix Continuity Counter error detection build: remove unnecessary FFLDFLAGS variable vp8/mt: flush worker thread, not application thread context, on seek. mt: proper locking around release_buffer calls. DxVA2: unbreak build after [657ccb5ac75ce34e62bd67f228d9bd36db72189e] hwaccel: unbreak build Eliminate FF_COMMON_FRAME macro. Conflicts: Changelog Makefile doc/developer.texi libavcodec/avcodec.h libavcodec/h264.c libavcodec/mpeg4videodec.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * Eliminate FF_COMMON_FRAME macro.Diego Biurrun2011-07-111-5/+5
| | | | | | | | | | FF_COMMON_FRAME holds the contents of the AVFrame structure and is also copied to struct Picture. Replace by an embedded AVFrame structure in struct Picture.
| * Replace deprecated FF_*_TYPE symbols with AV_PICTURE_TYPE_*.Stefano Sabatini2011-05-021-33/+33
| | | | | | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
| * Replace deprecated av_get_pict_type_char() with av_get_picture_type_char().Stefano Sabatini2011-05-021-1/+1
| | | | | | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* | replace deprecated FF_*_TYPE symbols with AV_PICTURE_TYPE_*Stefano Sabatini2011-05-021-33/+33
| |
* | replace deprecated av_get_pict_type_char() with av_get_picture_type_char()Stefano Sabatini2011-05-021-1/+1
| |
* | Merge remote branch 'qatar/master'Michael Niedermayer2011-04-301-8/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * qatar/master: Duplicate AMV: disable DR1 and don't override EMU_EDGE Duplicate lavf: inspect more frames for fps when container time base is coarse Wrong and we have correct fix: Fix races in default av_log handler vorbis: Replace sized int_fast integer types with plain int/unsigned. Remove disabled non-optimized code variants. NO bswap.h: Remove disabled code. Remove some disabled printf debug cruft. Replace more disabled printf() calls by av_dlog(). NO tests: Remove disabled code. NO Replace some commented-out debug printf() / av_log() messages with av_dlog(). vorbisdec: Replace some sizeof(type) by sizeof(*variable). NO vf_fieldorder: Replace FFmpeg by Libav in license boilerplate. Conflicts: libavcodec/h264.c libavcodec/vorbisdec.c libavutil/log.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * Remove some disabled printf debug cruft.Diego Biurrun2011-04-291-8/+0
| |
| * Replace FFmpeg with Libav in licence headersMans Rullgard2011-03-191-4/+4
|/ | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* Use hierarchic names convention (prefix them with av_expr) for theStefano Sabatini2010-11-081-3/+3
| | | | | | | | | eval API. More grep-friendly and more consistent with the rest of the FFmpeg API. Originally committed as revision 25708 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Move eval.c and eval.h from libavcodec to libavutil, and make the evalStefano Sabatini2010-06-051-4/+4
| | | | | | API public. Originally committed as revision 23485 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Make ff_parse_expr() and ff_parse_and_eval_expr() return an intStefano Sabatini2010-06-011-4/+4
| | | | | | | | | | | | containing an error code. Allow these functions to convey the reason of the failure to the calling function, failure which is not always due to a parsing error but it may depend for example on a memory problem. Also fix several potential memleaks. Originally committed as revision 23402 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Change eval API to take parent log context and log level offset.Michael Niedermayer2010-05-191-3/+2
| | | | | | this is based on stefanos work, especially all bugs are his fault ;) Originally committed as revision 23201 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Change the order of parameters for ff_eval_expr() andStefano Sabatini2010-05-161-1/+1
| | | | | | | | | | ff_parse_and_eval_expr(), place the names for constants/functions before the corresponding values. This looks more readable, as the user is expected to know the names before the values. Originally committed as revision 23149 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
* Rename ff_parse() to ff_parse_expr().Stefano Sabatini2010-04-121-1/+1
| | | | | | | The new name is more expressive and fits better in the overall naming scheme for the revisited eval API. Originally committed as revision 22858 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Rename ff_parse_eval() to ff_eval_expr().Stefano Sabatini2010-04-111-1/+1
| | | | | | The new name expresses better what the function does. Originally committed as revision 22844 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Rename ff_eval_free() to ff_free_expr().Stefano Sabatini2010-04-111-1/+1
| | | | Originally committed as revision 22834 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Move ff_sqrt() to libavutil/intmath.hMåns Rullgård2010-03-081-0/+1
| | | | Originally committed as revision 22345 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Remove 2 useless assignments from ff_rate_control_init() found by CSA.Michael Niedermayer2009-04-171-4/+1
| | | | Originally committed as revision 18573 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Remove unused variable in modify_qscale() found by CSA.Michael Niedermayer2009-04-171-2/+0
| | | | Originally committed as revision 18563 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Use full internal pathname in doxygen @file directives.Diego Biurrun2009-02-011-1/+1
| | | | | | | Otherwise doxygen complains about ambiguous filenames when files exist under the same name in different subdirectories. Originally committed as revision 16912 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Change semantic of CONFIG_*, HAVE_* and ARCH_*.Aurelien Jacobs2009-01-131-3/+3
| | | | | | They are now always defined to either 0 or 1. Originally committed as revision 16590 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Implement the fields rc_max_available_vbv_use andBaptiste Coudurier2008-11-291-2/+2
| | | | | | | | | | rc_min_vbv_overflow_use in AVCodecContext, and use their values in the ratecontrol code rather than hardcoded ones. See the thread: "[RFC] ratecontrol buffer size magic". Patch by Baptiste Coudurier. Originally committed as revision 15955 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add (additional) const to many global tables.Reimar Döffinger2008-10-021-1/+1
| | | | Originally committed as revision 15515 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Fix rc_eq mem leak.Michael Niedermayer2008-08-161-1/+1
| | | | Originally committed as revision 14788 to svn://svn.ffmpeg.org/ffmpeg/trunk
* mark read-only data as constStefan Gehrer2008-06-241-2/+2
| | | | Originally committed as revision 13947 to svn://svn.ffmpeg.org/ffmpeg/trunk
* cosmetics: XviD is now called Xvid.Diego Biurrun2008-05-271-1/+1
| | | | Originally committed as revision 13465 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Fix typo in variable name: blured --> blurred.Diego Biurrun2008-03-221-6/+6
| | | | Originally committed as revision 12556 to svn://svn.ffmpeg.org/ffmpeg/trunk
* cosmetics: typo fixesDiego Biurrun2008-03-221-1/+1
| | | | Originally committed as revision 12554 to svn://svn.ffmpeg.org/ffmpeg/trunk
* add FF_ prefix to all (frame)_TYPE usageAurelien Jacobs2008-03-091-33/+33
| | | | Originally committed as revision 12399 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Missing constReimar Döffinger2008-02-191-1/+1
| | | | Originally committed as revision 12147 to svn://svn.ffmpeg.org/ffmpeg/trunk
* stupid code (casting of void*) found by checktree.shMichael Niedermayer2007-12-011-1/+1
| | | | Originally committed as revision 11117 to svn://svn.ffmpeg.org/ffmpeg/trunk
* fix timestamps used for ratecontrolMichael Niedermayer2007-09-111-1/+16
| | | | | | | | these were wrong (in pts vs dts sense) when b frames were in use they were also wrong if the average framerate was smaller than 1/timebase resulting in totally wrong final bitrate Originally committed as revision 10477 to svn://svn.ffmpeg.org/ffmpeg/trunk
* prevent assert failure with negative quant_offsetMichael Niedermayer2007-07-291-0/+2
| | | | Originally committed as revision 9830 to svn://svn.ffmpeg.org/ffmpeg/trunk
* cosmetics: misc typo fixesDiego Biurrun2007-07-281-1/+1
| | | | Originally committed as revision 9815 to svn://svn.ffmpeg.org/ffmpeg/trunk
* CONFIG_XVID --> CONFIG_LIBXVIDDiego Biurrun2007-07-031-3/+3
| | | | Originally committed as revision 9466 to svn://svn.ffmpeg.org/ffmpeg/trunk
* misc spelling fixesDiego Biurrun2007-06-121-3/+3
| | | | Originally committed as revision 9289 to svn://svn.ffmpeg.org/ffmpeg/trunk
* check qblur > 1 (prevent assert failure / segfault)Michael Niedermayer2007-05-311-0/+4
| | | | | | fixes sf bug #797610 Originally committed as revision 9166 to svn://svn.ffmpeg.org/ffmpeg/trunk
* typos/grammarDiego Biurrun2007-04-071-1/+1
| | | | Originally committed as revision 8641 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add av_ prefix to clip functionsReimar Döffinger2007-02-251-4/+4
| | | | Originally committed as revision 8122 to svn://svn.ffmpeg.org/ffmpeg/trunk
* cosmetics: Fix another common typo, dependAnt --> dependEnt.Diego Biurrun2007-02-241-2/+2
| | | | Originally committed as revision 8114 to svn://svn.ffmpeg.org/ffmpeg/trunk