Anton Khirnov
b2c31710c9
lavc: move CODEC_FLAG_NORMALIZE_AQP to mpegvideo
11 years ago
Michael Niedermayer
1fd5c7f1ee
avcodec/ratecontrol: use av_malloc_array()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years ago
wm4
f6774f905f
mpegvideo: operate with pointers to AVFrames instead of whole structs
...
The most interesting parts are initialization in ff_MPV_common_init() and
uninitialization in ff_MPV_common_end().
ff_mpeg_unref_picture and ff_thread_release_buffer have additional NULL
checks for Picture.f, because these functions can be called on
uninitialized or partially initialized Pictures.
NULL pointer checks are added to ff_thread_release_buffer() stub function.
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
11 years ago
Michael Niedermayer
b4356c9cc2
avcodec/ratecontrol: make (mc_)mb_var_sum(_last) 64bit
...
This avoids hypothetical integer overflows
11 years ago
Michael Niedermayer
e92a78a409
avcodec/mpegvideo: make mc_mb_var_sum / mb_var_sum 64bit
...
This avoids a hypothetical integer overflow with very high resolution video
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years ago
Vittorio Giovara
e0c16e4e32
mpegvideo: move mpegvideo formats-related defines to mpegutils.h
11 years ago
Michael Niedermayer
d8fb170da2
avcodec/ratecontrol: give some trivial tips in case of buffer underflows
...
See Ticket2725
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years ago
Michael Niedermayer
f099cdaba3
avcodec/ratecontrol: silence "warning: expected_bits may be used uninitialized in this function"
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Diego Biurrun
6fee1b90ce
avcodec: Add av_cold attributes to init functions missing them
12 years ago
Diego Biurrun
c242bbd8b6
Remove unnecessary dsputil.h #includes
12 years ago
Diego Biurrun
76b19a3984
Fix a number of incorrect intmath.h #includes.
12 years ago
Luca Barbato
f61272f0ef
ratecontrol: K&R cosmetic formatting
...
Signed-off-by: Diego Biurrun <diego@biurrun.de>
12 years ago
Diego Biurrun
511cf612ac
miscellaneous typo fixes
12 years ago
Michael Niedermayer
f1470ca685
ratecontrol: Fix assertion failure on mismatching 2pass file.
...
Fixes Ticket582
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
391f323615
rc: fix 10l typo in rc_max_available_vbv_use calculation
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Diego Biurrun
1218777ffd
avcodec: Convert some commented-out printf/av_log instances to av_dlog
12 years ago
Diego Biurrun
9c6cf7f2c9
avcodec: Drop silly and/or broken printf debug output
12 years ago
Michael Niedermayer
0ea65bbeee
ratecontrol: change a commented printf to av_log
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
50dba71b7d
ratecontrol: fix get_fps() argument
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
ce7876cbf4
ratecontrol: Dynamically choose a default for rc_max_available_vbv_use
...
This improves handling of small buffer sizes
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
a990a30883
ratecontrol: correct predictor in case of stuffing
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Anton Khirnov
36ef5369ee
Replace all CODEC_ID_* with AV_CODEC_ID_*
12 years ago
Ronald S. Bultje
89b81a1c88
mpegvideo: remove VLAs
...
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Diego Biurrun
4cc2920dd2
flvdec: remove incomplete, disabled seeking code
13 years ago
Michael Niedermayer
e8c63981e5
ratecontrol: Use ticks_per_frame to calculate fps.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
9e34adfc02
RC: Fix initial buffer occupancy.
...
Fixes Ticket880
Regression since bf174a70cd
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
9aeaf62903
Fix all GNU %Ld
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Diego Biurrun
58c42af722
doxygen: misc consistency, spelling and wording fixes
13 years ago
Mans Rullgard
9c48a7cc52
ratecontrol: replace VLAs with malloc/free
...
(cherry picked from commit 2c6bd7d1f992989d1cc108534e0896771b86824f)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Luca Barbato
fe896ec2f9
ratecontrol: estimate twice the qscale values
...
This had been the fix used by Michael Niedermayer to solve the
ratecontrol convergence issue.
13 years ago
Luca Barbato
d554b33efe
ratecontrol: update last_qscale_for sooner
...
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
13 years ago
Michael Niedermayer
73e0ec2ff4
rc: finetune convergence failure fix
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
ed14517c23
rc: fix convergence failure
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Diego Biurrun
657ccb5ac7
Eliminate FF_COMMON_FRAME macro.
...
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.
14 years ago
Stefano Sabatini
ce5e49b0c2
replace deprecated FF_*_TYPE symbols with AV_PICTURE_TYPE_*
14 years ago
Stefano Sabatini
301183d9be
replace deprecated av_get_pict_type_char() with av_get_picture_type_char()
14 years ago
Stefano Sabatini
975a1447f7
Replace deprecated FF_*_TYPE symbols with AV_PICTURE_TYPE_*.
...
Signed-off-by: Diego Biurrun <diego@biurrun.de>
14 years ago
Stefano Sabatini
6209669de4
Replace deprecated av_get_pict_type_char() with av_get_picture_type_char().
...
Signed-off-by: Diego Biurrun <diego@biurrun.de>
14 years ago
Diego Biurrun
2e15305b70
Remove some disabled printf debug cruft.
14 years ago
Mans Rullgard
2912e87a6c
Replace FFmpeg with Libav in licence headers
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Stefano Sabatini
d2af7205a1
Use hierarchic names convention (prefix them with av_expr) for the
...
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
14 years ago
Stefano Sabatini
0b99215c0e
Move eval.c and eval.h from libavcodec to libavutil, and make the eval
...
API public.
Originally committed as revision 23485 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Stefano Sabatini
9ace13b416
Make ff_parse_expr() and ff_parse_and_eval_expr() return an int
...
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
15 years ago
Michael Niedermayer
2b65bb45b5
Change eval API to take parent log context and log level offset.
...
this is based on stefanos work, especially all bugs are his fault ;)
Originally committed as revision 23201 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Stefano Sabatini
edd259f92f
Change the order of parameters for ff_eval_expr() and
...
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
15 years ago
Diego Biurrun
ba87f0801d
Remove explicit filename from Doxygen @file commands.
...
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
15 years ago
Stefano Sabatini
1235429c27
Rename ff_parse() to ff_parse_expr().
...
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
15 years ago
Stefano Sabatini
4565caf120
Rename ff_parse_eval() to ff_eval_expr().
...
The new name expresses better what the function does.
Originally committed as revision 22844 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Stefano Sabatini
f8fea468b2
Rename ff_eval_free() to ff_free_expr().
...
Originally committed as revision 22834 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Måns Rullgård
94ca624fbc
Move ff_sqrt() to libavutil/intmath.h
...
Originally committed as revision 22345 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago