Commit Graph

3441 Commits

Author SHA1 Message Date
Michael Niedermayer d26a9ea0df remove 166 useless underscores, and make this file valid c code as a result
Originally committed as revision 5798 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-07-19 23:21:20 +00:00
Michael Niedermayer e003ea066b remove a few useless casts and avoid the useless t1/t2 variables
Originally committed as revision 5797 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-07-19 23:17:18 +00:00
Michael Niedermayer 684d9e36fc simplify
Originally committed as revision 5796 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-07-19 22:42:31 +00:00
Michael Niedermayer 006ff1cabe more simplifications
Originally committed as revision 5795 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-07-19 22:21:45 +00:00
Michael Niedermayer f72f8a7735 simplification
Originally committed as revision 5794 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-07-19 21:20:56 +00:00
Michael Niedermayer 09eb00f6b5 iabs -> ABS
Originally committed as revision 5793 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-07-19 21:05:42 +00:00
Michael Niedermayer 1abbf64e3b simplify
Originally committed as revision 5792 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-07-19 20:57:44 +00:00
Michael Niedermayer 1af5f60f6a fix loop filter
Originally committed as revision 5791 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-07-19 20:41:16 +00:00
Michael Niedermayer 5ced7b80ad disable the vp3 mmx and sse2 idcts, their output doesnt match the c idct (tested with -f crc) and the theora spec does not allow different idcts not to mention the difference is quite vissible ...
Originally committed as revision 5788 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-07-19 09:49:21 +00:00
Luca Abeni cea8f6f323 Move av_malloc(), av_realloc(), and av_free() from libavcodec to libavutil
Originally committed as revision 5784 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-07-19 07:28:58 +00:00
Luca Abeni 4b45de0e87 Move av_log() & friends to libavutil
Originally committed as revision 5781 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-07-18 11:00:55 +00:00
Loren Merritt 8b75e45d8c sync to x264 r537
Originally committed as revision 5780 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-07-18 01:29:43 +00:00
Michael Niedermayer efea852877 parse all QIS values (we still ignore them though ...)
Originally committed as revision 5778 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-07-17 13:09:45 +00:00
Michael Niedermayer a14ab4e4d4 100l for me
Originally committed as revision 5777 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-07-17 11:06:09 +00:00
Matthieu Castet 116d866ca5 fix playback of theora.ogg on mphq patch by (matthieu castet %% castet dat matthieu ot free dat fr %%)
Originally committed as revision 5776 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-07-17 10:44:53 +00:00
Michael Niedermayer ae1dd8e125 attempt to implement xiphs useless and stupid quantization matrix mess
Originally committed as revision 5775 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-07-17 09:51:59 +00:00
Michael Niedermayer 187c9be7a6 replace *_dequant (2 intra, 1 inter) by qmat (3 intra, 3 inter) (needed for theora according to spec)
Originally committed as revision 5774 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-07-17 08:09:08 +00:00
Michael Niedermayer d2744e19e0 use RSHIFT
Originally committed as revision 5773 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-07-16 21:09:32 +00:00
Michael Niedermayer 4501e678e7 useless memcpy
Originally committed as revision 5772 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-07-16 21:00:38 +00:00
Michael Niedermayer 7cfe7fe5e7 some fixmes if someone ever wants to implement theora support correctly ...
Originally committed as revision 5771 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-07-16 20:47:48 +00:00
Michael Niedermayer e278056fba check how many bits are left after decoding extradata
this change is messy as whoever wrote the original code copied the GetBitContext instead of passing a pointer to it which has to be fixed for the above thing

Originally committed as revision 5770 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-07-16 20:30:39 +00:00
Michael Niedermayer b7f3fdd779 cleanup
Originally committed as revision 5769 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-07-16 19:21:59 +00:00
Loren Merritt 717b173366 slightly faster h264 fill_caches()
Originally committed as revision 5768 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-07-16 18:55:18 +00:00
Justin Ruggles e1bbc0321c cosmetic change to adjust alignment.
Originally committed as revision 5767 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-07-16 17:08:25 +00:00
Justin Ruggles 5f3acd9ec9 Modify preset compression levels to utilize log search.
Originally committed as revision 5766 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-07-16 17:04:54 +00:00
Måns Rullgård 7a5f09f66e cosmetics
Originally committed as revision 5764 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-07-16 16:23:12 +00:00
Michael Niedermayer dbb45a3bb7 log prediction order search method
Originally committed as revision 5763 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-07-16 15:46:45 +00:00
Justin Ruggles 26053bdcc8 Add lpc order search. This creates new compression levels 6 to 12.
Originally committed as revision 5762 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-07-16 13:34:47 +00:00
Kostya Shishkov 7e84f27693 Don't pass block[6][64] parameter to decode_p_mb as we always use s->block
Originally committed as revision 5761 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-07-16 03:50:00 +00:00
Kostya Shishkov 0a45801f8e Correct inverse quantization for P-frames
Originally committed as revision 5760 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-07-16 03:47:34 +00:00
Kostya Shishkov c5b32ec1cb Rounding control for motion compensation.
Originally committed as revision 5759 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-07-16 03:45:04 +00:00
Michael Niedermayer 408ec4e2a6 calculate all coefficients for several orders during cholesky factorization, the resulting coefficients are not strictly optimal though as there is a small difference in the autocorrelation matrixes which is ignored for the smaller orders
Originally committed as revision 5758 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-07-15 23:43:38 +00:00
Stefan Gehrer 5cf226fb09 avoid double copying of left border in luma prediction
Originally committed as revision 5752 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-07-14 19:31:58 +00:00
Stefan Gehrer 50879935d1 replace run by run+1 in VLC tables
Originally committed as revision 5751 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-07-14 19:15:08 +00:00
Michael Niedermayer 8ea543b580 cleanup
Originally committed as revision 5750 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-07-14 19:14:25 +00:00
Stefan Gehrer c90c39190e change partition flags SYM -> FWD|SYM
Originally committed as revision 5749 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-07-14 18:56:17 +00:00
Stefan Gehrer 77f173bef5 set mvP2 also in PSKIP macroblock
Originally committed as revision 5748 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-07-14 18:48:50 +00:00
Michael Niedermayer ab01b2b82a optionally (use_lpc=2) support Cholesky factorization for finding the lpc coeficients
this will find the coefficients which minimize the sum of the squared errors,
  levinson-durbin recursion OTOH is only strictly correct if the autocorrelation matrix is a
  toeplitz matrix which it is only if the blocksize is infinite, this is also why applying
  a window (like the welch winodw we currently use) improves the lpc coefficients generated
  by levinson-durbin recursion ...

optionally (use_lpc>2) support iterative linear least abs() solver using cholesky
  factorization with adjusted weights in each iteration

compression gain for both is small, and multiple passes are of course dead slow

Originally committed as revision 5747 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-07-14 18:48:38 +00:00
Stefan Gehrer 643326f747 avoid overflows of qp and pic_type
Originally committed as revision 5746 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-07-14 18:38:23 +00:00
Måns Rullgård 4b65d88fd7 replace -D_GNU_SOURCE with -D_ISOC9X_SOURCE to avoid accidental use
of gnu extensions

Originally committed as revision 5733 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-07-13 23:10:01 +00:00
Michael Niedermayer 1484a46753 dither lpc cpeffs
Originally committed as revision 5727 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-07-13 11:41:52 +00:00
Måns Rullgård 6636b7e8e3 rename AMR config variables to CONFIG_AMR*
Originally committed as revision 5725 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-07-12 16:49:14 +00:00
Diego Biurrun f7f03a6303 Remove MPlayer-specific include option hacks.
Originally committed as revision 5723 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-07-12 15:19:51 +00:00
Diego Biurrun 2f30a81d19 CONFIG_WIN32 implies MinGW and Cygwin and possibly more, so use just
CONFIG_MINGW or __MINGW32__ instead.

Originally committed as revision 5718 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-07-11 21:45:45 +00:00
Michael Niedermayer 21227514de simplify
Originally committed as revision 5696 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-07-09 22:41:42 +00:00
Michael Niedermayer b2846effb7 avoid redundant local variables
Originally committed as revision 5695 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-07-09 15:35:06 +00:00
Michael Niedermayer 69f34e5b1f simplify
Originally committed as revision 5694 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-07-09 15:20:18 +00:00
Diego Biurrun e148c6e193 FastUVMV vs FastUVMC typo, noticed by bond
Originally committed as revision 5693 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-07-09 15:12:45 +00:00
Måns Rullgård 608bd84365 make some tables const
Originally committed as revision 5692 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-07-09 13:01:06 +00:00
Måns Rullgård af9e7d1810 --enable/disable parsers. Warning: some combinations are broken.
Originally committed as revision 5691 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-07-09 12:02:15 +00:00
Michael Niedermayer a7702890bd remove STATS code (probably hasnt been used for years ..., and its not completely clear what it was good for anyway)
Originally committed as revision 5689 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-07-09 10:33:49 +00:00
Kostya Shishkov fdb5983285 Check if 4-MV MB should not be decoded.
Originally committed as revision 5688 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-07-09 03:00:57 +00:00
Kostya Shishkov 5c4b8efd4b MVRANGE may occur in all frames and RESPIC in all but B-frames
Originally committed as revision 5687 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-07-09 02:56:40 +00:00
Kostya Shishkov 3a3f1cf3f8 Fix mquant selection for ALL_MBS mode
Originally committed as revision 5686 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-07-09 02:51:13 +00:00
Kostya Shishkov 65c7bb9ec4 Use overlap filter instead of loop filter.
Originally committed as revision 5685 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-07-09 02:47:09 +00:00
Kostya Shishkov d2779ecd8b Use s->first_slice_line in checks instead of s->mb_y
Originally committed as revision 5684 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-07-09 02:44:05 +00:00
Måns Rullgård 88e2539b7e 10l: make disabling all pcm/adpcm codecs work
Originally committed as revision 5683 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-07-09 01:08:13 +00:00
Måns Rullgård f7e79298d1 only build dpcm.o if its codecs are enabled
Originally committed as revision 5681 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-07-08 23:05:12 +00:00
Måns Rullgård 6f3d6022cf forgot to remove adx.o from objs always built
Originally committed as revision 5680 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-07-08 22:38:35 +00:00
Måns Rullgård 7239fb5738 make the adx adpcm codec available
Originally committed as revision 5679 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-07-08 22:31:14 +00:00
Måns Rullgård 327dcfd315 enable/disable pcm and adpcm codecs
Originally committed as revision 5678 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-07-08 21:15:50 +00:00
Måns Rullgård a29ff6b76b cosmetic: sort codec list alphabetically
Originally committed as revision 5675 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-07-08 16:41:52 +00:00
Justin Ruggles c6375bf23c allows user-settable block size and fixes related typo
Originally committed as revision 5674 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-07-08 16:39:58 +00:00
Måns Rullgård bac3be382e rewrite kconfig-style
Originally committed as revision 5673 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-07-08 16:39:49 +00:00
Måns Rullgård 7f53b77c83 Sun mlib works fine. Remove comment stating otherwise.
Originally committed as revision 5672 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-07-08 16:36:21 +00:00
Diego Biurrun 6be4846a1a Remove bogus IPP section that is not referenced anywhere.
Originally committed as revision 5670 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-07-08 15:29:33 +00:00
Aurelien Jacobs f1b163e01e set proper bits_per_sample value for ADPCM codecs
Originally committed as revision 5666 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-07-08 07:14:00 +00:00
Måns Rullgård ab7e315396 remove -fforce-addr as it to generate slightly slower code
Originally committed as revision 5665 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-07-07 23:54:13 +00:00
Michael Niedermayer 9d82b0dda1 moving utf8 reading function to libavutil
Originally committed as revision 5664 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-07-07 22:43:32 +00:00
Aurelien Jacobs 5da714699d simplify the voc demuxer using av_get_bits_per_sample()
Originally committed as revision 5663 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-07-07 22:42:36 +00:00
Michael Niedermayer c448303df6 seems i forgot to commit this simplification ...
Originally committed as revision 5662 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-07-07 22:41:43 +00:00
Baptiste Coudurier ac3e183403 av_get_bits_per_sample and due simplifications
Originally committed as revision 5661 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-07-07 17:50:09 +00:00
Emiliano Parasassi 29c5cdcaec Fix compilation with --disable-decoders.
patch by Emiliano Parasassi, millallo --at-- gmail --dot-- com

Originally committed as revision 5660 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-07-07 11:08:58 +00:00
Michael Niedermayer 55582f8de3 table contains vlc with 19 bits and 8*2 < 19
Originally committed as revision 5658 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-07-07 10:50:14 +00:00
Kostya Shishkov 913e93d5f2 Improve chroma MC: correct case for FASTUVMC=1, use slower but correct /2, and always use halfpel MC.
Not quite there yet but a bit better picture on some files.

Originally committed as revision 5652 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-07-07 05:02:01 +00:00
Kostya Shishkov 50af2fd30d Enable coefficient scaling
Originally committed as revision 5651 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-07-07 04:51:50 +00:00
Kostya Shishkov 928dc49d0e Don't read out-of-bounds values.
Originally committed as revision 5650 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-07-07 04:50:13 +00:00
Måns Rullgård 1ede1725f1 simplify
Originally committed as revision 5649 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-07-06 21:41:54 +00:00
Måns Rullgård 0ac3dcb8e8 build mpegaudio.c and ac3enc.c only if needed
Originally committed as revision 5648 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-07-06 20:32:19 +00:00
Stefan Gehrer 3284e7f3fe hopefully better for platforms not supporting misaligned read
Originally committed as revision 5647 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-07-06 19:23:21 +00:00
Stefan Gehrer 1a1650feca make use of 16x16 motion comp functions, 16x8 and 8x16 do not seem to be worth it
Originally committed as revision 5646 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-07-06 19:21:00 +00:00
Michael Niedermayer 76b566687f increasing version for AVBitStreamFilters
Originally committed as revision 5645 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-07-06 15:35:29 +00:00
Michael Niedermayer 514e0831ae noise bitstream filter
add priv_data field to AVBitStreamFilterContext

Originally committed as revision 5644 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-07-06 15:28:17 +00:00
Michael Niedermayer 748c2fca7e AVBitStreamFilter (some thingy which can modify the bitstream like add or remove global headers or change the headers or ...)
Originally committed as revision 5643 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-07-06 15:04:46 +00:00
Stefan Huehner 62a05b5b00 Mark some read-only datastructures as const.
patch by Stefan Huehner, stefan & at & huehner & dot & org

Originally committed as revision 5639 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-07-06 13:53:07 +00:00
Kostya Shishkov 1ae4a8e61f Fix one case of choosing MV for chroma
Originally committed as revision 5635 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-07-06 03:42:51 +00:00
Diego Biurrun da2e9781bb spelling typo
Originally committed as revision 5633 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-07-05 22:56:45 +00:00
Måns Rullgård bb428277fa use $(LIBOBJFLAGS) when compiling sparc/*.c
Originally committed as revision 5630 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-07-05 19:34:26 +00:00
Måns Rullgård 98d417cbcd #define SBUTTERFLY outside CONFIG_ENCODERS
Originally committed as revision 5628 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-07-05 19:31:01 +00:00
Stefan Gehrer 2e0141c351 even more cbp safety
Originally committed as revision 5627 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-07-05 17:11:55 +00:00
Stefan Gehrer 0e9b7305d0 missed removing this line in my last commit
Originally committed as revision 5626 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-07-05 17:08:13 +00:00
Diego Biurrun f130fd4630 cosmetics: Break overly long lines.
Originally committed as revision 5622 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-07-05 14:12:00 +00:00
Michael Niedermayer 05e7e64d1a add rounding bias earlier in the idct, avoids many adds
Originally committed as revision 5618 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-07-04 22:43:35 +00:00
Stefan Huehner 109d2de108 Mark read-only data as const. Patch by stefan huehner org.
Originally committed as revision 5615 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-07-04 19:15:47 +00:00
Michael Niedermayer 57d664ff32 return -1 on bitstream errors instead of continuing, as the following stuff almost always will be useless until the next startcode
Originally committed as revision 5613 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-07-04 17:08:35 +00:00
Michael Niedermayer 784036e404 simplify intra prediction mode decoding
Originally committed as revision 5612 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-07-04 17:06:43 +00:00
Michael Niedermayer 5ca0106879 check cbp for validity, avoids possible out of array reads / segfaults
Originally committed as revision 5611 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-07-04 16:42:22 +00:00
Michael Niedermayer 5781d6d6e8 minor simplificationn
Originally committed as revision 5610 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-07-04 16:30:14 +00:00
Kostya Shishkov 66d0ad2605 Implement intensity compensation
Originally committed as revision 5609 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-07-04 15:40:09 +00:00
Kostya Shishkov 8a66a390cc Correctly choose global transform mode, MV mode and fix bitplane decoding
Originally committed as revision 5608 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-07-04 15:39:21 +00:00