Michael Niedermayer
24e3f44aed
EC: fix dest index for non 420 chroma.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
70d54392f5
lowres2 support.
...
The new lowres support is limited to decoders where lowres decoding
is possible in high quality.
I was not able to measure any speed difference, but if one is found
the 2-3 lines that might affect speed can be made compile time conditional
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Mans Rullgard
2bcbd98459
Remove lowres video decoding
...
This feature is complex, of questionable utility, and slows down
normal decoding.
Signed-off-by: Mans Rullgard <mans@mansr.com>
13 years ago
Michael Niedermayer
903ccf71b7
error_concealment: Check that the reference is not NULL
...
In normal picture decoding this does not need to be checked but as
error concealment is run in the case of errors the availability of
references is less certain. This may be fixed differently at some
point so that all references are always filled in before the EC
code, in which case this should then be changed to an assert()
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
b066046046
error_concealment: make sure mbaff flags are 0 as interlaced is not supported.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
b7c2358f62
error_concealment: switch asserts mostly to av_asserts.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
71c2a70cbf
error_concealment: Prevent FPEs in case of corrupted input.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
cc415956a4
error_conceal: fix FPE in guess_dc() with huge sizes.
...
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
eff2399f24
Revert "error_resilience: initialize s->block_index[]."
...
This reverts commit 6193ff6854
.
This change is unneeded.
13 years ago
Ronald S. Bultje
6193ff6854
error_resilience: initialize s->block_index[].
...
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org
13 years ago
Diego Biurrun
47c0ac96aa
Replace AVFrame pointer casts by proper struct member accesses.
13 years ago
Martin Storsjö
efd29844eb
mpegvideo: Add ff_ prefix to nonstatic functions
...
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Michael Niedermayer
c77be3a35a
error concealment: initialize block index.
...
Fixes CVE-2011-3941 (out of bounds write)
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Donald Ovcharov
ac84f2edd4
error_resilience: K&R formatting cosmetics
...
Signed-off-by: Diego Biurrun <diego@biurrun.de>
13 years ago
Diego Biurrun
5ea20630b4
Fix a bunch of platform name and other typos.
13 years ago
Diego Biurrun
3dc99a18d4
cosmetics: drop some pointless parentheses
13 years ago
Diego Biurrun
8fd35b1aac
Fix a bunch of typos.
13 years ago
Michael Niedermayer
a40f43db64
error_concealment: optimize guess_dc()
...
Fixes Ticket811
Bug found by: Oana Stratulat
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Luca Barbato
63ccd46687
lavc: introduce ER_MB_END and ER_MB_ERROR
...
Simplify a little error resilience calls
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
13 years ago
Luca Barbato
5bf2ac2b37
error_resilience: use the ER_ namespace
...
Add the namespace to {AC_,DC_,MV_}{END,ERROR} macros
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
13 years ago
Diego Biurrun
58c42af722
doxygen: misc consistency, spelling and wording fixes
13 years ago
Dustin Brody
5b22d6e132
lavc: convert error_recognition to err_recognition.
...
Signed-off-by: Anton Khirnov <anton@khirnov.net>
13 years ago
Diego Biurrun
da9cea77e3
Fix a bunch of common typos.
13 years ago
Mans Rullgard
39b0165f9e
er: replace VLA with malloc/free
...
(cherry picked from commit 5c2d016a85453f121285d125ed049a8cf492855a)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Laurent Aimar
e8ac80fb2c
error_resilience: fix the check for missing references in ff_er_frame_end() for H264
...
Signed-off-by: Janne Grunau <janne-libav@jannau.net>
13 years ago
Laurent Aimar
e1d5bbeb39
Fix the check for missing references in ff_er_frame_end() for H264.
...
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
Ronald Bultje
20153fb8f6
error_resilience: skip last-MV predictor step if MVs are not available.
...
Fixes crashes when playing broken MPEG2-TS streams.
14 years ago
Ronald Bultje
d42aaa802e
error_resilience: actually add counter when adding a MV predictor.
...
Without, the predictor isn't actually used.
14 years ago
Alexander Strange
6a9c859444
H264/MPEG frame-level multi-threading.
...
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
14 years ago
Michael Niedermayer
b8a4b0152a
error concealment: check last pictures motion_val before using it.
...
Fixes NULL pointer dereference.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Michael Niedermayer
3732c48304
error_concealment: Use previous pictures motion vectors when the current ones have been lost.
...
Looks better for some cases, worse for others, overall not much difference.
Its more correct though.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Multiple Authors
a811ec7cb5
Merging branch 'ffmpeg-mt/master'
...
Just some cosmetics & comments, the only functional change
"error_resilience: use s->last_picture for accessing last MVs."
Is so buggy that it needs a full rewrite, guess -1.0 PSNR loss wasnt
enough for ronald to realize there was a problem.
14 years ago
Stefano Sabatini
ce5e49b0c2
replace deprecated FF_*_TYPE symbols with AV_PICTURE_TYPE_*
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
Michael Niedermayer
7b9e98173c
Revert "Eliminate pointless '#if 1' statements without matching '#else'."
...
no comment
This reverts commit e6ff064845
.
Conflicts:
libavcodec/dsputil.c
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Diego Biurrun
e6ff064845
Eliminate pointless '#if 1' statements without matching '#else'.
14 years ago
Mans Rullgard
2912e87a6c
Replace FFmpeg with Libav in licence headers
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 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
Diego Biurrun
e5d2bdec11
Add rectangle.h #include for fill_rectangle().
...
Originally committed as revision 22877 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Michael Niedermayer
c28112fab6
Make sure the EC code does not attempt to use inter based concealment if there
...
is no reference frame available. (this can happen because the EC code will attempt
to use reference frames even for I/IDR frames)
Originally committed as revision 22732 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Michael Niedermayer
fc4a2d1e8c
Change ref_index structure so it matches how its organized in h264.
...
Also revert the related error concealment hotfix.
Originally committed as revision 22640 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Aurelien Jacobs
3546fa8d87
fix compilation with --disable-everything --enable-decoder=mpeg2video
...
Originally committed as revision 22612 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Michael Niedermayer
b297129bdb
Hotfix for regtest-error failure
...
a proper fix appears to require changing h263/mpeg2/motion est to index ref_index like
h264. Ill do this change and then revert this hotfix but it will take a bit time.
Originally committed as revision 22608 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Michael Niedermayer
673fc6388f
Error concealment of h264 with multiple references.
...
Originally committed as revision 22603 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Michael Niedermayer
68f0bc7e62
Use H264s MC instead of mpeg4-asp qpel for h264 error resilience.
...
Originally committed as revision 22572 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Michael Niedermayer
686c781766
Make sure all mvs of a mb are set in the error concealment code.
...
Originally committed as revision 22520 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Michael Niedermayer
bb4fcfa395
Ensure that the deblock filter accesses the correct MVs for h264.
...
Originally committed as revision 22517 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Michael Niedermayer
2c4bc23e7a
Fix guess_mv() so that it works correctly with 4x4 MV blocks.
...
Originally committed as revision 22485 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Michael Niedermayer
358b5b1a59
Get rid of mb2b8_xy and b8_stride, change arrays organized based on b8_stride to
...
ones based on mb_stride in h264.
about 20 cpu cycles faster overall per MB
Originally committed as revision 22065 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago