Commit Graph

181 Commits

Author SHA1 Message Date
Michael Niedermayer
7e2ea58313 some const
Originally committed as revision 11746 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-02-01 14:18:09 +00:00
Baptiste Coudurier
8943802849 add parenthesis, fix warning: snow.c:2413: warning: suggest parentheses around && within ||
Originally committed as revision 11687 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-01-31 00:57:48 +00:00
Baptiste Coudurier
f0a7084088 Add const qualifier, fix warnings:
snow.c:2292: warning: assignment discards qualifiers from pointer target type
snow.c:2294: warning: assignment discards qualifiers from pointer target type
snow.c:2300: warning: assignment discards qualifiers from pointer target type

Originally committed as revision 11686 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-01-31 00:56:29 +00:00
Diego Biurrun
6a339972af Remove unused variables in test code.
Originally committed as revision 11599 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-01-22 23:47:59 +00:00
Diego Biurrun
07e4e3ea8b Consistently use TEST as the preprocessor condition to enable test code.
Originally committed as revision 11581 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-01-20 23:53:51 +00:00
Michael Niedermayer
526e037b95 Remove green clouds.
fixes issue263

Originally committed as revision 11524 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-01-14 04:27:03 +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
Diego Biurrun
f8a80fd69d main() --> main(void)
Originally committed as revision 11079 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-11-23 00:52:56 +00:00
Diego Biurrun
eb72cacb21 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 11048 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-11-16 23:15:39 +00:00
Aurelien Jacobs
87246a01cf avoid some halfpel related #ifdef
Originally committed as revision 11041 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-11-15 22:32:39 +00:00
Diego Biurrun
a0c013de34 Put halfpel_interpol under the same #ifdef as its usage, fixes the warning:
snow.c:4142: warning: #halfpel_interpol# defined but not used

Originally committed as revision 11035 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-11-15 12:40:40 +00:00
Diego Biurrun
96e2fbf27b Add comments to some #endif directives.
Originally committed as revision 10998 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-11-10 16:44:37 +00:00
Diego Biurrun
f073a3934a cosmetics: Fix vissual --> visual typo.
Originally committed as revision 10997 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-11-10 16:39:54 +00:00
Stefano Sabatini
2e39d0cd5b Improve unsupported (pixel) format error message.
patch by Stefano Sabatini, stefano.sabatini-lala poste it

Originally committed as revision 10996 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-11-10 16:25:44 +00:00
Diego Biurrun
3ea7841120 warning fixes:
snow.c: In function ‘decode_header’:
snow.c:3668: warning: unused variable ‘absum’
snow.c: In function ‘decode_init’:
snow.c:4551: warning: unused variable ‘s’

Originally committed as revision 10708 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-10-11 09:35:06 +00:00
Michael Niedermayer
ff193e6419 some experimental iterative quantization code
disabled as it is VERY slow
gain is 0.1-0.2 psnr at low qp

Originally committed as revision 10556 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-23 21:11:36 +00:00
Michael Niedermayer
8db1372814 make changing spatial_decomposition_count per frame work
Originally committed as revision 10464 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-09 18:28:36 +00:00
Michael Niedermayer
dbd6a1fee8 do not ignore return of decode_header()
Originally committed as revision 10461 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-09 17:01:11 +00:00
Michael Niedermayer
b85bf991f6 do not force the halfpel filter coeffs to be retransmitted on every frame
if always_reset is set

Originally committed as revision 10460 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-09 16:54:00 +00:00
Michael Niedermayer
e559c30a20 allow changing of the spatial_decomposition_count and quantization tables
per frame (this is untested as the encoder does not use it yet)

Originally committed as revision 10458 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-09 15:06:46 +00:00
Michael Niedermayer
4f90f33ab4 perform init after reading the values needed for init
fixes decoding of files with spatial_decomposition_count!=5

Originally committed as revision 10457 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-09 13:47:25 +00:00
Michael Niedermayer
081c9d1d7b unneeded and impossible during init ...
Originally committed as revision 10455 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-09 12:46:25 +00:00
Michael Niedermayer
32272f7e95 unused
Originally committed as revision 10454 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-09 12:36:10 +00:00
Michael Niedermayer
014f9d233f allocate slice buffer after parsing the header containing needed parameters
argh i really wish i had never accepted these slice patches ...

Originally committed as revision 10453 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-09 12:33:34 +00:00
Michael Niedermayer
ba8964db60 remove ()
Originally committed as revision 10452 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-09 12:25:12 +00:00
Michael Niedermayer
61806e9fa7 spatial_decomposition_count != 5 bugfix
Originally committed as revision 10451 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-09 12:24:45 +00:00
Michael Niedermayer
fa731ccd4e scaling obmc tables under #if 0 also by 4 (yes they where forgotten apparently)
this also requires a few entries to be ++ and -- to avoid a max of 256

Originally committed as revision 10450 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-09 12:22:11 +00:00
Michael Niedermayer
61d6e445b1 rename HTAPS -> HTAPS_MAX (later is correct after the previous change)
Originally committed as revision 10437 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-08 14:52:21 +00:00
Michael Niedermayer
7d7f57d939 store halfpel filter coefficients in the header as well as the
flag for diagonal interpolation

the primary reason for this change is that previously MC up to 1/4 pel
matched H.264 exactly and that increases the risk of stumbling over
patents

secondly this allows 0.10 db or more quality gain by choosing a longer
filter and the filter could also be chosen optimally for each frame
though that of course would cause speed loss at the decoder and encoder
side ...

Originally committed as revision 10436 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-08 14:51:13 +00:00
Michael Niedermayer
4770a97aae remove outcommented code
Originally committed as revision 10435 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-08 03:16:24 +00:00
Michael Niedermayer
65dc0f532d indention
Originally committed as revision 10434 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-08 03:15:42 +00:00
Michael Niedermayer
a68ca08e30 cleanup mc_block()
perform interpolation steps in such an order that halfpel interpolation
could be done per picture
this also makes mc_block() match h.264 for the 1/4 pel cases so that the
use of the h264 functions for some cases does not introduce a fantastic mess

Originally committed as revision 10433 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-08 03:14:20 +00:00
Michael Niedermayer
2b48d8ba4a add a 8 taps filter for testing
Originally committed as revision 10394 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-05 01:49:14 +00:00
Michael Niedermayer
71dce72bee Replace constants by HTAPS (half pel interpolation filter taps) where appropriate.
Originally committed as revision 10390 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-05 00:49:09 +00:00
Michael Niedermayer
5be3a81871 code to do halfpel interpolation per frame (unfinished and under ifdef but it
should be faster when its finished)

Originally committed as revision 10293 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-05 00:06:34 +00:00
Luca Barbato
9d14ffbcce Cosmetics
Originally committed as revision 10278 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-01 14:00:47 +00:00
Michael Niedermayer
ff06e0677b cleanup (remove some old experimentation related code)
Originally committed as revision 10220 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-25 03:19:39 +00:00
Michael Niedermayer
b5b88eb3b4 we only have 2 wavelets, the 3rd was just for experimentation ...
Originally committed as revision 10219 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-25 03:04:13 +00:00
Michael Niedermayer
d593e32983 use 16bit IDWT (a SIMD implementation of it should be >2x faster then with
the old 32bit code)
disable mmx/sse2 optimizations as they need a rewrite now

Originally committed as revision 10218 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-25 03:00:51 +00:00
Michael Niedermayer
b538791bc9 use more bits on the encoder side
negligible increase in quality

Originally committed as revision 10195 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-23 10:49:14 +00:00
Michael Niedermayer
81717747ab simplify
Originally committed as revision 10186 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-22 17:26:49 +00:00
Michael Niedermayer
ce611a27be Change rounding of the horizontal DWT to match the vertical one.
This allows some simplifications and optimizations and should
not have any effect on quality.

Originally committed as revision 10172 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-21 16:29:40 +00:00
Michael Niedermayer
49ca0e531a get rid of idiotc double subtraction
Originally committed as revision 10154 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-20 22:18:26 +00:00
Diego Biurrun
1903245071 Ahem, fix typos overlooked in last commit.
Originally committed as revision 9816 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-07-28 12:50:28 +00:00
Diego Biurrun
df3a80b50a cosmetics: misc typo fixes
Originally committed as revision 9815 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-07-28 12:46:26 +00:00
Panagiotis Issaris
d04d5bcd0e Fix the self tests which are contained in some codecs and are using random().
Originally committed as revision 9755 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-07-19 08:47:07 +00:00
Måns Rullgård
bad700e346 trivial warning fixes
Originally committed as revision 9547 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-07-08 23:14:54 +00:00
Aurelien Jacobs
32a4d995ea include snow encoder only if it is not disabled
Originally committed as revision 9494 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-07-05 22:57:52 +00:00
Diego Biurrun
755bfeabcc misc spelling fixes
Originally committed as revision 9289 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-06-12 09:29:25 +00:00