Michael Niedermayer
1e78679768
mpegvideo_enc: draw edges on input
...
Improves Motion estimation, avoids using out of picture areas for %16 != 0
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Anton Khirnov
2c54155407
h264: deMpegEncContextize
...
Most of the changes are just trivial are just trivial replacements of
fields from MpegEncContext with equivalent fields in H264Context.
Everything in h264* other than h264.c are those trivial changes.
The nontrivial parts are:
1) extracting a simplified version of the frame management code from
mpegvideo.c. We don't need last/next_picture anymore, since h264 uses
its own more complex system already and those were set only to appease
the mpegvideo parts.
2) some tables that need to be allocated/freed in appropriate places.
3) hwaccels -- mostly trivial replacements.
for dxva, the draw_horiz_band() call is moved from
ff_dxva2_common_end_frame() to per-codec end_frame() callbacks,
because it's now different for h264 and MpegEncContext-based
decoders.
4) svq3 -- it does not use h264 complex reference system, so I just
added some very simplistic frame management instead and dropped the
use of ff_h264_frame_start(). Because of this I also had to move some
initialization code to svq3.
Additional fixes for chroma format and bit depth changes by
Janne Grunau <janne-libav@jannau.net>
Signed-off-by: Anton Khirnov <anton@khirnov.net>
12 years ago
Anton Khirnov
1d0feb5d1a
mpegvideo: split ff_draw_horiz_band().
...
Split out dependency on MpegEncContext.
12 years ago
Anton Khirnov
54974c6298
error_resilience: decouple ER from MpegEncContext
12 years ago
Anton Khirnov
d9ebb00dcb
svq3: remove a pointless if()
...
The H264 context is always uninitialized at this point.
12 years ago
Anton Khirnov
2491f9ee29
h264: remove a pointless if()
...
!encoding is always true, we do not have a H.264 encoder
12 years ago
Anton Khirnov
68f930d218
h264: simplify calls to ff_er_add_slice().
...
partitioned_frame is never set for h264 (as easily seen from git grep).
12 years ago
Anton Khirnov
d2a25c4032
get_buffer(): do not initialize the data.
...
There may be more decoders that rely on this. Those should be found and
fixed.
12 years ago
Diego Biurrun
3594554a06
sparc: dsputil: Simplify high_bit_depth checks
12 years ago
Diego Biurrun
49fe280753
h264idct: Replace duplicate scan8 table by appropriate #include
12 years ago
Clément Bœsch
d5ce725cb3
Fix a few "its" vs "it's" typo.
12 years ago
Vignesh Venkatasubramanian
30c5c45b12
Adding support for parsing BlockAdditional
...
Matroska specification lists support for BlockAdditional element
which is not supported by ffmpeg's matroska parser. This patch
adds grammar definitions for parsing that element (and few other
related elements) and then puts the data in AVPacket.side_data
with new AVPacketSideDataType AV_PKT_DATA_MATROSKA_BLOCKADDITIONAL.
Signed-off-by: Vignesh Venkatasubramanian <vigneshv@google.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
701e9b8254
h264: Use mb itself as memcpy anchor and assert the other anchors position
...
This makes the code more robust against reordering or fields.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Ronald S. Bultje
faf8eca08d
h264: remove clear_blocks call in threading init.
...
Init code in that if statement goes down from 26716 cycles to 26047
cycles, i.e. the removal of the clear_blocks and smaller memcpy()
together save around 670 cycles.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
c230af9bcc
h264: Reset last_pocs in case of reference or frame number inconsistencies
...
This prevents faulty increasing of has_b_frames
Should fix Ticket 2062
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Diego Biurrun
c6507946d4
dsputil: Move STRIDE_ALIGN macro to the only place it is used
12 years ago
Michael Niedermayer
324d96644b
libvorbisdec: Remove AVFrame from context
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
fe84577273
libvorbisdec: set sample type
...
Fixes regression
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Nicolas George
a17ececcc7
libcelt: decode directly to the user-provided AVFrame.
12 years ago
Michael Niedermayer
b2e57eb5a3
mjpegdec: pass nb_components into ljpeg_decode_yuv_scan
...
Fixes null pointer dereference
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Paul B Mahol
8f7c7ff2d6
evrcdec: decode directly to the user-provided AVFrame
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
12 years ago
Paul B Mahol
2cced2a854
paf: decode directly to the user-provided AVFrame
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
12 years ago
Paul B Mahol
9145818ecd
vima: decode directly to the user-provided AVFrame
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
12 years ago
Michael Niedermayer
4f1279154e
shorten: dont leave invalid channel counts in the context.
...
Fixes freeing invalid addresses
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
e1219cdaf9
tiff: Check buffer allocation and pointer increment more carefully in shorts2str() and double2str()
...
Fixes out of array accesses
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
6f9ae391de
faxcompr: Dont read ref when the end has been reached in pass mode
...
Fixes reading over the end
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
1ac0fa50ef
pngdec/filter: dont access out of array elements at the end
...
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Justin Ruggles
205a95f7b5
wmaenc: alloc/free coded_frame instead of keeping it in the WMACodecContext
12 years ago
Justin Ruggles
8ae50d87e7
ws-snd1: decode directly to the user-provided AVFrame
12 years ago
Justin Ruggles
c815ca3641
wma: decode directly to the user-provided AVFrame
12 years ago
Justin Ruggles
5a7288822f
wmavoice: decode directly to the user-provided AVFrame
12 years ago
Justin Ruggles
ee6ca11b65
vorbis: decode directly to the user-provided AVFrame
12 years ago
Justin Ruggles
4a2b26fc1b
tak: decode directly to the user-provided AVFrame
12 years ago
Justin Ruggles
f4a283eec4
wmapro: decode directly to the user-provided AVFrame
12 years ago
Justin Ruggles
f80f8dd4c2
vmdaudio: decode directly to the user-provided AVFrame
12 years ago
Justin Ruggles
903b62cc0b
smackaud: decode directly to the user-provided AVFrame
12 years ago
Justin Ruggles
9873d71f31
wavpack: decode directly to the user-provided AVFrame
12 years ago
Justin Ruggles
3b7d43383f
twinvq: decode directly to the user-provided AVFrame
12 years ago
Justin Ruggles
09d6831f49
sipr: decode directly to the user-provided AVFrame
12 years ago
Justin Ruggles
ad2104ba44
tta: decode directly to the user-provided AVFrame
12 years ago
Justin Ruggles
3997fef952
truespeech: decode directly to the user-provided AVFrame
12 years ago
Justin Ruggles
5d5c248c3d
s302m: decode directly to the user-provided AVFrame
12 years ago
Justin Ruggles
fed74c0ae4
shorten: decode directly to the user-provided AVFrame
12 years ago
Justin Ruggles
79fb2a1f17
ra288: decode directly to the user-provided AVFrame
12 years ago
Justin Ruggles
1b9b6d6e5e
qcelp: decode directly to the user-provided AVFrame
12 years ago
Justin Ruggles
86bfcfcf23
mace: decode directly to the user-provided AVFrame
12 years ago
Justin Ruggles
f7e8c87c02
ra144: decode directly to the user-provided AVFrame
12 years ago
Justin Ruggles
0905c96390
pcm-bluray: decode directly to the user-provided AVFrame
12 years ago
Justin Ruggles
cbeb3ed38d
ralf: decode directly to the user-provided AVFrame
12 years ago
Justin Ruggles
0fe4056f95
nellymoser: decode directly to the user-provided AVFrame
12 years ago