Commit Graph

5985 Commits

Author SHA1 Message Date
Michael Niedermayer
815c81c0a7 30% faster h264_chroma_mc8_c(), this also prevents a possible out of
array read.

Originally committed as revision 11288 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-12-21 10:01:04 +00:00
Ivo van Poorten
91fd7398f4 typo ;)
Originally committed as revision 11287 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-12-21 00:22:40 +00:00
Michael Niedermayer
ba66ae94a0 Document a few more structure change rules with relation to ABI/API.
Originally committed as revision 11283 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-12-20 09:59:07 +00:00
Michael Niedermayer
252f17e292 Document structure change rules with relation to ABI/API.
Originally committed as revision 11281 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-12-20 09:43:01 +00:00
Justin Ruggles
1408352ada Add option for user to scale the amount of dynamic range compression which is
applied by the audio decoder, and use that option in the AC3 decoder.

Originally committed as revision 11280 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-12-20 00:55:08 +00:00
Reinhard Nissl
8293fea57e Fix problem with multithreaded decoding, introduced by r11214.
Patch by Reinhard Nissl: rnissl gmx de

Originally committed as revision 11275 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-12-19 23:03:52 +00:00
Diego Biurrun
379374ea11 cosmetics: Sort some more entries.
Originally committed as revision 11265 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-12-19 08:14:21 +00:00
Michael Niedermayer
0cd60abf7b A little more doxygenization.
Originally committed as revision 11263 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-12-18 19:40:57 +00:00
Michael Niedermayer
9b4dd1b879 Document Motion_Est_IDs.
Originally committed as revision 11262 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-12-18 19:40:08 +00:00
Michael Niedermayer
3e0b7b5627 Remove old variable with the next major version bump.
Originally committed as revision 11261 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-12-18 14:51:55 +00:00
Baptiste Coudurier
0c39c38b14 add bitrate helper to choose all dnxhd variants
Originally committed as revision 11260 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-12-18 13:52:07 +00:00
Baptiste Coudurier
86404ffba2 avoid infinite loop if pixel format conversion does not exist
Originally committed as revision 11259 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-12-18 13:49:58 +00:00
Michael Niedermayer
1ba8f5ebac another comment ->doxy
Originally committed as revision 11257 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-12-17 19:29:13 +00:00
Michael Niedermayer
bafc102b60 ME default does not belong to the ME type enum.
Originally committed as revision 11256 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-12-17 19:26:11 +00:00
Michael Niedermayer
0e373b95b3 change some normal comments to doxy ones
Originally committed as revision 11255 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-12-17 19:25:13 +00:00
Kostya Shishkov
b0797570df Correct spatial prediction mode in RV30/40 for vertical left direction
and add its version that does not rely on down left neighbour subblock.

Originally committed as revision 11252 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-12-17 18:43:34 +00:00
Michael Niedermayer
5492209aa9 clarify FIXME
Originally committed as revision 11251 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-12-17 18:23:18 +00:00
Reimar Döffinger
841f39a7f3 Add FF_OPT_TYPE_BINARY and use it to add a cryptokey option
Originally committed as revision 11250 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-12-17 17:41:24 +00:00
wg
3426d575bf Fix crash in PCM decoder when number of channels is not set.
Patch by "wg": video06 malloc de
See Issue298

Originally committed as revision 11249 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-12-17 10:41:47 +00:00
Justin Ruggles
03726b7042 Skip dialog normalization. It shouldn't be used by the decoder, and there is
not currently a clean way to pass the value to the user.

Originally committed as revision 11246 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-12-17 01:09:00 +00:00
Justin Ruggles
224bc440b2 Revert commit made in revision 11228. I'm getting some strange results in the
downmixed output that I can't quite figure out.

Originally committed as revision 11245 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-12-17 01:03:19 +00:00
Aurelien Jacobs
407c50a024 move FLAC mmx dsp to its own file
Originally committed as revision 11244 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-12-16 22:20:47 +00:00
Diego Biurrun
5d81d64175 cosmetics: comment typo fixes
Originally committed as revision 11232 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-12-16 17:22:09 +00:00
Luca Barbato
c49e23e2a4 Make strict altivec parsers happy (gcc-4.3 and others)
Originally committed as revision 11231 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-12-16 14:31:38 +00:00
Kostya Shishkov
6cd1500d39 RV40 decoder should use availability cache
Originally committed as revision 11230 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-12-16 12:45:38 +00:00
Kostya Shishkov
a52ef6a894 RV30/40 decoding core
Originally committed as revision 11229 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-12-16 12:44:25 +00:00
Justin Ruggles
b40211ff67 downmix before the IMDCT if no block switching is used
Originally committed as revision 11228 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-12-16 04:25:50 +00:00
Reimar Döffinger
15c57ced2f Add 'l' suffix where it is necessary because type can not always be
inferred from arguments. Fixes compilation with Intel compiler

Originally committed as revision 11227 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-12-15 23:08:15 +00:00
Andreas Öman
30dc554153 Add missing '\n' to log format text
Originally committed as revision 11224 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-12-15 10:03:49 +00:00
Andreas Öman
79328e9cc7 Make DCA decoder honor avctx->request_channels in a more advisory way.
Originally committed as revision 11221 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-12-15 07:01:33 +00:00
Andreas Öman
6708eefe55 Make AC3 decoder honor avctx->request_channels
Originally committed as revision 11220 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-12-15 07:00:19 +00:00
Kostya Shishkov
626464fb53 Make fill_rectangle() available for other decoders
Originally committed as revision 11219 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-12-15 06:06:16 +00:00
Jeff Downs
9a1feb8608 Fix brain-dead parts of r11216, specifically:
Actually unreference removed pics
And check for too many reference frames as originally intended, not equal
to max reference frames.

Originally committed as revision 11218 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-12-14 22:49:30 +00:00
Jeff Downs
aeb59e839f Ensure that our total reference frame count does not exceed the SPS
max frame count, which is limited to less than the size of the
reference buffers, thereby preventing overflow.
Part of fix for issue 281.

Originally committed as revision 11216 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-12-14 06:25:23 +00:00
Jeff Downs
41f7e2d11d Actually return with an error condition if we're being asked to deal with too
many reference frames. Also check max num ref frames against our internal
ref buffer sizes.
Part of fix for roundup issue 281

Originally committed as revision 11215 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-12-14 05:48:27 +00:00
Jeff Downs
33e0073129 Make h264 decoder conform to requirements of mpegvideo's MPV_frame_start.
Namely, that it should not be called if you are starting to decode a B
frame without any reference pictures.
Prevents an endless allocation cycle in MPV_frame_start that will end in
picture buffer overflow and abort.
Fixes roundup issue 216.

Originally committed as revision 11214 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-12-14 05:37:23 +00:00
Reimar Döffinger
603972fc53 Add a missing break, before av_set_number would always return NULL for
FF_OPT_TYPE_RATIONAL options instead of the corresponding AVOption

Originally committed as revision 11213 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-12-13 19:00:53 +00:00
Jeff Downs
36e097bce4 Fix non_zero_count_cache for deblocking in field pictures.
Based on original patch by Martin Zlomek martin.zlomek a email D cz
ffmpeg-devel thread: H264: Fix non_zero_count_cache for deblocking in fields
Fri, 30 Nov 2007 9:58:23

Originally committed as revision 11212 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-12-13 00:50:47 +00:00
Aurelien Jacobs
1b77e87756 add required include to make this file self-contained
Originally committed as revision 11211 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-12-12 22:45:03 +00:00
Måns Rullgård
a309073bf4 use av_log_get/set_level()
Originally committed as revision 11209 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-12-12 21:48:50 +00:00
Michael Niedermayer
55b9e69a31 av_*_next() API for libavcodec
Originally committed as revision 11204 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-12-12 18:40:11 +00:00
Panagiotis Issaris
8540e8c3ec Show which bitstreamfilters were compiled in, similar to the protocols etc
enumerations.

Originally committed as revision 11203 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-12-12 11:52:27 +00:00
Diego Biurrun
571bf37f6d typo/clarification
Originally committed as revision 11201 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-12-11 18:47:04 +00:00
Kostya Shishkov
3a18218e7b Enable 4x4 IDCT for FASTTX=0 mode in WMV3
Originally committed as revision 11199 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-12-09 05:55:45 +00:00
Kostya Shishkov
91823a6efd Add 4x4 IDCT
Originally committed as revision 11198 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-12-09 05:54:59 +00:00
Justin Ruggles
e2270b4e1e cosmetics: rename ac3 decoder variables
Originally committed as revision 11197 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-12-09 03:28:10 +00:00
Justin Ruggles
e59cc20593 cosmetics: rename common ac3 variables
Originally committed as revision 11196 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-12-09 03:27:14 +00:00
Justin Ruggles
8001d92345 cosmetics: vertical align after last commit
Originally committed as revision 11195 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-12-09 03:25:42 +00:00
Justin Ruggles
5ce2134258 cosmetics: rename ac3 bit allocation variables
Originally committed as revision 11194 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-12-09 03:23:04 +00:00
Justin Ruggles
66ecf18e38 cosmetics: rename ac3 tables
Originally committed as revision 11193 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-12-09 03:21:33 +00:00
Aurelien Jacobs
59e6f60a99 add ff_ prefix to all simple_idct symbols
Originally committed as revision 11192 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-12-08 21:21:11 +00:00
Kostya Shishkov
98f48ce157 Reindent after last commit
Originally committed as revision 11191 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-12-08 11:46:09 +00:00
Kostya Shishkov
51ece6842f Update Altivec variant of vc1_inv_trans_8x4
Originally committed as revision 11190 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-12-08 11:45:42 +00:00
Kostya Shishkov
8df7cfe97c Use IDCT functions when FASTTX=0
Originally committed as revision 11189 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-12-08 10:50:50 +00:00
Kostya Shishkov
d2e45f33a4 Switch VC-1 decoder to output decoded residual immediately.
Originally committed as revision 11188 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-12-08 10:41:18 +00:00
Kostya Shishkov
30ea307544 Rename some tables
Originally committed as revision 11187 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-12-08 09:15:44 +00:00
Kostya Shishkov
4978618b6b Use existing function for VLC reading
Originally committed as revision 11185 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-12-07 05:56:07 +00:00
Kostya Shishkov
b192e56461 Check decoded dimensions for validity
Originally committed as revision 11184 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-12-07 05:52:27 +00:00
Kostya Shishkov
ea61e33a7f Intra types will be stored in int8_t array
Originally committed as revision 11183 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-12-07 05:50:23 +00:00
Kostya Shishkov
52b917536d Add decoder flags
Originally committed as revision 11182 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-12-07 05:48:34 +00:00
Kostya Shishkov
da71cdadc2 Replace table with its H.263 counterpart
Originally committed as revision 11181 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-12-07 05:47:24 +00:00
Kostya Shishkov
dbf7150441 Update tables for RV40 decoder
Originally committed as revision 11175 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-12-06 17:12:02 +00:00
Michael Niedermayer
1918057c8a prevent warnings about functions being possibly unused
Originally committed as revision 11174 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-12-06 08:38:49 +00:00
Michael Niedermayer
9a3bb2b89c thank you for your efforts to keep my code clean, but i would like to
keep the functions below as they are usefull for debugging, testing,
experiments and development

revert
r11048 | diego | 2007-11-17 00:15:39 +0100 (Sat, 17 Nov 2007) | 4 lines

Remove unused functions, fixes the warnings:
snow.c:1163: warning: 'spatial_compose53i' defined but not used
snow.c:1313: warning: 'spatial_compose97i' defined but not used

Originally committed as revision 11173 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-12-06 02:02:41 +00:00
Panagiotis Issaris
b17270878e Verify long_ref_count!=0. Fix issue 281.
Originally committed as revision 11171 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-12-05 18:02:48 +00:00
Alexander Strange
bc2bc41bb8 Fix missing chroma in version 3 STR.
Closes issue 290
Patch by Alexander Strange: astrange ithinksw com

Originally committed as revision 11170 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-12-05 13:11:18 +00:00
Michael Niedermayer
b180d9fe99 fix decoding of the first frame of gray.mov
Originally committed as revision 11169 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-12-05 11:36:06 +00:00
Jeff Downs
cf653d0811 Initialize function pointers used by error resilience code before any
potential error return from decode_slice_header.

Fixes issue 284.

Originally committed as revision 11168 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-12-05 05:24:54 +00:00
Kostya Shishkov
ae4ca617e3 RV40 decoder specific functions
Originally committed as revision 11163 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-12-04 17:41:46 +00:00
Diego Biurrun
cedb83a671 colour --> color in variable names
Originally committed as revision 11159 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-12-03 13:33:48 +00:00
Diego Biurrun
a660c52a7e cosmetics: comment spelling fixes
Originally committed as revision 11157 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-12-03 13:01:53 +00:00
Diego Biurrun
f2c68f9c7e cosmetics: spelling fixes
Originally committed as revision 11155 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-12-03 11:03:16 +00:00
Michael Niedermayer
3d86e370d8 make rc_buffer_size apply to audio as well
Originally committed as revision 11150 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-12-03 10:02:26 +00:00
Kostya Shishkov
fda767bb4f Rename function to reflect its action
Originally committed as revision 11146 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-12-03 06:59:48 +00:00
Michael Niedermayer
b81f2b3d2f simplify
Originally committed as revision 11141 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-12-03 01:06:00 +00:00
Michael Niedermayer
24cdc39e9d make the AVOption code work with strings instead of crash
Originally committed as revision 11140 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-12-03 01:03:54 +00:00
Reimar Döffinger
77777f0dd8 Some spelling fixes in comments
Originally committed as revision 11138 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-12-02 22:04:21 +00:00
Reimar Döffinger
b639896915 Use the correct "const float *" type for variable instead of casting const away.
Originally committed as revision 11136 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-12-02 21:12:43 +00:00
Reimar Döffinger
5db3c3bc03 Add missing const to last argument of decode_significance_8x8_x86.
Fixes "h264.c:5470: warning: passing argument 4 of 'decode_significance_8x8_x86' discards qualifiers from pointer target type"

Originally committed as revision 11135 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-12-02 21:11:43 +00:00
Baptiste Coudurier
c20d3ce255 indentation
Originally committed as revision 11134 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-12-02 19:28:20 +00:00
Baptiste Coudurier
cc3a970857 dnxhd 720p encoding and decoding support
Originally committed as revision 11133 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-12-02 19:27:19 +00:00
Baptiste Coudurier
df745b9ce6 cosmetics, encode_variance -> encode_fast
Originally committed as revision 11132 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-12-02 19:22:38 +00:00
Baptiste Coudurier
78532b052d fix corner case when qscale 1 bits < frame bits but max bits with worst padding > frame bits
Originally committed as revision 11131 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-12-02 19:20:46 +00:00
Kostya Shishkov
79cf2c7e86 RealVideo 3 decoder functions
Originally committed as revision 11130 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-12-02 18:44:29 +00:00
Diego Biurrun
56cc85a068 Misc spelling fixes, prefer American over British English.
Originally committed as revision 11126 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-12-02 15:43:08 +00:00
Diego Biurrun
d0b53d05c8 Fix some spelling mistakes.
Originally committed as revision 11125 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-12-02 14:06:28 +00:00
Kostya Shishkov
74971185f3 RV30/40 common VLC tables
Originally committed as revision 11124 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-12-02 06:24:34 +00:00
Vitor Sessak
f87d2632b3 Fix alignment broke by my last patch
Originally committed as revision 11123 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-12-01 22:35:38 +00:00
Vitor Sessak
52b541ad79 spelling
Originally committed as revision 11122 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-12-01 22:21:04 +00:00
Kostya Shishkov
329851e032 TIFF may omit compression tag.
This fixes issue 276.

Originally committed as revision 11121 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-12-01 15:41:35 +00:00
Diego Biurrun
7338d36808 succes --> success typo
Originally committed as revision 11120 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-12-01 12:05:59 +00:00
Reimar Döffinger
892a4c2da8 Fix nodes[nb_codes*2-1].count being uninitialized and used to initialize
nodes[nb_codes*2-2].count (thus making that invalid as well) in
ff_huff_build_tree.
Might fix some (hard to reproduce) crashes in VP6 decoder.

Originally committed as revision 11119 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-12-01 09:39:59 +00:00
Michael Niedermayer
5d702d6db2 senseless cast and ()
Originally committed as revision 11118 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-12-01 00:21:43 +00:00
Michael Niedermayer
90901860c2 stupid code (casting of void*) found by checktree.sh
Originally committed as revision 11117 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-12-01 00:19:44 +00:00
Reimar Döffinger
4c1e509c11 wma_decode_superframe always returns s->block_align, so make
sure we actually consume exactly that amount.
Fixes sound artefacts (mostly blips) that mysteriously disappeared
after e.g. remuxing with mencoder.

Originally committed as revision 11115 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-11-30 21:51:34 +00:00
Diego Biurrun
2d4e0c1aa9 Fix make checkheaders, #include <inttypes.h> was missing.
Originally committed as revision 11114 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-11-30 14:08:00 +00:00
Michael Niedermayer
0063c05c67 fix segfault with interlaced h.264
Originally committed as revision 11113 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-11-29 15:09:24 +00:00
Ian Caulfield
6b493b2f2f MLP/TrueHD parser
Patch by Ian Caulfield, ian D caulfield <at> gmail D com
Thread: [PATCH] MLP/TrueHD decoder, 12 Oct 14:26

Originally committed as revision 11109 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-11-28 14:27:53 +00:00
Stefano Sabatini
0fe93f07ba Clarify documentation for avcodec_encode_audio.
patch by Stefano Sabatini, stefano.sabatini-lala poste it

Originally committed as revision 11108 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-11-28 12:41:35 +00:00
Aurelien Jacobs
bb6cc730e5 remove some unused ff_p* vars from dsputil
Originally committed as revision 11106 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-11-27 22:57:26 +00:00