Commit Graph

5947 Commits

Author SHA1 Message Date
Aurelien Jacobs
30c23dc0b8 fix declaration name from MPV_common_init_ppc to MPV_common_init_altivec
Originally committed as revision 10654 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-10-03 17:37:22 +00:00
Aurelien Jacobs
06a4304080 remove useless #ifdef
Originally committed as revision 10653 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-10-03 17:35:28 +00:00
Diego Biurrun
f62a9a46e1 Rename MPV_common_init_ppc to MPV_common_init_altivec, the function is
AltiVec-specific now.

Originally committed as revision 10652 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-10-03 14:01:42 +00:00
Diego Biurrun
b4fb08035e Fix compilation with AltiVec disabled, MPV_common_init_ppc is part of a file
that is only compiled when AltiVec is enabled.

Originally committed as revision 10651 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-10-03 13:49:51 +00:00
Andreas Öman
9dceaa923e remove unused code, spotted by Jeff Downs, heydowns a borg d com
Originally committed as revision 10650 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-10-02 20:04:39 +00:00
Reimar Döffinger
17c9628b57 Hopefully fix sparc compilation again, add incorrectly removed variable declaration
Originally committed as revision 10649 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-10-02 19:51:18 +00:00
Reimar Döffinger
d9a5dab2da Remove uses of SIGILL for CPU extension detection, that method is not acceptable
in a library.
Should not change anything for PPC, the autodetection is currently pointless due
to other code being compiled with -maltivec as well (and detection for OSX and
AmigaOS remains in place).
SPARC binaries built with VIS support can now only run on systems with VIS.

Originally committed as revision 10648 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-10-02 18:18:35 +00:00
Jeff Downs
0d0447eae0 Rename MMCO stuff to prepare for h264/PAFF implementation.
patch by Jeff Downs, heydowns a borg d com
original thread:
Subject: [FFmpeg-devel] [PATCH] Implement PAFF in H.264
Date: 18/09/07 20:30

Originally committed as revision 10646 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-10-02 14:35:20 +00:00
Jeff Downs
bcc3476c98 Cosmetic preparations for h264/PAFF implementation.
patch by Jeff Downs, heydowns a borg d com
original thread:
Subject: [FFmpeg-devel] [PATCH] Implement PAFF in H.264
Date: 18/09/07 20:30

Originally committed as revision 10645 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-10-02 14:25:47 +00:00
Diego Biurrun
b1ef3dfd2b 100l: Revert accidental commit, restore previous version.
Originally committed as revision 10644 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-10-02 13:14:37 +00:00
Diego Biurrun
1f3a990b3a cosmetics: Fix indentation after last commit.
Originally committed as revision 10643 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-10-02 12:35:23 +00:00
Diego Biurrun
eee947487b Replace CONFIG_VORBIS_DECODER #ifdef by if (ENABLE_VORBIS_DECODER).
Blessed by Luca Barbato on IRC.

Originally committed as revision 10642 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-10-02 12:34:43 +00:00
Diego Biurrun
6c05bab46d Merge mpegvideo AltiVec code into mpegvideo_altivec.c where it belongs.
Originally committed as revision 10641 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-10-02 12:16:33 +00:00
Luca Barbato
89523beea4 Sanitize altivec code so it can be built with runtime check properly
Originally committed as revision 10640 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-10-02 11:39:32 +00:00
Diego Biurrun
a1d0b6a277 cosmetics: Fix AltiVec spelling.
Originally committed as revision 10639 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-10-02 10:34:57 +00:00
Diego Biurrun
6006a68989 cosmetics: Fix indentation after last commit.
Originally committed as revision 10638 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-10-02 10:26:42 +00:00
Diego Biurrun
465c9fdeeb Remove pointless HAVE_ALTIVEC #ifdefs from a file that only contains AltiVec
optimizations and no general PPC optimizations. Instead make the file be
compiled conditional to HAVE_ALTIVEC.

Originally committed as revision 10637 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-10-02 10:22:22 +00:00
Diego Biurrun
7fd7259a3f Remove const vector macro indirection that is useless and obfuscating
now that the Metrowerks workarounds are gone.

Originally committed as revision 10633 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-10-01 14:23:36 +00:00
Diego Biurrun
cd195f14c6 Remove Metrowerks compiler workaround.
Originally committed as revision 10632 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-10-01 14:16:07 +00:00
Diego Biurrun
dead9db83a Remove Metrowerks compiler workaround.
Originally committed as revision 10631 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-10-01 14:10:49 +00:00
Loren Merritt
286127c5dd div -> mul
Originally committed as revision 10630 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-10-01 05:56:30 +00:00
Loren Merritt
b8de342919 simplify lpc
Originally committed as revision 10628 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-30 03:36:13 +00:00
Loren Merritt
d1a5c4216c 20% faster lpc, 6% overall flac decoding
Originally committed as revision 10627 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-30 03:01:56 +00:00
Loren Merritt
08965b22e2 replace FIR with finite differences.
3x faster decode_subframe_fixed().
overall flac decoding: 10% faster if file was encoded with fixed predictors.

Originally committed as revision 10626 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-30 02:12:03 +00:00
Loren Merritt
bfdd5bc1f1 unroll finite differences to avoid swapping registers.
1.5x faster encode_residual_fixed().
overall flac encoding: 3% faster at compression_levels 0-2.

Originally committed as revision 10625 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-29 23:44:34 +00:00
Loren Merritt
a309dce75f encode_residual_fixed(): replace FIR with finite differences.
4x faster order 2, 3.5x order 3, 3x order 4.
overall flac encoding: 35% faster at compression_levels 0-2, no effect at higher levels.

Originally committed as revision 10624 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-29 23:21:57 +00:00
Loren Merritt
6810b93a81 sse2 version of compute_autocorr().
4x faster than c (somehow, even though doubles only allow 2x simd).
overal flac encoding: 15-50% faster on core2, 4-11% on k8, 3-13% on p4.

Originally committed as revision 10621 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-29 22:31:18 +00:00
Vladimir Voroshilov
8787d8377f AMV video decoder.
Patch by Vladimir Voroshilov (voroshil - gmail - com)

Originally committed as revision 10617 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-29 15:20:22 +00:00
Ronald S. Bultje
55ffe9df2a Use emms_c() instead of ifdef
patch by: Ronald S. Bultje rsbultje a gmail d com

Originally committed as revision 10616 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-29 15:09:34 +00:00
Vladimir Voroshilov
a449faeacb Add variables to prepare to the AMV decoder patch.
Patch by Vladimir Voroshilov (voroshil - gmail - com)

Originally committed as revision 10614 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-29 12:52:56 +00:00
Loren Merritt
19b9c7cc66 was computing one more autocorrelation coefficient that was actually used
Originally committed as revision 10613 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-29 07:43:52 +00:00
Loren Merritt
14bd2a9f25 replace brute force find_optimal_param() with a closed-form solution.
overall flac encoding: 4-15% faster.
output is not identical to the previous algorithm due to occasional rounding
errors, but the differece is less than .0005% bitrate.

Originally committed as revision 10612 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-29 05:41:27 +00:00
Loren Merritt
f6215b1b06 gcc isn't smart enough to factor out duplicate stores
Originally committed as revision 10611 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-29 01:54:25 +00:00
Ivan Kalvachev
551109d48a On bitstream error is_intra_more_likely() could use dsp.sad[0]() that will segfault when xvmc is in use.
Originally committed as revision 10610 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-28 20:38:32 +00:00
Loren Merritt
28e968c4a4 2.5x faster compute_autocorr()
overall flac encoding: 15-50% faster on core2, 8-30% on k8, 2-20% on p4 (depending on compression_level)

Originally committed as revision 10606 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-28 06:06:18 +00:00
Panagiotis Issaris
9846cbdb13 cosmetics: typos
Originally committed as revision 10602 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-27 11:29:21 +00:00
Panagiotis Issaris
93f0c0a4ca Remove redundant test.
Originally committed as revision 10601 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-27 10:45:16 +00:00
Vitor Sessak
3a7f5d072a AMV audio decoder
Originally committed as revision 10598 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-27 06:21:57 +00:00
Loren Merritt
815d96a65d oops, revert unrelated change
Originally committed as revision 10597 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-27 03:16:25 +00:00
Loren Merritt
dc44d4ad64 unroll encode_residual_lpc(). speedup varies between 1.2x and 1.8x depending on lpc order.
Originally committed as revision 10596 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-27 02:42:00 +00:00
Jeff Downs
2ddcf84bb7 h264/PAFF preparation: use DELAYED_PIC_REF to mark non-refs frames as held for delayed output
patch by Jeff Downs, heydowns a borg d com
original thread:
Subject: [FFmpeg-devel] [PATCH] Implement PAFF in H.264
Date: 18/09/07 20:30

Originally committed as revision 10592 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-26 13:28:13 +00:00
Loren Merritt
0d2caa37c5 oops, potential overflow on really large blocks
Originally committed as revision 10587 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-25 23:34:48 +00:00
Loren Merritt
bd49d4fd49 optimize decode_subframe_lpc()
50%/67%/43% faster on core2/k8/p4, making flac decoding overall 24%/25%/11% faster

Originally committed as revision 10586 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-25 23:31:13 +00:00
Loren Merritt
f74471e043 optimize encode_residual_lpc()
37%/45%/90% faster on core2/k8/p4, making flac encoding overall 15%/17%/40% faster at compression_level>=8 (less at low levels).

Originally committed as revision 10585 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-25 23:30:29 +00:00
Aurelien Jacobs
7ecae905b6 simplify
Originally committed as revision 10584 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-25 22:33:31 +00:00
Aurelien Jacobs
d7af6a9de4 rename one variable to be consistent with the rest of the file
Originally committed as revision 10583 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-25 22:31:00 +00:00
Aurelien Jacobs
442b145abb consistent spelling: plan => plane
Originally committed as revision 10582 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-25 21:01:34 +00:00
Aurelien Jacobs
d3f9edbafa simplify
Originally committed as revision 10576 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-25 19:22:47 +00:00
Aurelien Jacobs
f62a2b61f9 cosmetic: indent
Originally committed as revision 10575 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-25 19:16:38 +00:00
Aurelien Jacobs
91fc2cf150 add a new vp6a codec (add alpha plan support to vp6)
Originally committed as revision 10574 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-25 19:12:46 +00:00
Andreas Öman
58f66029b6 reindent
Originally committed as revision 10573 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-25 08:43:49 +00:00
Diego Biurrun
e0a5d77132 Replace HAVE_BFIN with ARCH_BFIN. Blackfin is a CPU architecture, not an
instruction set extension and configure sets ARCH_BFIN, not HAVE_BFIN.

Originally committed as revision 10572 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-25 07:30:22 +00:00
Aurelien Jacobs
247df384ec move all model related tables into their own struct
Originally committed as revision 10571 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-24 22:29:11 +00:00
Diego Biurrun
1218a7e33d cosmetics: Sort CODEC_ID list.
Originally committed as revision 10570 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-24 21:18:45 +00:00
Aurelien Jacobs
a7d70d88df rename vp56_b6to3 to vp56_b2p
Originally committed as revision 10569 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-24 20:52:11 +00:00
Aurelien Jacobs
1457516f70 some simplifications and uniformisation
Originally committed as revision 10568 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-24 20:43:47 +00:00
Kostya Shishkov
81fc2f37db Remove check for input buffer size as it does not guarantee that
decoder will not run out of output buffer bounds (and all suspected
decoders have their own checks now).

Originally committed as revision 10567 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-24 16:50:32 +00:00
Aurelien Jacobs
b70335a28d add support for yuva420p colorspace (yuv420p + alpha)
Originally committed as revision 10565 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-24 13:21:41 +00:00
Andreas Öman
1136d34a44 factor out dequant table lookup outside loops, gives a 1-2% speed-up
patch by Andreas Öman %andreas A olebyn P nu%
original thread:
Date: Sep 24, 2007 12:59 PM
Subject: [FFmpeg-devel] [PATCH] h264: factor out dequant table lookup outside loops

Originally committed as revision 10564 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-24 13:01:15 +00:00
Kostya Shishkov
4783cf0d09 Do not try to decode more data than output buffer may hold
Originally committed as revision 10560 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-24 03:32:24 +00:00
Diego Biurrun
8b505fc689 VIS-specific code should be enabled conditional to HAVE_VIS, not ARCH_SPARC.
Originally committed as revision 10559 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-23 21:59:09 +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
Diego Biurrun
8b03def65f Move VIS CFLAGS settings into configure.
Originally committed as revision 10555 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-23 21:06:08 +00:00
Diego Biurrun
b146873c94 VIS-specific code should be compiled conditional to HAVE_VIS, not ARCH_SPARC.
Originally committed as revision 10554 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-23 21:02:22 +00:00
Kostya Shishkov
ac14047927 Fix decoding of VMDs representing sprites (Last Dynasty, Woodruff).
Fixes issue 101

Originally committed as revision 10552 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-23 16:11:07 +00:00
Reimar Döffinger
61858a76f2 Apply skip_loop_filter before checking if we can parallelize with the selected
loop filter

Originally committed as revision 10549 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-22 10:28:22 +00:00
Kostya Shishkov
a2085a7e9d Guard against output buffer overflows
Originally committed as revision 10548 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-22 09:21:43 +00:00
Kostya Shishkov
675a0583b4 Do not decode more data than output buffer may hold
Originally committed as revision 10547 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-22 09:09:47 +00:00
Baptiste Coudurier
32bbb99d0a HDYC fourcc, sample hdyc/Test2.avi
Originally committed as revision 10541 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-21 18:23:46 +00:00
Andreas Öman
a27d6e714f Simplify H.264 decode_cabac_mb_cbp_luma(), giving a ~0.5% speedup.
patch by Andreas Öman, andreas olebyn nu
Date: Thu, 20 Sep 2007 12:59:19 +0200
Subject: [FFmpeg-devel] [PATCH] simplify h264's decode_cabac_mb_cbp_luma()

Originally committed as revision 10537 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-21 00:26:31 +00:00
Aurelien Jacobs
dee15eceae allcodecs.h and allformats.h are not used anymore
Originally committed as revision 10536 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-20 20:42:50 +00:00
Aurelien Jacobs
d999cff5a3 remove last dependencies on allformats.h and allcodecs.h
Originally committed as revision 10535 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-20 20:36:15 +00:00
Ivan Kalvachev
ee28dedc86 Remove inline from function that is exported.
Issue noticed by Bernhard Rosenkraenzer.

Originally committed as revision 10529 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-18 18:12:53 +00:00
Marc Hoffman
584a3ac907 blackfin vsad primitives
Originally committed as revision 10521 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-17 13:23:16 +00:00
Marc Hoffman
56261c6150 properly tell the compiler that A0 and A1 are clobbered
Originally committed as revision 10520 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-17 13:17:50 +00:00
Diego Biurrun
4981218420 Remove redundant ARCH_SPARC #ifdef, the file is compiled conditional to
ARCH_SPARC anyway.

Originally committed as revision 10517 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-17 10:14:56 +00:00
Aurelien Jacobs
84a72b1675 remove obsolete and wrong extern declaration
Originally committed as revision 10512 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-16 22:50:12 +00:00
Diego Biurrun
1fe2d0fd1a cosmetics: typo
Originally committed as revision 10507 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-16 16:23:34 +00:00
Andreas Öman
50c21814b9 fix image corruption when with multi-threaded decoding.
dequant-tables were not correctly reinitialized in the slave
contexts when a PPS came with updated matrices.
Patch by Andreas Öman %andreas A olebyn P nu%
Original thread:
date: Sep 16, 2007 6:14 AM
subject: [FFmpeg-devel] Parallelized h264 image corruption bug

Originally committed as revision 10505 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-16 10:37:07 +00:00
Kostya Shishkov
2a898132a2 Enable error resilience in WMV3/VC-1 decoder
Originally committed as revision 10502 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-15 11:06:27 +00:00
Kostya Shishkov
a9d78ac51a HALFPQ should be used only for when PQUANT is selected
Originally committed as revision 10500 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-15 09:24:53 +00:00
Kostya Shishkov
f7d2a43707 In case when any quantizer may occur, HALFPQ should be zero
Originally committed as revision 10499 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-15 09:23:58 +00:00
Justin Ruggles
a135bea507 skip incomplete frames
Originally committed as revision 10497 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-15 02:44:28 +00:00
Justin Ruggles
3df880934e better AC3 header error reporting
Originally committed as revision 10496 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-15 02:41:24 +00:00
Justin Ruggles
d5b7144e1f fix random dithering of zero-bit mantissas
Originally committed as revision 10495 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-15 00:43:40 +00:00
Justin Ruggles
bfcf690c68 cosmetics: rename variables. tbl->tab for consistency with other AC3 tables
Originally committed as revision 10494 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-15 00:19:21 +00:00
Justin Ruggles
396a6ee50e fix decoding of DolbyNet AC3
Originally committed as revision 10493 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-15 00:00:57 +00:00
Kostya Shishkov
f0dd9d4505 Check unp_size for possible overflows too
Originally committed as revision 10490 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-14 06:01:29 +00:00
Diego Biurrun
b3e4d266f4 Pass correct CPU flags to compilation of sparc/simple_idct_vis.o.
based on a patch by Denes Balatoni, dbalatoni interware hu

Originally committed as revision 10486 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-13 09:13:56 +00:00
Kostya Shishkov
e938637b2c Add checks on input/output buffers size for some audio decoders
Originally committed as revision 10485 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-13 05:59:58 +00:00
Kostya Shishkov
bf4a1f17ee Monkey Audio decoder
Originally committed as revision 10484 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-13 03:22:47 +00:00
Michael Niedermayer
f612801465 fix timestamps used for ratecontrol
these were wrong (in pts vs dts sense) when b frames were in use
they were also wrong if the average framerate was smaller than 1/timebase
resulting in totally wrong final bitrate

Originally committed as revision 10477 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-11 22:46:41 +00:00
Michael Niedermayer
b9b7472eb5 cosmetic
Originally committed as revision 10465 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-10 00:31:27 +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
Reimar Döffinger
ba430e0cfa dsputil must be initialized before calling rtjpeg init.
Originally committed as revision 10463 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-09 18:14:11 +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
Reimar Döffinger
1551e8e87f Properly handle nuv file with changing resolution
Originally committed as revision 10448 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-09 10:20:47 +00:00
Reimar Döffinger
fd065d0593 Make sure rtjpeg quality is a valid value
Originally committed as revision 10444 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-09 09:16:47 +00:00
Reimar Döffinger
6cf7e81f8c Fix extreme stupidity: buffer size check must of course be before buffer use!
Originally committed as revision 10443 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-09 09:00:12 +00:00
Reimar Döffinger
048905a484 10l, add check forgotten in last commit
Originally committed as revision 10442 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-09 08:52:53 +00:00
Reimar Döffinger
4f8a91c961 First ugly and slow attempt to fix nuv files with extra frameheader
and per-frame rtjpeg quality

Originally committed as revision 10441 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-09 08:42:49 +00:00
Reimar Döffinger
c612b00d7e Simplify nuv: factor out LZO decompression
Originally committed as revision 10440 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-09 08:22:07 +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
Andreas Öman
7ae94d525c Indentation
patch by Andreas Öman

Originally committed as revision 10432 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-07 19:19:49 +00:00
Andreas Öman
ec970c2187 Let H.264 decoder skip deblocking across slices
if running with multiple threads and CODEC_FLAGS2_FAST is set.
Thus, it may decode the slices in parallel to gain speed.

Patch by Andreas Öman: [andreas olebyn nu]

Originally committed as revision 10431 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-07 18:27:13 +00:00
Limin Wang
75316e1dcc Set data_size to zero when DCA header parse failed
Patch by Limin Wang <lance('\\'>>1)lmwang>(0x24^'D')<gmail>('/' & 0xFE)<com>
Thread [PATCH] set data_size to zero if failed to parse dca header

Originally committed as revision 10423 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-06 14:55:13 +00:00
Benoit Fouet
bdfae2a575 Add a bitstream filter for H.264.
Originally committed as revision 10422 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-06 12:36:07 +00:00
Jeff Downs
088ed4d636 Avoid a crash when H264 MMC operation causes the short term reference
list to be emptied.
Patch by Jeff Downs: [heydowns borg com]

Originally committed as revision 10416 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-05 20:04:09 +00:00
Andreas Öman
afebe2f7ca Add slice-based parallel H.264 decoding
Patch by Andreas Öman % andreas A olebyn P nu %
NB: depends on having a thread library activated at config time, and on
having a source encoded with multiple slices
Original threads:
date: May 18, 2007 11:00 PM
subject: [FFmpeg-devel] Parallelized h264 proof-of-concept
date: Jun 15, 2007 10:10 PM
subject: [FFmpeg-devel] [PATCH] h264 parallelized, (was: Parallelized h264 proof-of-concept)
date: Jun 25, 2007 7:02 PM
subject: Re: [FFmpeg-devel] [PATCH] h264 parallelized

Originally committed as revision 10407 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-05 16:18:15 +00:00
Tao Huang
005b683744 Fix put_*_xy2_arm bug and enable put_pixels16_arm and put_pixels8_y2_arm.
Speed up > 4%.
patch by Tao Huang, ulysses.huang gmail com

Originally committed as revision 10402 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-05 11:05:33 +00:00
Diego Biurrun
770202c3af Sort one more list alphabetically.
Originally committed as revision 10401 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-05 10:38:59 +00:00
Guillaume Poirier
14c2634bcc Fix links to ARM documentation
Originally committed as revision 10399 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-05 07:49:01 +00:00
Kostya Shishkov
c92a30bb06 Move H.264 intra prediction functions into their own context
Originally committed as revision 10397 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-05 05:30:08 +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
c08bbe6c57 fix decoding of dracula.4xm before diego complains
Originally committed as revision 10393 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-05 01:21:32 +00:00
Michael Niedermayer
f9f835ee89 fix segfault with dracula.4xm
closes issue132

Originally committed as revision 10392 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-05 01:14:17 +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
Mike Melanson
f55f27ba98 Fix issue 123 (Support Magic-carpet fli version,
https://roundup.mplayerhq.hu/roundup/ffmpeg/issue123 ) by rearranging the bit depth

Originally committed as revision 10290 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-04 17:31:25 +00:00
Carl Eugen Hoyos
5d3de5ad22 Silence warnings about NAL_SVC_NON_IDR in H.264.
patch by Carl Eugen Hoyos, cehoyos ag.or at

Originally committed as revision 10289 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-04 14:48:39 +00:00
Benoit Fouet
0a1a0a805a add a close function to bitstream filter
Originally committed as revision 10288 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-04 06:48:22 +00:00
Carl Eugen Hoyos
1c746a490d Remove error raising when explicitely skipping frame
patch by Carl Eugen Hoyos: [cehoyos ag or at]
original thread:
[FFmpeg-devel] [PATCH] Don't let ctx->skip_frame>0 produce errors
date: 08/30/2007 01:30 PM

Originally committed as revision 10286 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-03 08:46:24 +00:00
Vitor Sessak
becc0ef95b Remove reimplementation of get_unary.
Based on a patch by Alex Beregszaszi.

Originally committed as revision 10279 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-01 21:03:17 +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
Aurelien Jacobs
c0fee8c985 add a warning message for unsupported kind of encoding
Originally committed as revision 10277 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-09-01 13:04:25 +00:00
Vitor Sessak
11f81e6a07 Cosmetical: Empty line removal
Originally committed as revision 10275 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-31 18:51:22 +00:00
Vitor Sessak
63ecfc1fe4 Comment about unsupported sample size
Originally committed as revision 10273 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-31 15:05:40 +00:00
Marc Hoffman
1cc6bd4f10 renaming ARCH_BFIN to HAVE_BFIN
Originally committed as revision 10272 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-31 14:58:44 +00:00
Diego Biurrun
a861e7e3b6 cosmetics: Add some whitespace for better readability.
Originally committed as revision 10270 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-30 23:16:34 +00:00
Diego Biurrun
ea2c666b0e cosmetics: Sort bitstream filters.
Originally committed as revision 10269 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-30 23:13:10 +00:00
Diego Biurrun
1e97ce4a31 cosmetics: Sort some lines, whitespace changes.
Originally committed as revision 10268 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-30 23:11:24 +00:00
Diego Biurrun
d8dfda7e51 Use a consistent multiple inclusion guard.
Originally committed as revision 10267 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-30 22:41:54 +00:00
Denes Balatoni
d9420d4df1 add simple_idct implemented in Sparc VIS
patch by Balatoni Denes % dbalatoni A interware P hu%

Original thread: Messages starting with:
[PATCH] SPARC VIS simple_idct *

Originally committed as revision 10266 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-30 19:18:23 +00:00
Vitor Sessak
aa33d8096a Rename function
Originally committed as revision 10265 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-30 16:40:51 +00:00
Vitor Sessak
321c313836 Replace two #define's by inline functions
Originally committed as revision 10264 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-30 16:04:00 +00:00
Marc Hoffman
14da6549a7 Hooking bfin/mathops.h
Originally committed as revision 10263 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-30 15:16:52 +00:00
Marc Hoffman
543a90d14a Blackfin 32bit multiplication primitives MULH MUL16
Originally committed as revision 10262 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-30 15:15:48 +00:00
Reimar Döffinger
eafa1c90e5 Replace complicated and currently broken manual alignment code by
DECLARE_ALIGNED_16. Fixes crash in ff_snow_horizontal_compose97i_sse2

Originally committed as revision 10261 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-30 11:41:58 +00:00
Luca Barbato
55bf7fb613 snow altivec is broken
Originally committed as revision 10256 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-28 13:39:50 +00:00
Roberto Togni
b6f508bbcc Change 4xm demuxer and video decoder to pass the video format version in
extradata instead of codec_tag.

Originally committed as revision 10253 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-27 21:58:39 +00:00
Michael Niedermayer
267b9479ac typo
Originally committed as revision 10250 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-27 10:39:31 +00:00
Diego Biurrun
06b00c5f65 Simplify preprocessor directives.
Originally committed as revision 10249 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-27 09:21:33 +00:00
Diego Biurrun
c97f54020d Change SYS_DARWIN preprocessor checks to __APPLE__, they are specific
to Mac OS X rather than to Darwin.

Originally committed as revision 10247 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-27 09:17:03 +00:00
Aurelien Jacobs
ca1daf0ad0 add get_unary_0_33() to help gcc with inlining
Originally committed as revision 10242 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-26 22:38:57 +00:00
Aurelien Jacobs
2407a7c10f cleanup get_unary()
Originally committed as revision 10241 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-26 22:34:49 +00:00
Aurelien Jacobs
28296f9c9e move get_unary() to its own file
Originally committed as revision 10240 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-26 22:33:48 +00:00
Diego Biurrun
a41f4eacd6 Do not wrongly mark Apple gcc workarounds as being specific to Darwin.
Originally committed as revision 10239 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-26 22:06:40 +00:00
Guillaume Poirier
16dae5173b remove alignment correction of the destination pointers in luma_16x6
interpolations, since they are always 16-bytes aligned in practice.
Add asserts to ease narrowing down potential image corructions on exotic plateforms

Based on a patch by Mauricio Alvarez % lokifo A gmail P com %
Original thread:
Date: Jun 26, 2007 1:07 PM
Subject: Re: [FFmpeg-devel] [PATCH] h264 luma interpolation 8x8 for altivec

Originally committed as revision 10238 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-26 21:47:58 +00:00
Ramiro Polla
7bcc1d5b66 CONFIG_7REGS has been renamed to HAVE_7REGS
Originally committed as revision 10237 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-26 16:10:53 +00:00
Michael Niedermayer
90e9e94d0f workaround gcc bug, untested as my gcc is not complaining
Originally committed as revision 10236 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-26 12:34:22 +00:00
Michael Niedermayer
cefa599953 optimize the first vertical lifting step, this also prevents another
overflow, the last known possible overflow

Originally committed as revision 10234 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-26 11:16:23 +00:00
Michael Niedermayer
c90762766a optimize 1st horizontal lifting step
Originally committed as revision 10231 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-26 08:31:55 +00:00
Michael Niedermayer
1104bf2b20 typo
Originally committed as revision 10230 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-26 08:03:23 +00:00
Michael Niedermayer
8b5029295d get rid of totally senseless "m" + read in register we have enough
registers to keep everything in registers

Originally committed as revision 10229 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-26 06:51:51 +00:00
Michael Niedermayer
bc1e78d896 simplify senselessly complex addressing
Originally committed as revision 10228 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-26 02:02:14 +00:00
Michael Niedermayer
25bb359f73 cosmetics
remove brain amputated mmx wrappers around sse2 macros
fix name of ..._sub macro to match ..._add naming

Originally committed as revision 10227 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-26 01:20:09 +00:00
Michael Niedermayer
629750290f avoid overflow in the 3rd lifting step, this now needs mmx2 at minimum
(patch for plain mmx support is welcome ...)

Originally committed as revision 10226 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-26 01:11:02 +00:00
Michael Niedermayer
b696a4c91d avoid an overflow in the 1 horizontal lifting step
Originally committed as revision 10225 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-25 19:04:33 +00:00
Michael Niedermayer
9caa1cccb9 prevent one overflow in the first vertical lifting step
Originally committed as revision 10224 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-25 16:28:45 +00:00
Michael Niedermayer
3e0f7126b5 update mmx code to latest snow changes
note, the code likely can overflow and thus needs some more changes
sse2 updated too but disabled as it is untested

Originally committed as revision 10223 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-25 15:20:56 +00:00
Diego Biurrun
273b0cd3c4 prettyprinting cosmetics
Originally committed as revision 10221 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-25 09:23:17 +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
Diego Biurrun
830bf1f20d whitespace/indentation cosmetics
Originally committed as revision 10217 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-24 23:49:11 +00:00
Diego Biurrun
2722c98128 Remove HAVE_ALTIVEC preprocessor directives that are only compiled
when AltiVec is enabled anyway.

Originally committed as revision 10216 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-24 23:01:50 +00:00
Diego Biurrun
f9edc2331d Fix trivial mixed declarations and code warning caused by a double semicolon.
Originally committed as revision 10212 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-24 15:42:50 +00:00
Diego Biurrun
e4506f0c98 Remove SYS_DARWIN preprocessor directive that is just a duplicate of a
gcc-specific directive a few lines below.

Originally committed as revision 10211 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-24 15:38:37 +00:00
Diego Biurrun
4b180bbd73 Replace SYS_DARWIN by the more correct __APPLE_CC__, these preprocessor
directives are aimed at idiosyncracies of Apple's gcc version.

Originally committed as revision 10210 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-24 15:18:41 +00:00
Diego Biurrun
b1312aa24d Merge __MWERKS__ preprocessor directives.
Originally committed as revision 10208 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-24 15:08:46 +00:00
Diego Biurrun
8008a04325 Move Apple gcc AltiVec vector declaration syntax to libavutil.
Originally committed as revision 10207 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-24 15:04:00 +00:00
Diego Biurrun
08f87a9c99 Replace SYS_DARWIN by the more correct __APPLE_CC__, these preprocessor
directives are aimed at idiosyncracies of Apple's gcc version.

Originally committed as revision 10206 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-24 14:57:46 +00:00
Michael Niedermayer
be693f956e int->uint8_t
Originally committed as revision 10205 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-24 14:18:09 +00:00
Michael Niedermayer
50464a1e83 int->int8_t (no need for them to be int ...)
Originally committed as revision 10204 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-24 14:02:02 +00:00
Reimar Döffinger
b1ec601f7f Add request_channels member to AVCodecContext so we now have a proper
way to tell the decoder how many output channels we would like.

Originally committed as revision 10199 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-23 20:28:28 +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
Luca Abeni
e02f7490da Initialize the "stc" variable before using it in ff_find_start_code()
Originally committed as revision 10193 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-23 07:02:27 +00:00
Diego Biurrun
9d16f87ffd Rename CONFIG_DARWIN to SYS_DARWIN, it is not configurable (in FFmpeg).
Originally committed as revision 10190 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-22 22:46:39 +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
Benoit Fouet
e2d0eeecf7 right filename in doxygen comment
Originally committed as revision 10185 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-22 15:03:14 +00:00
Diego Biurrun
e9bfae45bb cosmetics: alphabetical order
Originally committed as revision 10184 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-22 13:19:10 +00:00
Diego Biurrun
d55388d028 Simplify preprocessor directives.
Originally committed as revision 10181 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-22 13:04:10 +00:00
Marc Hoffman
18b8b43b4f make clean bfin
Originally committed as revision 10180 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-22 12:54:49 +00:00
Diego Biurrun
57b499c7da Identifiers starting with underscores are reserved.
Originally committed as revision 10179 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-22 12:41:16 +00:00
Aurelien Jacobs
5ab657079d parsers and bsfs declarations are not meant to be part of public API
Originally committed as revision 10173 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-21 18:24:08 +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
Aurelien Jacobs
289a723ce3 asv1.c directly uses Put/GetBitContext, so it should include bitstream.h
Originally committed as revision 10169 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-21 15:48:08 +00:00
Michael Niedermayer
30cd3e66bd remove code which become unused by the previous changes
Originally committed as revision 10166 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-21 00:05:30 +00:00
Michael Niedermayer
72dee89b5d Simplify and optimize the 4th vertical lifting step of the SSE2 code (untested)
This also reduces the needed headroom in that step by 1 bit

Originally committed as revision 10165 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-21 00:03:18 +00:00
Michael Niedermayer
d0dae46a90 Simplify and optimize the 4th vertical lifting step of the MMX code
This also reduces the needed headroom in that step by 1 bit

Originally committed as revision 10164 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-21 00:02:19 +00:00
Michael Niedermayer
1ffbbef217 Simplify and speedup code, reduce needed headroom by 2 bits in the 3rd
vertical lifting step of the SSE2 code (untested)

Originally committed as revision 10163 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-20 23:59:20 +00:00
Michael Niedermayer
4bf1790421 simplify, speedup and reduce needed headroom by 2 bits in the 3rd
vertical lifting step

Originally committed as revision 10162 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-20 23:54:49 +00:00
Michael Niedermayer
dd30437bbe replace <<1 by add for SSE2 (untested)
Originally committed as revision 10161 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-20 23:11:05 +00:00
Michael Niedermayer
7e665a3943 replace <<1 by add
Originally committed as revision 10160 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-20 23:09:39 +00:00
Michael Niedermayer
eee649d3b5 slightly change horizontal lift3 so it needs 1 bit less headroom
Originally committed as revision 10159 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-20 23:02:59 +00:00
Michael Niedermayer
be3b22f9ca remove idiotc double subtraction from the sse2 code (untested, no sse2 here)
Originally committed as revision 10158 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-20 22:41:47 +00:00
Michael Niedermayer
8510c519e7 fixme note
Originally committed as revision 10157 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-20 22:34:42 +00:00
Michael Niedermayer
3a9f44d5d5 and of course the unneeded double subtractions were blindly put in the
mmx code
this also makes the affected code 4% faster

Originally committed as revision 10156 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-20 22:29:21 +00:00
Michael Niedermayer
f29bd6fa71 more stupid double subtractions
Originally committed as revision 10155 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-20 22:26:49 +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
Benjamin Larsson
622d633260 Cosmetics, indentation.
Originally committed as revision 10145 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-19 20:34:27 +00:00
Benjamin Larsson
1cbe9d6a78 Trellis quantization support for adpcm_swf.
Originally committed as revision 10144 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-19 20:31:53 +00:00
Reimar Döffinger
7b07d3e8fe Use defines instead of raw hex numbers to specify CRC polynomials
Originally committed as revision 10143 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-19 12:36:15 +00:00
Ramiro Polla
c8f9ef613e CONFIG_7REGS -> HAVE_7REGS
Originally committed as revision 10121 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-15 21:19:13 +00:00
Marco Gerards
9df4ce5e5b Make the Golomb decoder work for Dirac
Originally committed as revision 10119 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-15 12:59:27 +00:00
Alexander Strange
6d324c813f Statements like a = b = c = d = e; store from right-to-left, so if
you write them in the right order it comes out backwards.
This removes them from fill_rectangle().
patch by Alexander Strange %astrange A ithinksw P com%
Original thread:
Date: Aug 14, 2007 5:36 AM
Subject: [FFmpeg-devel] [PATCH] two small h264 optimizations

Originally committed as revision 10118 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-14 22:28:09 +00:00
Ramiro Polla
f3a3c72e3c Introduce AVERROR_PATCHWELCOME
Originally committed as revision 10110 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-13 22:55:04 +00:00
Diego Biurrun
9488b966c7 Move msmpeg4 tables from a header file to msmpegdata.c.
Originally committed as revision 10107 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-13 17:57:06 +00:00
Ramiro Polla
5e4c7ca224 Add attribute that forces alignment of stack to functions that need it.
Necessary for systems that don't align by default to 16 bytes, required by some
SSE instructions.
Requires GCC >= 4.2.
Based on patch by Gaël Chardon.

Originally committed as revision 10106 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-13 15:28:29 +00:00
Marc Hoffman
345bb2ad90 special handling for vp3 idct, use the c reference
Originally committed as revision 10105 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-13 14:16:20 +00:00
Michael Niedermayer
07c02992b9 use bytestream_get_le*() this also fixes a big endian bug
Originally committed as revision 10104 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-13 13:20:16 +00:00
David Bryant
a6ba65f7f2 Support for WavPack version 0x410 (false stereo chunks)
Patch by David Bryant printf("david@%s.com",wv_demuxer.long_name);
Thread [PATCH] handle WavPack stream version 0x410

Originally committed as revision 10101 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-13 05:36:50 +00:00
Kostya Shishkov
11ead90e23 Rename flag for consistency with the next commit
Originally committed as revision 10100 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-13 05:35:48 +00:00
David Conrad
42c71907cb Add av_get_bits_per_sample_format()
Originally committed as revision 10099 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-13 05:23:38 +00:00
Michael Niedermayer
40802d36bc fix type 3 aka skipped blocks for old version
Originally committed as revision 10097 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-13 01:06:04 +00:00
Michael Niedermayer
9ac34d947a fix motion vectors for old version
Originally committed as revision 10096 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-13 01:05:19 +00:00
Michael Niedermayer
cf786021a6 set pix_fmt properly depending on version
Originally committed as revision 10095 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-13 00:56:26 +00:00
Michael Niedermayer
70bbeb6fbf use version instead of some random 32bit value to switch between 16 and
32bit versions (this is more reliable, the old code failed on some files)

Originally committed as revision 10094 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-13 00:55:39 +00:00
Michael Niedermayer
a0d30cbcbf replace vlc_type by version and set that from codec_tag which contains the
4xm video version from the demuxer

Originally committed as revision 10093 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-13 00:53:55 +00:00
Michael Niedermayer
b74fb935f8 support ifr2 from Toy-Story2_better-image-quality.4xa
Originally committed as revision 10091 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-12 15:47:27 +00:00
Guillaume Poirier
3ca96802e2 use shorter types vec_"type" instead of the too long vector "type"
part 1 of h264 luma interpolation 8x8 for altivec contributed by
Mauricio Alvarez % lokifo A gmail P com %
Original thread:
Date: Jun 26, 2007 8:15 PM
Subject: Re: [FFmpeg-devel] [PATCH] h264 luma interpolation 8x8 for altivec

Originally committed as revision 10090 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-12 13:50:06 +00:00
Michael Niedermayer
62f68aa9bf add second vlc table
pfr* of Toy-Story2_better-image-quality.4xa are decoded now without
bitstream errors

Originally committed as revision 10089 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-12 12:22:19 +00:00
Alexander Strange
880003bbb9 Don't check the return value of decode_cabac_residual since it always
returns 0. This leads to a 0.4% speed-up.
Patch by Alexander Strange  astrange at_ ithinksw dot com
Original thread:
Date: Aug 11, 2007 11:44 PM
Subject: [FFmpeg-devel] [PATCH] h264: don't check decode_cabac_residual return

Originally committed as revision 10084 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-12 00:07:29 +00:00
Aurelien Jacobs
88e2d5882b more usage of av_clip()
Originally committed as revision 10082 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-11 23:29:21 +00:00
Aurelien Jacobs
e4a50e6d2e one more simplification
Originally committed as revision 10081 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-11 23:23:20 +00:00
Aurelien Jacobs
295f373792 various simplifications around recent av_clip_int16() usage
Originally committed as revision 10080 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-11 23:17:03 +00:00
Michael Niedermayer
b0f3382873 fix decoding of samples.mplayerhq.hu/game-formats/idroq/demoEnd.roq
closes issue78

Originally committed as revision 10079 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-11 23:09:28 +00:00
Aurelien Jacobs
aee481cebe use av_clip_int16() where it makes sense
Originally committed as revision 10078 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-11 22:48:55 +00:00
Michael Niedermayer
0701006e34 ensure that default_get_buffer() doesnt reuse images if the dimension or
pix_fmt changed
fixes heap overflow, possibly exploitable

Originally committed as revision 10064 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-10 19:28:28 +00:00
Baptiste Coudurier
6aacfd22ab dnxhd 120 interlaced support
Originally committed as revision 10063 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-10 19:23:14 +00:00
Roman Shaposhnik
905694d96e * renaming (ST|LD)(16|32|64) -> AV_(R|W)N(16|32|64)
Originally committed as revision 10023 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-09 17:01:15 +00:00
Alex Beregszaszi
3a5729eae1 use skip_bits where appropriate
Originally committed as revision 10005 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-09 01:08:28 +00:00
Alex Beregszaszi
7ae7300ee3 use skip_bits where appropriate
Originally committed as revision 10004 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-09 00:57:36 +00:00
Alex Beregszaszi
7f95d9f620 fix compilation with TRACE enabled
Originally committed as revision 10003 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-09 00:54:41 +00:00
Justin Ruggles
222ae64c3d cosmetics: vertical alignment
Originally committed as revision 10002 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-09 00:39:35 +00:00
Justin Ruggles
5066f51502 comments modification: add, clean up, Doxygenize, and reword
Originally committed as revision 10001 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-09 00:36:49 +00:00
Alex Beregszaszi
b4d00c20dc use reget_buffer and remove internal copying of buffer - codec works again
Originally committed as revision 10000 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-09 00:16:27 +00:00
Alex Beregszaszi
5fc32c275e use get_bits1(..) instead get_bits(.., 1)
Originally committed as revision 9999 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-09 00:13:31 +00:00
Roman Shaposhnik
67c1b32f3d * getting rid of code duplication
Originally committed as revision 9997 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-08 23:58:23 +00:00
Alex Beregszaszi
3c2ddb5920 use get_unary from bitstream.h
Originally committed as revision 9996 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-08 22:54:47 +00:00
Alex Beregszaszi
57d473f457 use get_unary from bitstream.h
Originally committed as revision 9995 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-08 22:36:12 +00:00
Alex Beregszaszi
971e878dca copy get_unary from vc1
Originally committed as revision 9994 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-08 20:38:30 +00:00
Alex Beregszaszi
ec5dc2c1af debug: tell how much bits are skipped with unknown nal code
Originally committed as revision 9993 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-08 20:27:18 +00:00
Carl Eugen Hoyos
af7d793c00 kill warning
patch by Carl Eugen Hoyos [cehoyos * ag or at]

Originally committed as revision 9981 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-08 07:04:23 +00:00
Vitor Sessak
92df891001 More indentation
Originally committed as revision 9979 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-07 12:53:22 +00:00
Vitor Sessak
db695867eb Cosmetics: indentation
Originally committed as revision 9978 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-07 12:50:41 +00:00
Vitor Sessak
4a5e6389fe Rename function
Originally committed as revision 9977 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-07 12:44:23 +00:00
Justin Ruggles
6ea67bbb60 enable the native AC-3 decoder
Originally committed as revision 9968 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-07 00:02:29 +00:00
Michael Niedermayer
5eac5f29e3 make output buffer larger so drift compensation can work
Originally committed as revision 9967 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-06 23:34:41 +00:00
Benjamin Larsson
00a254b7fe Don't encode the first sample twice.
Originally committed as revision 9962 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-06 19:49:18 +00:00
Baptiste Coudurier
d0fa156fc5 cosmetic, indentation
Originally committed as revision 9960 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-06 08:42:05 +00:00
Justin Ruggles
f5cefb21d5 cosmetics: blank lines, remove some comments
Originally committed as revision 9955 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-05 21:48:46 +00:00
Justin Ruggles
82758fd690 add pointer to the parent context for use with av_log()
Originally committed as revision 9954 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-05 21:34:33 +00:00
Justin Ruggles
77416325cb use array for dynamic range scaling factors
Originally committed as revision 9953 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-05 21:10:09 +00:00
Michael Niedermayer
d7826b58d2 make wmv1 and wmv2 playable with M$ DMO decoder
Originally committed as revision 9950 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-05 20:03:37 +00:00
Justin Ruggles
01f354531d add dialogue normalization
Originally committed as revision 9948 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-05 19:36:35 +00:00
Baptiste Coudurier
fe4ff07aa0 fix decoding of adpcm swf big frames, fix RamboMJPEGAVP6_1Mbps.swf
Originally committed as revision 9946 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-05 13:41:44 +00:00
Reimar Döffinger
6628165891 Add proper license header
Originally committed as revision 9944 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-05 12:11:34 +00:00
Reimar Döffinger
369f73062b Remove AVCodecContext parameter from parse_timecode function
Originally committed as revision 9943 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-05 12:11:31 +00:00
Reimar Döffinger
e3c90129a4 Fix deinterlacing for odd height
Originally committed as revision 9942 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-05 12:11:28 +00:00
Reimar Döffinger
3c247b4ff7 Deinterlace xsub subtitles
Originally committed as revision 9941 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-05 12:11:26 +00:00
Reimar Döffinger
3143c78716 Colours except background should not be transparent
Originally committed as revision 9940 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-05 12:11:24 +00:00
Reimar Döffinger
d5049e2c69 get rid of av_rescale_q, it does not work as intended.
Originally committed as revision 9939 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-05 12:11:22 +00:00
Reimar Döffinger
d6136c7618 get rid of xsubdec array and calculate value instead
Originally committed as revision 9938 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-05 12:11:20 +00:00
Reimar Döffinger
737c5ebfc8 10l, runbits order was reversed
Originally committed as revision 9937 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-05 12:11:18 +00:00
Reimar Döffinger
5968b39635 100l, wrong argument to av_freep
Originally committed as revision 9935 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-05 12:11:13 +00:00
Reimar Döffinger
59f6f64e30 Add forgotten xsub timecode parsing
Originally committed as revision 9934 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-05 12:11:11 +00:00
Reimar Döffinger
7e2643ae8d First version of xsub decoder, not yet tested
Originally committed as revision 9933 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-05 12:11:09 +00:00
David Bryant
6b05eb3117 Add the handling of the INT32INFO block to the WavPack decoder.
Patch by David Bryant david at $codecname dot com
Thread: [FFmpeg-devel] [PATCH] handle INT32INFO in WavPack decoder

Originally committed as revision 9932 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-05 05:56:34 +00:00
Loren Merritt
2bf4aa2e93 prevent huffyuv from generating codewords of length 32. (regression in r9069)
Originally committed as revision 9921 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-05 00:29:02 +00:00
Justin Ruggles
3bbb0bf82c add support for downmixing to stereo or mono
Originally committed as revision 9916 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-04 22:32:17 +00:00
Justin Ruggles
4e09232070 use dsputil for float to signed 16-bit sample conversion
Originally committed as revision 9914 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-04 20:59:22 +00:00
Sam Hocevar
97be28d8d7 Add support for grayscale MJPEG streams sent by Axis cameras such as the
207MW (http://www.axis.com/products/cam_207mw/).
patch by Sam Hocevar, sam+ffmpeg zoy org

Originally committed as revision 9913 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-04 20:49:39 +00:00
Justin Ruggles
775369e028 cosmetics: indentation
Originally committed as revision 9911 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-04 20:32:57 +00:00
Justin Ruggles
7b4076a777 consolidate decoding of lfe and coupling channels with decoding of full-bandwidth channels.
Originally committed as revision 9910 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-04 19:19:48 +00:00
Justin Ruggles
5e61de0cc1 there are only 4 rematrixing bands
Originally committed as revision 9908 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-04 15:01:21 +00:00
Justin Ruggles
75b9b0369b cosmetics: use more appropriate names for iterator variables.
Originally committed as revision 9907 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-04 13:52:56 +00:00
Baptiste Coudurier
d3dc629c62 move dnxhd data tables to separate file
Originally committed as revision 9906 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-04 13:41:33 +00:00
Justin Ruggles
8e2eb3b674 move some variables to a more local scope.
Originally committed as revision 9905 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-04 13:30:37 +00:00
Justin Ruggles
0bff58a59a make exponent decoding consistent (prepare for merging coupling and lfe code with normal channel code).
Originally committed as revision 9904 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-04 13:26:46 +00:00
Baptiste Coudurier
0221ae8ca8 dnxhd 120 progressive support
Originally committed as revision 9903 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-04 13:26:29 +00:00
Baptiste Coudurier
3c605485bb indentation
Originally committed as revision 9902 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-04 13:18:30 +00:00
Baptiste Coudurier
6b259e439c dnxhd 185 interlaced support
Originally committed as revision 9901 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-04 13:17:53 +00:00
Baptiste Coudurier
dd661ebd36 cosmetic
Originally committed as revision 9900 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-04 13:10:16 +00:00
Baptiste Coudurier
9a0a2c9f12 no need to duplicate cid table vars in context
Originally committed as revision 9899 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-04 13:09:08 +00:00
Baptiste Coudurier
940e4bf9b9 10l, use correct cid table
Originally committed as revision 9898 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-04 13:03:12 +00:00
Baptiste Coudurier
035bc6470d add coding unit size for interlaced decoding
Originally committed as revision 9897 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-04 12:59:49 +00:00
Baptiste Coudurier
36ebf91206 should be more correct
Originally committed as revision 9896 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-04 12:43:31 +00:00
Michael Niedermayer
1ae7a85116 indent
Originally committed as revision 9894 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-04 12:21:00 +00:00
Justin Ruggles
eaf84d970f cosmetics: use braces when it makes the code easier to read.
Originally committed as revision 9893 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-04 12:04:41 +00:00
Justin Ruggles
fc59010bbf change AC3DecodeContext variable to local variable
Originally committed as revision 9892 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-04 11:55:10 +00:00
Justin Ruggles
6d96d626c6 use array instead of bitmask
Originally committed as revision 9891 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-04 11:39:47 +00:00
Michael Niedermayer
4e2b9bcc08 Make MPEG-1/2 decoder work with the libmpeg2-style bitstream reader.
Originally committed as revision 9890 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-04 11:01:11 +00:00
Justin Ruggles
3357ff338b use table for converting dynamic range codes to scale factors
Originally committed as revision 9889 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-04 03:27:05 +00:00
Justin Ruggles
5aefe3ebef use floating-point mantissa dequantization tables
Originally committed as revision 9888 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-04 03:21:17 +00:00
Justin Ruggles
04ac5cada1 cosmetics: indentation
Originally committed as revision 9887 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-04 01:14:14 +00:00
Justin Ruggles
60f07fadd3 dither zero-bit mantissas by default. remove dithering only if it's explicitly turned off.
Originally committed as revision 9886 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-04 01:13:08 +00:00
Justin Ruggles
d63f6fea50 simplify coefficient decoding
Originally committed as revision 9884 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-04 00:12:23 +00:00
Justin Ruggles
285bf28c67 merge decoding of coupling channel coefficients and regular channel coefficients
Originally committed as revision 9883 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-04 00:04:17 +00:00
Justin Ruggles
d7dc7ad05c split out coupling coefficient reconstruction into a separate function
Originally committed as revision 9882 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-03 23:53:53 +00:00
Diego Biurrun
3e5008a922 Reduce Theora decoder verbosity.
Originally committed as revision 9872 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-03 16:43:11 +00:00
Michael Niedermayer
392b748293 output last frame if seq end code is encountered
fixes video decoding of AC3TEST.vob
closes issue19

Originally committed as revision 9870 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-02 20:49:42 +00:00
Diego Biurrun
319919734d Remove unused variable.
Originally committed as revision 9868 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-02 07:42:06 +00:00
Michael Niedermayer
037df60e05 simplify s->mv_dir init
Originally committed as revision 9867 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-02 01:28:37 +00:00
Michael Niedermayer
2f446d3860 get rid of mb_type_len
Originally committed as revision 9865 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-01 22:39:03 +00:00
Michael Niedermayer
653f738780 exchange the values of MV_DIR_FORWARD and MV_DIR_BACKWARD (this is more sane,
matches the order of some other stuff and allows some simplifications)

Originally committed as revision 9864 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-01 22:12:52 +00:00
Michael Niedermayer
04b502fa36 exchange if() and for() in the MT_FIELD case
18 cpu cycles faster for matrixbench

Originally committed as revision 9863 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-01 21:17:26 +00:00
Michael Niedermayer
f4fbcd33d9 exchange for() and if() order in the MT_FRAME case
safes 24 cpu cycles

Originally committed as revision 9862 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-01 21:05:58 +00:00
Marc Hoffman
dc1ecb6a4a making reference models have the same API
Originally committed as revision 9861 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-01 20:44:08 +00:00
Michael Niedermayer
356ab1dace change
for(){
    if(){
        switch(){

to
switch(){
    for(){
        if(){

this halfs the number of times the switch is executed in bidir blocks, in
other blocks the number is the same
25 cpu cycles less with matrixbench on duron

Originally committed as revision 9860 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-01 20:37:41 +00:00
Michael Niedermayer
2952d13ad5 merge another 2 if() to save a few cpu cycles
Originally committed as revision 9858 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-01 20:04:12 +00:00
Michael Niedermayer
09d1bee89e reorder if() so that the condition can be simplified
saves another 4 cpu cycles

Originally committed as revision 9857 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-01 19:37:28 +00:00
Michael Niedermayer
0ac6b5a301 merge/simplify 2 if()
~4 cpu cylces faster for the matrixbench video

Originally committed as revision 9856 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-01 19:26:24 +00:00
Michael Niedermayer
fecc146b28 merge 2 if()
this safes 1-2 cpu cycles

Originally committed as revision 9855 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-01 19:17:36 +00:00
Baptiste Coudurier
81752d0c2b use buf_ptr to correctly decode second field
Originally committed as revision 9852 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-01 13:18:23 +00:00
Justin Ruggles
dfd57c366f align array used in mdct. fixes segfault.
Originally committed as revision 9848 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-01 01:13:58 +00:00
Michael Niedermayer
873525491e use ENABLE_GRAY
Originally committed as revision 9847 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-01 01:01:03 +00:00
Michael Niedermayer
cde9e78001 make grayscale only decoding checks in inner loops compiletime killable
Originally committed as revision 9846 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-01 00:39:39 +00:00
Michael Niedermayer
01e795aba3 move some code which was executed for every skipped MB so it is only executed
for the first skipped mb in a run

Originally committed as revision 9845 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-07-31 21:39:09 +00:00
Michael Niedermayer
4152c5ce14 get rid of a useless variable
Originally committed as revision 9844 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-07-31 21:00:17 +00:00
Michael Niedermayer
7ceab4af35 avoid 2 additions (1 cpu cycle) per MB
Originally committed as revision 9843 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-07-31 20:52:49 +00:00
Michael Niedermayer
5bfbf0a54f chroma_qscale seems not used anywhere for mpeg1/2 so do not waste cpu time setting it
Originally committed as revision 9842 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-07-31 20:44:48 +00:00
Panagiotis Issaris
b9ca204284 Fix typo
Originally committed as revision 9841 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-07-31 16:22:57 +00:00
Daniel Kristjansson
29d2dc59f9 fix mem leak
patch by Daniel Kristjansson: [danielk cuymedia net]
Original thread: [FFmpeg-devel] [PATCH] alloc_picture needs to free buffer when
it's not going to use it
Date: 07/20/2007 07:27 PM

Originally committed as revision 9838 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-07-31 14:51:21 +00:00
Diego Biurrun
c7bf7a8267 Identifiers starting with underscores are reserved.
Originally committed as revision 9837 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-07-31 06:55:48 +00:00
Andreas Öman
d4a688d029 fix cabac decoding with some Blue-Ray sources
Patch by Andreas Öman %andreas A olebyn P nu%
Original thread:
Date: Jul 7, 2007 1:23 AM
Subject: [FFmpeg-devel] Corrupted blocks and seeking issues in H264 disc sources

Originally committed as revision 9836 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-07-30 21:19:36 +00:00
Roman Shaposhnik
f49f6e8889 replacing the use of deprecated unaligned*() routines by LD64 and AV_RB32
Originally committed as revision 9834 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-07-30 18:05:46 +00:00
Panagiotis Issaris
6654296c30 Handle malloc failure
Originally committed as revision 9833 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-07-30 13:58:17 +00:00
Michael Niedermayer
a11c2a2c66 support silly PCM variant used by zork nemesis
fixes audio decoding of T000A11C.AVI

Originally committed as revision 9831 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-07-30 02:05:16 +00:00
Michael Niedermayer
2711cb28f4 prevent assert failure with negative quant_offset
Originally committed as revision 9830 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-07-29 21:34:31 +00:00
Michael Niedermayer
3dd2a1c53f warn user if max=bitrate && max > min
Originally committed as revision 9829 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-07-29 19:21:56 +00:00
Michael Niedermayer
611e7bc41b support raw 4bpp avi
fixes dance1.avi
closes issue40

Originally committed as revision 9828 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-07-29 13:32:53 +00:00
Michael Niedermayer
3bdc2fcea6 make the reference code use double instead of float where it is easy
Originally committed as revision 9827 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-07-29 10:11:12 +00:00
Michael Niedermayer
86c624af1b print max and mse
Originally committed as revision 9826 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-07-29 09:58:36 +00:00
Christophe Gisquet
7919d10c61 Make bicubic interpolation standard compliant
Patch by Christophe GISQUET
(echo -e "christophe\056gisquet\100 (antonym to malloc()) \056fr")

Thread [PATCH] Binary identicity for ffvc1 (was Re: [PATCH] VC-1 MMX DSP functions)

Originally committed as revision 9825 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-07-29 04:04:21 +00:00
Justin Ruggles
8b60bbbf5b simplify stereo rematrixing
Originally committed as revision 9824 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-07-29 00:58:32 +00:00
Justin Ruggles
b6acc57f88 change 2 fields from context to local variables
Originally committed as revision 9823 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-07-29 00:35:30 +00:00