Diego Biurrun
15e35274d8
Rename SIGN macro to the more fitting UNFOLD.
...
Originally committed as revision 6626 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-10 12:07:25 +00:00
Diego Biurrun
0bc2e7f081
BRANCHLESS_CABAD --> BRANCHLESS_CABAC_DECODER
...
Originally committed as revision 6623 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-10 08:16:41 +00:00
Guillaume Poirier
ab5a1435ec
Move TRANSPOSE8 macro to dsputil_altivec.h.
...
(was duplicated in libavcodec/ppc/vc1dsp_altivec.c
nd libavcodec/ppc/mpegvideo_altivec.c, and will be
used in upcoming routines for h264_altivec.c)
Originally committed as revision 6621 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-10 08:01:19 +00:00
Michael Niedermayer
9ed92c65f1
moving another bit&1 out, this is as fast as with it in there, but it makes more sense with it outside of the loop
...
Originally committed as revision 6618 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-10 06:56:51 +00:00
Michael Niedermayer
f1b37db48d
move the &1 out of the asm so gcc can optimize it away in inlined cases (yes this is slightly faster)
...
Originally committed as revision 6616 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-10 01:17:39 +00:00
Michael Niedermayer
ab0151d163
replace a few and/sub/... by cmov
...
this is faster on P3, should be faster on AMD, and should be slower on P4
its disabled by default (benchmarks welcome so we know when to enable it)
Originally committed as revision 6615 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-10 01:08:39 +00:00
Michael Niedermayer
a6672acf45
reading 8bit mem into a 8bit register needs 2 uops on P4, 8bit->32bit with zero extension needs just 1
...
Originally committed as revision 6612 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-09 21:57:10 +00:00
Michael Niedermayer
2d3df05ca0
on the P4 inc needs twice as much time a add
...
Originally committed as revision 6611 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-09 21:39:07 +00:00
Michael Niedermayer
2ee9dc65be
10l
...
Originally committed as revision 6610 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-09 21:21:10 +00:00
Michael Niedermayer
7822e1c1ff
reverse remainder of the failed attempt to optimize *state=c->mps_state[s]
...
Originally committed as revision 6609 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-09 21:14:16 +00:00
Michael Niedermayer
ef0090a998
x86 branchless cabac decoder
...
slightly faster on P3
Originally committed as revision 6608 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-09 20:51:33 +00:00
Michael Niedermayer
2e1aee80f4
optimize branchless C CABAC decoder
...
Originally committed as revision 6607 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-09 20:44:11 +00:00
Luca Barbato
b420448e38
removing ALTIVEC_USE_REFERENCE_C_CODE, since has no use anymore
...
Originally committed as revision 6606 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-09 18:29:46 +00:00
Michael Niedermayer
1c2a417f6a
move outcommented START/STOP_TIMER to a hopefully better place for benchmarking ...
...
Originally committed as revision 6605 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-09 18:20:00 +00:00
Michael Niedermayer
30dc5f56ad
drop failed attempt to optimize *state= c->mps_state[s];
...
Originally committed as revision 6604 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-09 15:52:17 +00:00
Michael Niedermayer
c56d23dacf
10l bugfix for some disabled code
...
Originally committed as revision 6603 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-09 14:15:53 +00:00
Michael Niedermayer
f7d0b68361
first try of a handwritten get_cabac() for x86, this is 10-20% faster on P3 depening on if you try to subtract the START/STOP_TIMER overhead
...
Originally committed as revision 6602 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-09 14:15:14 +00:00
Luca Barbato
441e8fe9c9
add_bytes passes tests
...
Originally committed as revision 6600 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-09 13:37:43 +00:00
Michael Niedermayer
5bbe2a5292
remove bytestream_end checks, seems to work fine without them and the bitstream reader doesnt check for the end either
...
Originally committed as revision 6599 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-09 12:25:24 +00:00
Andrea Gianarro
462209fe10
fix AC3 5.1 being decoded as mono
...
patch by Andrea Gianarro % giandrea AH gmail P com %
Original thread:
Date: Oct 9, 2006 11:55 AM
Subject: [Ffmpeg-devel] AC3 5:1 decoding as mono
Originally committed as revision 6598 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-09 11:36:42 +00:00
Diego Biurrun
bca519e0f6
Fix GPL/LGPL license version mismatch.
...
Originally committed as revision 6597 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-09 07:31:27 +00:00
Michael Niedermayer
c010d69a75
decrease ff_h264_norm_shift[] size
...
Originally committed as revision 6596 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-09 00:59:42 +00:00
Dominik Mierzejewski
158256a13a
Fixes:
...
rv10.c:494: warning: implicit declaration of function ‘ff_mpeg4_init_direct_mv’
Approved by Michael.
Originally committed as revision 6595 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-08 21:26:19 +00:00
Michael Niedermayer
6ff042699f
cleanup
...
Originally committed as revision 6594 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-08 21:26:08 +00:00
Dominik Mierzejewski
a10c779f76
Fixes:
...
opt.c:327: warning: no return statement in function returning non-void
opt_list return value is never checked.
Approved by Michael.
Originally committed as revision 6593 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-08 21:25:22 +00:00
Dominik Mierzejewski
69261768d3
Fixes:
...
parser.c:555: warning: implicit declaration of function ‘ff_cavs_find_frame_end’
Approved by Michael.
Originally committed as revision 6592 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-08 21:23:57 +00:00
Dominik Mierzejewski
621d92940e
Fixes:
...
mpegvideo.h:777: warning: ‘inline’ is not at beginning of declaration
motion_est_template.c:236: warning: ‘inline’ is not at beginning of declaration
Approved by Diego.
Originally committed as revision 6591 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-08 21:11:03 +00:00
Reimar Döffinger
214019ed32
Avoid void *-arithmetic
...
Originally committed as revision 6590 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-08 14:32:27 +00:00
Luca Barbato
75336fc885
Non Altivec optimizations already present at the top
...
Originally committed as revision 6588 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-08 13:55:02 +00:00
Michael Niedermayer
260ceb6322
branchless renormalization (1% faster get_cabac) old branchless renormalization wasnt faster because gcc was scared of the shift variable (missusing bit variable now)
...
Originally committed as revision 6587 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-08 13:20:22 +00:00
Michael Niedermayer
99ce10873d
5% faster get_cabac()
...
Originally committed as revision 6586 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-08 11:24:37 +00:00
Diego Biurrun
e16c407a81
output typo fixes
...
Originally committed as revision 6585 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-08 10:11:58 +00:00
Diego Biurrun
cad35abc0a
Compilation fix: pix_abs16x16_c was undeclared.
...
Originally committed as revision 6584 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-08 09:41:00 +00:00
Diego Biurrun
8823419fc1
Compilation fix, printf gets redefined to please_use_av_log.
...
Originally committed as revision 6583 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-08 09:38:22 +00:00
Michael Niedermayer
400d0f8e47
disable benchmarking code
...
disable asm optims as the fastest depends on cpu type
Originally committed as revision 6582 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-07 22:37:34 +00:00
Michael Niedermayer
4310580db5
renorm_cabac_decoder_once START/STOP_TIMER scores for athlon
...
Originally committed as revision 6581 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-07 22:34:32 +00:00
Luca Barbato
87ea51e0b5
fix the dcbz check and move it in configure
...
Originally committed as revision 6580 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-07 19:14:25 +00:00
Michael Niedermayer
5659b509c7
refill cabac variables in 16bit steps, 3% faster get_cabac()
...
Originally committed as revision 6578 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-07 15:44:14 +00:00
Diego Biurrun
b78e7197a8
Change license headers to say 'FFmpeg' instead of 'this program/this library'
...
and fix GPL/LGPL version mismatches.
Originally committed as revision 6577 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-07 15:30:46 +00:00
Michael Niedermayer
2ae7569dc8
() 10l
...
Originally committed as revision 6576 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-07 12:41:55 +00:00
Luca Barbato
d4165a8190
fix a warning
...
Originally committed as revision 6575 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-07 11:46:35 +00:00
Diego Biurrun
ade6e7f3ae
Compilation fix, printf gets redefined to please_use_av_log.
...
Originally committed as revision 6574 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-07 11:30:24 +00:00
Michael Niedermayer
ec8f483ab5
several x86 renorm_cabac_decoder_once optimizations
...
START/STOP_TIMER benchmarking code for them
please benchmark on P4 & athlon
(ill remove the benchmarking code and the always slower variants as soon as p4/athlon benchmarks have been posted or commited)
Originally committed as revision 6573 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-07 11:15:10 +00:00
Diego Biurrun
cbeee4d8e5
Replace -I../-I. by -I$(BUILD_ROOT).
...
Originally committed as revision 6572 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-07 09:22:44 +00:00
Diego Biurrun
5064755e54
cosmetics: Add backslashes to the last line of continued lines to make
...
future commits look cleaner.
Originally committed as revision 6570 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-07 08:10:47 +00:00
Michael Niedermayer
59ef342beb
fix decoding of ED-small-sample-file.ogg
...
Originally committed as revision 6567 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-06 11:33:57 +00:00
Michael Niedermayer
075060023d
fix buffer underflows by reencoding the current frame with a higher QP
...
Originally committed as revision 6565 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-05 19:27:18 +00:00
Diego Biurrun
e1931c59f6
message typo fixes
...
Originally committed as revision 6564 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-05 18:15:17 +00:00
Diego Biurrun
c6c4651138
Simplify test program build.
...
Originally committed as revision 6563 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-05 17:10:33 +00:00
Diego Biurrun
9933dc7168
Fix imgresample-test compilation.
...
Originally committed as revision 6560 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-05 01:28:25 +00:00