Commit Graph

243 Commits

Author SHA1 Message Date
Justin Ruggles
132041f06f While adding stereo rematrixing, I came across something that needs to
be fixed even without adding the feature.  The output correctly uses 4
dummy values for the rematrixing flags in block-0, but the bit
allocation routine does not take these bits into account.  From what I
can tell, there was a patch in 2003 that corrected the output to make it
DVD and spec compatible, but it didn't correct the bit allocation.  It's
only 4 bits over the entire 6 blocks, so overflow errors would happen
rarely or never, but it's still worth fixing.  So here is a fix.

patch by (Justin Ruggles {jruggle earthlink net)

Originally committed as revision 4179 to svn://svn.ffmpeg.org/ffmpeg/trunk
2005-05-05 14:10:52 +00:00
Roine Gustafsson
8cf71eadd2 Adds read probe to y4m, and changes the extension to .y4m patch by (Roine Gustafsson <roine users sourceforge net)
Originally committed as revision 4164 to svn://svn.ffmpeg.org/ffmpeg/trunk
2005-04-26 09:06:39 +00:00
Michael Niedermayer
644a92626a PIX_FMT_NONE and related fixes
Originally committed as revision 4161 to svn://svn.ffmpeg.org/ffmpeg/trunk
2005-04-25 18:29:06 +00:00
Yartrebo
8c2515bbb9 fix overflow in mc_block() patch by (Yartrebo )yartrebo earthlink net
Originally committed as revision 4132 to svn://svn.ffmpeg.org/ffmpeg/trunk
2005-04-17 09:27:53 +00:00
Michael Niedermayer
b44985ba12 store the number of runs to avoid storing the last run value
about 10% lower bitrate for -qscale 32 (forman & some music video)
worst case bitrate increase <0.1% (lossless or low qscale)
and now the bad news, even though this just adds a single subtraction and an if() into the medium sized unpack_coeffs() loop and the if() will only be false once per unpac_coeff() call, gcc produces 50% slower code, i didnt look at the generated asm yet, not sure if i want to ...

Originally committed as revision 4131 to svn://svn.ffmpeg.org/ffmpeg/trunk
2005-04-15 13:24:30 +00:00
Michael Niedermayer
f5a719287d rescale coefficients during IDWT, that way the lifting steps are much simpler and faster
Originally committed as revision 4119 to svn://svn.ffmpeg.org/ffmpeg/trunk
2005-04-10 14:21:53 +00:00
Michael Niedermayer
a0a74ad9f0 increasing precission of the quantization parameter
this is needed as the quantization stepsize for each subband is also in this precission and insignificant changes to the wavelet like scaling its coefficients slightly differently would lead to wildly variing PSNR and bitrate
note, a encoder could also simply choose to leave the least significant bits of the quantization parameters zero which would give the exact previous behaviour except a y very tiny number of bits in  the header

Originally committed as revision 4115 to svn://svn.ffmpeg.org/ffmpeg/trunk
2005-04-09 22:15:48 +00:00
Michael Niedermayer
538a38418c 10% faster unpack_coeffs
Originally committed as revision 4108 to svn://svn.ffmpeg.org/ffmpeg/trunk
2005-04-05 17:59:05 +00:00
Michael Niedermayer
3cff4572ce fixing lossless snow
Originally committed as revision 4107 to svn://svn.ffmpeg.org/ffmpeg/trunk
2005-04-05 09:37:43 +00:00
Michael Niedermayer
d13eef3d3d snow regression test
Originally committed as revision 4100 to svn://svn.ffmpeg.org/ffmpeg/trunk
2005-04-03 15:39:17 +00:00
Calcium
982e53fe44 31_ASF_compatibility_with_WMP_and_add_index.patch by (Calcium | calcium nurs or jp)
Originally committed as revision 4073 to svn://svn.ffmpeg.org/ffmpeg/trunk
2005-03-23 13:30:27 +00:00
Calcium
58d2a1506d 28_fix_parameters_in_G726.patch by (Calcium | calcium nurs or jp)
Originally committed as revision 4070 to svn://svn.ffmpeg.org/ffmpeg/trunk
2005-03-23 12:35:27 +00:00
Michael Niedermayer
8272de4ea2 fix time stored in mov
based upon 23_fix_timestamp_in_mov.patch by (Calcium | calcium nurs or jp)

Originally committed as revision 4067 to svn://svn.ffmpeg.org/ffmpeg/trunk
2005-03-23 11:15:45 +00:00
Michael Niedermayer
6c13c880fa trying to fix a few minor values in the mp4/mov muxer
Originally committed as revision 4063 to svn://svn.ffmpeg.org/ffmpeg/trunk
2005-03-23 00:26:43 +00:00
Michael Niedermayer
4a7d265176 sample_size fix
Originally committed as revision 4043 to svn://svn.ffmpeg.org/ffmpeg/trunk
2005-03-15 23:50:24 +00:00
Michael Niedermayer
625d98a319 set global_quality
Originally committed as revision 4042 to svn://svn.ffmpeg.org/ffmpeg/trunk
2005-03-15 22:49:16 +00:00
Michael Niedermayer
420370d4aa switch MPEG4 fourcc to FMP4
Originally committed as revision 3972 to svn://svn.ffmpeg.org/ffmpeg/trunk
2005-02-22 19:48:07 +00:00
Michael Niedermayer
9499ebff8d checksum change due to (don't crash on null codec patch which changed the stored length of the compressor name, movenc.c 1.28->1.29)
Originally committed as revision 3950 to svn://svn.ffmpeg.org/ffmpeg/trunk
2005-02-07 22:47:46 +00:00
Michael Niedermayer
090fa6576c max/avg bitrate change (movenc.c 1.25->1.26)
Originally committed as revision 3948 to svn://svn.ffmpeg.org/ffmpeg/trunk
2005-02-07 20:45:19 +00:00
Michael Niedermayer
5dc18027d5 max/avg bitrate change (movenc.c 1.25->1.26)
Originally committed as revision 3947 to svn://svn.ffmpeg.org/ffmpeg/trunk
2005-02-07 20:15:23 +00:00
Michael Niedermayer
a749c8d6e5 regression test checksum change due to the mov header field and compressor name patch (movenc.c 1.24->1.25)
Originally committed as revision 3946 to svn://svn.ffmpeg.org/ffmpeg/trunk
2005-02-07 18:56:41 +00:00
Michael Niedermayer
b416099044 reversing the 1.52->1.53 change (handle fixed sample_size patch)
as this patch has been removed from mov.c in the 1.61->1.62 change

Originally committed as revision 3942 to svn://svn.ffmpeg.org/ffmpeg/trunk
2005-02-07 01:10:09 +00:00
Michael Niedermayer
976709ee73 compare audio files 16bit wise instead of 8bit
additionally compare the mp2 case with some delay as this matches better (the delay issue obviously should be fixed)

Originally committed as revision 3922 to svn://svn.ffmpeg.org/ffmpeg/trunk
2005-02-01 21:16:33 +00:00
Michael Niedermayer
ba96e97fdd support comparing files with some posiion offset relative to each other
Originally committed as revision 3921 to svn://svn.ffmpeg.org/ffmpeg/trunk
2005-02-01 20:32:47 +00:00
Michael Niedermayer
0c90161f0f signed 16bit support
Originally committed as revision 3913 to svn://svn.ffmpeg.org/ffmpeg/trunk
2005-02-01 01:21:32 +00:00
Michael Niedermayer
a7a858996f dithering for the mpeg audio decoder
Originally committed as revision 3903 to svn://svn.ffmpeg.org/ffmpeg/trunk
2005-01-30 14:04:56 +00:00
Michael Niedermayer
16dd93ab6a quick and dirty PSNR check for audio
Originally committed as revision 3902 to svn://svn.ffmpeg.org/ffmpeg/trunk
2005-01-30 13:26:11 +00:00
Michael Niedermayer
dd4f8a04fe jpeg style yuv fixes
Originally committed as revision 3852 to svn://svn.ffmpeg.org/ffmpeg/trunk
2005-01-20 00:30:20 +00:00
Roine Gustafsson
7b0c0c3c29 handle fixed sample_size patch by Roine Gustafsson <roine AT users.sourceforge.net>
Originally committed as revision 3828 to svn://svn.ffmpeg.org/ffmpeg/trunk
2005-01-12 18:00:44 +00:00
Roine Gustafsson
2d74541476 - Writes correct unknown aspect
- Adds read and write support for yuv422p and yuv444p
- New parser will read all well-formed YUV4MPEG2 stream headers
patch by (Roine Gustafsson <roine users.sourceforge net>)

Originally committed as revision 3800 to svn://svn.ffmpeg.org/ffmpeg/trunk
2005-01-04 01:55:50 +00:00
Philip Gladstone
597c9f2bc9 Remove .mpg streams due to a standards compliance issue
Originally committed as revision 3794 to svn://svn.ffmpeg.org/ffmpeg/trunk
2005-01-03 02:40:22 +00:00
Michael Niedermayer
281a74da60 spaces in path fixes
Originally committed as revision 3791 to svn://svn.ffmpeg.org/ffmpeg/trunk
2005-01-01 23:38:09 +00:00
Michael Niedermayer
6feb1de50f r/w -> rb/wb
Originally committed as revision 3774 to svn://svn.ffmpeg.org/ffmpeg/trunk
2004-12-24 12:34:11 +00:00
Michael Niedermayer
0d6d0cf953 fopen "r" -> "rb"
Originally committed as revision 3772 to svn://svn.ffmpeg.org/ffmpeg/trunk
2004-12-23 20:13:59 +00:00
Michael Niedermayer
c50cd09dd5 rv20 regression test
Originally committed as revision 3740 to svn://svn.ffmpeg.org/ffmpeg/trunk
2004-12-07 13:48:25 +00:00
Michael Niedermayer
80016c48b0 rm encoding fix
Originally committed as revision 3736 to svn://svn.ffmpeg.org/ffmpeg/trunk
2004-12-06 21:38:05 +00:00
Loren Merritt
f37b9768f6 split ffhuffyuv into 2 codecs:
"huffyuv" is compatible with the official version
"ffvhuff" contains our improvements

Originally committed as revision 3720 to svn://svn.ffmpeg.org/ffmpeg/trunk
2004-11-28 18:29:38 +00:00
Michael Niedermayer
17179d2d97 fix some codec_id values so that new ones can be added at the end of the subsets without breaking binary compatibility
Originally committed as revision 3719 to svn://svn.ffmpeg.org/ffmpeg/trunk
2004-11-28 15:33:15 +00:00
Michael Niedermayer
8a01fc4742 fake regression errors caused by randomly choosen dct algo
Originally committed as revision 3703 to svn://svn.ffmpeg.org/ffmpeg/trunk
2004-11-22 00:23:32 +00:00
Michael Niedermayer
7f8038ce88 mv/mb reuse regression test
Originally committed as revision 3686 to svn://svn.ffmpeg.org/ffmpeg/trunk
2004-11-16 14:02:41 +00:00
Michael Niedermayer
87c5fbc37a switch pnm from imagepipe to image2pipe
Originally committed as revision 3676 to svn://svn.ffmpeg.org/ffmpeg/trunk
2004-11-12 22:57:07 +00:00
Maarten Daniels
ccff9da62a H261 fixing and cleaning:
-corrected wrong value in mv data
 -set correct mb_type after adjusting index
 -don't use H263 loop filter when the loop filter flag is set but when
  using the H261 encoder
 -use the same unquantizer as H263 (which is optimized btw)
 -removed unused members in H261Context
patch by (Maarten Daniels <maarten.daniels >at< luc >dot< ac >dot< be>)

regression test checksum update by me

Originally committed as revision 3669 to svn://svn.ffmpeg.org/ffmpeg/trunk
2004-11-12 01:21:34 +00:00
Michael Niedermayer
359fa0febc cbr audio muxing fix
Originally committed as revision 3661 to svn://svn.ffmpeg.org/ffmpeg/trunk
2004-11-06 19:11:34 +00:00
Michael Niedermayer
d34a07466f switch ffv1 to the put/get_symbol() from snow
Originally committed as revision 3659 to svn://svn.ffmpeg.org/ffmpeg/trunk
2004-10-31 12:22:00 +00:00
Michael Niedermayer
880eae9c50 switch ffv1 from CABAC to the range coder
Originally committed as revision 3658 to svn://svn.ffmpeg.org/ffmpeg/trunk
2004-10-31 10:08:50 +00:00
Michael Niedermayer
9740687b6b fix and cleanup h261 mb_type selection
Originally committed as revision 3647 to svn://svn.ffmpeg.org/ffmpeg/trunk
2004-10-28 17:21:34 +00:00
Michael Niedermayer
37a007826e suppress uninerresting output
Originally committed as revision 3645 to svn://svn.ffmpeg.org/ffmpeg/trunk
2004-10-28 10:30:05 +00:00
Michael Niedermayer
61b262a90a h.261 regression test
Originally committed as revision 3644 to svn://svn.ffmpeg.org/ffmpeg/trunk
2004-10-28 10:24:02 +00:00
Wolfram Gloger
ed2cea4290 fix -pixfmt mono[bw] patch by (Wolfram Gloger <wmglo at dent dot med dot uni-muenchen dot de>)
Originally committed as revision 3636 to svn://svn.ffmpeg.org/ffmpeg/trunk
2004-10-25 01:16:13 +00:00
Michael Niedermayer
4e255822e5 100l (dont reset the sample position at the block end)
Originally committed as revision 3618 to svn://svn.ffmpeg.org/ffmpeg/trunk
2004-10-21 20:01:32 +00:00