Jason Garrett-Glaser
cd2769c142
VP5/6/8: tweak some arithcoder inlining
...
Always inline the arithmetic coder, except in the case of header-parsing stuff,
in which case don't inline it at all to save code size.
Originally committed as revision 24677 to svn://svn.ffmpeg.org/ffmpeg/trunk
14 years ago
Alex Converse
55aa55f2e1
vorbisdec: Return AVERROR(ENOMEM) on malloc() failure.
...
This is especially important because classifs can be very large.
Originally committed as revision 24676 to svn://svn.ffmpeg.org/ffmpeg/trunk
14 years ago
Alex Converse
366d919016
vorbisdec: Prevent a potential integer overflow.
...
If sizeof uint_fast8_t > 1 and sizeof size_t <= 4, the expression that mallocs
classifs is susceptible to integer overflow.
Originally committed as revision 24675 to svn://svn.ffmpeg.org/ffmpeg/trunk
14 years ago
Diego Biurrun
83abdf5ff0
The VP8 decoder does not depend on cabac.o.
...
Originally committed as revision 24674 to svn://svn.ffmpeg.org/ffmpeg/trunk
14 years ago
Diego Biurrun
efbc455915
The VP8 decoder does not depend on vp56.o and vp56data.o.
...
Originally committed as revision 24673 to svn://svn.ffmpeg.org/ffmpeg/trunk
14 years ago
Diego Biurrun
2e2ca50655
Remove redundant h264pred.o from VP8 objects list.
...
It is already selected through the H264DSP dependency of VP8.
Originally committed as revision 24672 to svn://svn.ffmpeg.org/ffmpeg/trunk
14 years ago
Jason Garrett-Glaser
370b622a45
VP8: eliminate a dereference in coefficient decoding
...
Originally committed as revision 24671 to svn://svn.ffmpeg.org/ffmpeg/trunk
14 years ago
Jason Garrett-Glaser
f311208cf1
VP8: much faster DC transform handling
...
A lot of the time the DC block is empty: don't do the WHT in this case.
A lot of the rest of the time, there's only one coefficient: make a special
DC-only transform for that case.
When the block is empty, don't incorrectly mark luma DCT blocks as having DC
coefficients.
Originally committed as revision 24670 to svn://svn.ffmpeg.org/ffmpeg/trunk
14 years ago
Måns Rullgård
c934562c12
vorbisdec: change a uint_fast32_t to 'unsigned', fix llvm-gcc build
...
Originally committed as revision 24669 to svn://svn.ffmpeg.org/ffmpeg/trunk
14 years ago
Jason Garrett-Glaser
827d43bb9d
VP8: move zeroing of luma DC block into the WHT
...
Lets us do the zeroing in asm instead of C.
Also makes it consistent with the way the regular iDCT code does it.
Originally committed as revision 24668 to svn://svn.ffmpeg.org/ffmpeg/trunk
14 years ago
Pascal Massimino
d2840fa49c
only store intra prediction modes on the boundary for keyframes, not as a plane.
...
inter-frame behaviour unchanged.
Originally committed as revision 24664 to svn://svn.ffmpeg.org/ffmpeg/trunk
14 years ago
Benoit Fouet
497d7991b5
Change a doxy comment to a normal one.
...
Originally committed as revision 24662 to svn://svn.ffmpeg.org/ffmpeg/trunk
14 years ago
Benoit Fouet
1aa15491f2
Fix doxygen comments.
...
/**\u2264 => /**<
Originally committed as revision 24661 to svn://svn.ffmpeg.org/ffmpeg/trunk
14 years ago
Jason Garrett-Glaser
10bf2eebbe
VP8: simplify token_prob handling
...
~1.5% faster decode_block_coeffs
Originally committed as revision 24659 to svn://svn.ffmpeg.org/ffmpeg/trunk
14 years ago
Pascal Massimino
c22b4468a6
prevent access to vp8_coeff_band[16]
...
Originally committed as revision 24656 to svn://svn.ffmpeg.org/ffmpeg/trunk
14 years ago
Ronald S. Bultje
6341838f3c
Use word-writing instead of dword-writing (with two cached but otherwise
...
unchanged bytes) in the horizontal simple loopfilter. This makes the filter
quite a bit faster in itself (~30 cycles less on Core1), probably mostly
because we don't need a complex 4x4 transpose, but only a simple byte
interleave. Also allows using pextrw on SSE4, which speeds up even more
(e.g. 25% faster on Core i7).
Originally committed as revision 24638 to svn://svn.ffmpeg.org/ffmpeg/trunk
14 years ago
Nick Brereton
ace7f813cd
dca: fix dynrange coefficient in xch
...
Patch by Nick Brereton
Originally committed as revision 24637 to svn://svn.ffmpeg.org/ffmpeg/trunk
14 years ago
Justin Ruggles
6768beb4a8
cosmetics: rename output_* to write_*
...
Originally committed as revision 24634 to svn://svn.ffmpeg.org/ffmpeg/trunk
14 years ago
Justin Ruggles
3d2cd42f8a
Simplify verbatim mode fallback by checking the frame size before writing.
...
Originally committed as revision 24632 to svn://svn.ffmpeg.org/ffmpeg/trunk
14 years ago
Justin Ruggles
2249a7f312
Change max_framesize for small final frame.
...
Originally committed as revision 24631 to svn://svn.ffmpeg.org/ffmpeg/trunk
14 years ago
Justin Ruggles
7c29a5de25
Calculate an exact frame size before writing. Now the buffer size requirements
...
can be known exactly, so larger frame sizes can be safely encoded without buffer
overwrite.
Originally committed as revision 24630 to svn://svn.ffmpeg.org/ffmpeg/trunk
14 years ago
Justin Ruggles
675eb677c5
cosmetics: rename find_subblock_rice_params() to find_subframe_rice_params()
...
Originally committed as revision 24629 to svn://svn.ffmpeg.org/ffmpeg/trunk
14 years ago
Justin Ruggles
089c18f315
Reduce number of input parameters to find_subblock_rice_params().
...
Originally committed as revision 24628 to svn://svn.ffmpeg.org/ffmpeg/trunk
14 years ago
Justin Ruggles
d309f01950
10l: fix bit count for frame header
...
Originally committed as revision 24627 to svn://svn.ffmpeg.org/ffmpeg/trunk
14 years ago
Justin Ruggles
b22f9d6535
Simplify fallback to verbatim mode encoding.
...
Originally committed as revision 24626 to svn://svn.ffmpeg.org/ffmpeg/trunk
14 years ago
Justin Ruggles
45e2908757
cosmetics: line wrap and vertical alignment
...
Originally committed as revision 24625 to svn://svn.ffmpeg.org/ffmpeg/trunk
14 years ago
Justin Ruggles
8fbb8d31d8
Combine calc_rice_params_fixed() and calc_rice_params_lpc() into a single
...
function.
Originally committed as revision 24624 to svn://svn.ffmpeg.org/ffmpeg/trunk
14 years ago
Justin Ruggles
43b3273e5b
Remove unneeded wrapper function.
...
Originally committed as revision 24622 to svn://svn.ffmpeg.org/ffmpeg/trunk
14 years ago
Justin Ruggles
0f5cc12c4f
Remove duplicate code by adding a flag for encoding in verbatim mode.
...
Originally committed as revision 24621 to svn://svn.ffmpeg.org/ffmpeg/trunk
14 years ago
Stefano Sabatini
05236ed735
Use av_fill_image_pointers/linesizes in place of ff_fill_pointer/linesize,
...
and drop the the ff_ variants at the next major bump.
Originally committed as revision 24620 to svn://svn.ffmpeg.org/ffmpeg/trunk
14 years ago
Justin Ruggles
93d65e3d92
Estimate frame size during encoding.
...
Originally committed as revision 24619 to svn://svn.ffmpeg.org/ffmpeg/trunk
14 years ago
Vitor Sessak
fa738b3ad1
Remove x86/mmx.h. It is not used anymore and has been deprecated for years.
...
Originally committed as revision 24618 to svn://svn.ffmpeg.org/ffmpeg/trunk
14 years ago
Vitor Sessak
0913a92a59
Fix compilation with --disable-yasm. 10l to me.
...
Originally committed as revision 24617 to svn://svn.ffmpeg.org/ffmpeg/trunk
14 years ago
Vitor Sessak
de4bc44abb
Convert deinterlacing MMX code to YASM
...
Originally committed as revision 24615 to svn://svn.ffmpeg.org/ffmpeg/trunk
14 years ago
Justin Ruggles
eb96f1698a
cosmetics: indentation
...
Originally committed as revision 24612 to svn://svn.ffmpeg.org/ffmpeg/trunk
14 years ago
Justin Ruggles
520effb9b5
Combine output_subframe() and output_subframes().
...
Originally committed as revision 24611 to svn://svn.ffmpeg.org/ffmpeg/trunk
14 years ago
Justin Ruggles
fb443a6f3b
Remove unneeded variable.
...
Originally committed as revision 24610 to svn://svn.ffmpeg.org/ffmpeg/trunk
14 years ago
Justin Ruggles
724f34716b
cosmetics: indentation
...
Originally committed as revision 24609 to svn://svn.ffmpeg.org/ffmpeg/trunk
14 years ago
Justin Ruggles
6d263f41ae
Combine output_subframe_verbatim() and output_subframe_lpc().
...
Originally committed as revision 24608 to svn://svn.ffmpeg.org/ffmpeg/trunk
14 years ago
Justin Ruggles
6266cfb4ce
Combine and simplify output_residual() and output_subframe_lpc().
...
Originally committed as revision 24607 to svn://svn.ffmpeg.org/ffmpeg/trunk
14 years ago
Justin Ruggles
fc001d6cc1
cosmetics: reindent
...
Originally committed as revision 24606 to svn://svn.ffmpeg.org/ffmpeg/trunk
14 years ago
Justin Ruggles
175a57113f
Combine and simplify output_subframe_fixed() and output_subframe_lpc().
...
Originally committed as revision 24605 to svn://svn.ffmpeg.org/ffmpeg/trunk
14 years ago
Justin Ruggles
89912b5ff1
Combine and simplify output_subframe_constant() and output_subframe_verbatim().
...
Originally committed as revision 24604 to svn://svn.ffmpeg.org/ffmpeg/trunk
14 years ago
Justin Ruggles
1f1c05b09f
Pass FlacSubframe to output_subframe_* instead of channel number.
...
Originally committed as revision 24603 to svn://svn.ffmpeg.org/ffmpeg/trunk
14 years ago
Justin Ruggles
15f537ed53
cosmetics: change FlacEncodeContext variable name from ctx to s in several
...
places for consistency.
Originally committed as revision 24602 to svn://svn.ffmpeg.org/ffmpeg/trunk
14 years ago
Justin Ruggles
871a24f3bf
Set coded_frame->pts in the FLAC encoder
...
Originally committed as revision 24601 to svn://svn.ffmpeg.org/ffmpeg/trunk
14 years ago
Justin Ruggles
27e3418844
Do not need to set coded_frame->key_frame = 1 because it is already set in
...
avcodec_alloc_frame().
Originally committed as revision 24600 to svn://svn.ffmpeg.org/ffmpeg/trunk
14 years ago
Justin Ruggles
7fe0c7c823
Move debug logging of compression options to a single function.
...
Originally committed as revision 24599 to svn://svn.ffmpeg.org/ffmpeg/trunk
14 years ago
Justin Ruggles
e08ec71480
Add 2 failed memory allocation checks
...
Originally committed as revision 24598 to svn://svn.ffmpeg.org/ffmpeg/trunk
14 years ago
Justin Ruggles
e35b689ebd
cosmetics: pretty-print flacenc.c
...
Originally committed as revision 24597 to svn://svn.ffmpeg.org/ffmpeg/trunk
14 years ago