Justin Ruggles
38c1a5c4d9
update my email address to one which does not depend on my service provider
...
Originally committed as revision 14797 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-08-16 22:42:59 +00:00
Justin Ruggles
81fc8a63c5
use range of lpc orders in ORDER_METHOD_EST
...
Originally committed as revision 14796 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-08-16 21:39:09 +00:00
Justin Ruggles
9045f5e72d
cosmetics: adjust line breaks and vertical alignment
...
Originally committed as revision 14795 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-08-16 21:32:03 +00:00
Justin Ruggles
56c07e2989
use limited range of lpc orders when quantizing coefficients
...
Originally committed as revision 14794 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-08-16 21:24:06 +00:00
Ramiro Polla
e9e3c9801e
lpc: cosmetics: vertically align declarations and definitions.
...
Originally committed as revision 14792 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-08-16 17:28:29 +00:00
Ramiro Polla
c50da3ad6c
flacenc, lpc: Move LPC code from flacenc.c to new lpc.[ch] files.
...
Originally committed as revision 14790 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-08-16 17:18:20 +00:00
Ramiro Polla
51c796d012
flacenc: Allow more flexible shift calculation in LPC.
...
Originally committed as revision 14789 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-08-16 17:03:57 +00:00
Michael Niedermayer
3cffbe090a
Fix rc_eq mem leak.
...
Originally committed as revision 14788 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-08-16 14:46:31 +00:00
Michael Niedermayer
847d05360b
Revert r14260
...
Log:
Free in avcodec_close() avctx->rc_eq. Fix a memory leak.
Reason running free() on random pointers.
Originally committed as revision 14787 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-08-16 14:13:49 +00:00
Kostya Shishkov
f5c3eae3cb
Synchronize AAC encoder with renamings in aac.h
...
Originally committed as revision 14786 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-08-16 11:59:36 +00:00
Kostya Shishkov
817015e4e2
Add approved chunks to AAC encoder
...
Originally committed as revision 14785 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-08-16 05:47:18 +00:00
Peter Ross
38a1c7f2be
Use memcpy() for PCM S16/S32 codecs when codec byte-order matches machine byte-order.
...
Originally committed as revision 14784 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-08-16 01:25:12 +00:00
Robert Swain
cce540c5e7
Don't try to free shared ff_sine_* tables pointed to by s->windows[]
...
Originally committed as revision 14775 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-08-15 10:31:11 +00:00
Robert Swain
9ffd5c1cee
More OKed AAC decoder hunks
...
Originally committed as revision 14774 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-08-15 08:01:31 +00:00
Robert Swain
848a5815ce
Synchronise AAC decoder code with that from SoC
...
Originally committed as revision 14772 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-08-15 00:19:14 +00:00
Loren Merritt
2272e04aa7
document some dsp alignments
...
Originally committed as revision 14771 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-08-15 00:14:07 +00:00
Robert Swain
62a57fae59
More OKed sections of AAC decoder code
...
Originally committed as revision 14770 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-08-15 00:05:09 +00:00
Robert Swain
47698b83fd
The ff_sine_#[] should be aligned as they will commonly be used in dsputil
...
functions
Originally committed as revision 14767 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-08-14 22:12:19 +00:00
Aurelien Jacobs
7246177d80
ensure we get explicit definition of various _XOPEN_SOURCE functions we use
...
Originally committed as revision 14766 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-08-14 22:01:59 +00:00
Ramiro Polla
1e8bd10c57
mlp: Define End-of-Stream code in common header file and use it in decoder.
...
Originally committed as revision 14763 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-08-14 19:38:39 +00:00
Kostya Shishkov
07be55dc8b
Remove not OKed parts from AAC encoder
...
Originally committed as revision 14762 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-08-14 16:07:17 +00:00
Robert Swain
69fc4da360
Add declarations for the sine tables used in wma.c (half window sizes: 128,
...
256, 512, 1024 and 2048) to mdct.c. Make them accessible via dsputil.h. Make
wma.c use these shared tables.
Originally committed as revision 14758 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-08-14 14:40:16 +00:00
Robert Swain
ece6b83c3e
Change wma.c to use the ff_sine_window_init() from mdct.c
...
Originally committed as revision 14757 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-08-14 14:36:22 +00:00
Kostya Shishkov
c03d9d058b
Okayed parts of AAC encoder
...
Originally committed as revision 14752 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-08-14 05:52:29 +00:00
Loren Merritt
7ca7d5fae0
file which should have been added in r14749
...
Originally committed as revision 14751 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-08-14 05:00:25 +00:00
Loren Merritt
75ac287517
missing prototype
...
Originally committed as revision 14750 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-08-14 04:41:02 +00:00
Loren Merritt
ebceaa1cd5
gcc chokes on the 7 registers needed for float_to_int16_interleave6 (even inside HAVE_7REGS), so write it in yasm
...
Originally committed as revision 14749 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-08-14 04:40:46 +00:00
Loren Merritt
ee46753739
gcc chokes on xmm constraints, so pessimize int32_to_float_fmul_scalar_sse a little
...
Originally committed as revision 14748 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-08-14 04:39:59 +00:00
Ramiro Polla
a7cc783d71
mlp: split simple inline function that xors 4 bytes into one.
...
Originally committed as revision 14747 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-08-14 03:58:05 +00:00
Loren Merritt
675872382f
special case 6 channel version of float_to_int16_interleave
...
5% faster ac3
Originally committed as revision 14744 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-08-13 23:36:37 +00:00
Loren Merritt
911e21a306
simd int->float
...
20% faster ac3 if downmixing, 15% if not
Originally committed as revision 14743 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-08-13 23:35:40 +00:00
Loren Merritt
ac2e556456
simd downmix
...
13% faster ac3 if downmixing
Originally committed as revision 14742 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-08-13 23:33:48 +00:00
Loren Merritt
45d9d61889
don't mark the delayed samples for upmixing if they haven't been downmixed
...
Originally committed as revision 14741 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-08-13 23:30:53 +00:00
Loren Merritt
3b6516f7e7
oops, non-normalized downmix to mono contaminated add_bias for non-simd float-to-int.
...
Originally committed as revision 14740 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-08-13 23:30:28 +00:00
Ramiro Polla
06cddea060
mlp: Cosmetics: Close comments in an extra line and
...
remove empty lines between doxy comments and function declarations.
Originally committed as revision 14735 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-08-13 19:43:18 +00:00
Ramiro Polla
ce15710f55
mlp: Split common code from parser and decoder to be used by encoder.
...
Originally committed as revision 14733 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-08-13 18:47:03 +00:00
Diego Biurrun
e7327dbba7
Remove unused variable.
...
Originally committed as revision 14732 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-08-13 18:33:25 +00:00
Ramiro Polla
ee5b34d56e
mlp_parser: Initialize crc data in its own function.
...
Originally committed as revision 14722 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-08-13 02:44:38 +00:00
Ramiro Polla
5dae0dd22c
mlpdec: Put some doxy comments to the right of vars instead of interleaved.
...
Originally committed as revision 14721 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-08-13 01:41:06 +00:00
Ramiro Polla
f53acb7b17
mlpdec: Split channel parameters from context into their own struct.
...
Originally committed as revision 14720 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-08-13 01:36:01 +00:00
Loren Merritt
557ac0c448
optimize ac3_downmix.
...
1.3x faster 5.1->stereo, 1.9x faster 5.1->mono.
Originally committed as revision 14719 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-08-12 23:45:46 +00:00
Ramiro Polla
db01fa131b
mlpdec: whitespace and line-breaking cosmetics.
...
Originally committed as revision 14717 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-08-12 18:05:58 +00:00
Ramiro Polla
d6aa052dc5
mlpdec: Split filter parameters from context into their own struct.
...
Originally committed as revision 14716 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-08-12 17:53:59 +00:00
Peter Ross
3b4b113781
Fix CODEC_ID_PCM_U8 decoder output size calculation to support odd-number of samples.
...
Originally committed as revision 14712 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-08-12 12:32:40 +00:00
Loren Merritt
72745cff20
use float_to_int16_interleave in ac3
...
Originally committed as revision 14706 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-08-12 03:01:17 +00:00
Loren Merritt
916d5d6c32
use imdct_half in ac3
...
Originally committed as revision 14705 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-08-12 01:30:24 +00:00
Loren Merritt
862b98d42c
cosmetics in dsp init
...
Originally committed as revision 14704 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-08-12 00:51:45 +00:00
Loren Merritt
d46ac5bfde
mdct wrapper function to match fft
...
Originally committed as revision 14703 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-08-12 00:38:30 +00:00
Loren Merritt
0a570e826d
remove mdct tmp buffer
...
Originally committed as revision 14702 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-08-12 00:36:36 +00:00
Loren Merritt
e8dd7b0c9a
remove a float->double->float conversion.
...
1.8x faster imdct_c with fpmath=sse, no change with x87
Originally committed as revision 14701 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-08-12 00:34:08 +00:00
Loren Merritt
46803f4f67
optimize imdct_half:
...
remove tmp buffer.
skip fft reinterleave pass, leaving data in a format more convenient for simd.
merge post-rotate with post-reorder.
Originally committed as revision 14700 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-08-12 00:33:34 +00:00
Loren Merritt
49c0dd754c
indent
...
Originally committed as revision 14699 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-08-12 00:27:21 +00:00
Loren Merritt
5d0ddd1a9f
split-radix FFT
...
c is 1.9x faster than previous c (on various x86 cpus), sse is 1.6x faster than previous sse.
Originally committed as revision 14698 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-08-12 00:26:58 +00:00
Loren Merritt
bafad220a7
import yasm macros from x264
...
Originally committed as revision 14697 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-08-11 23:54:09 +00:00
Robert Swain
9edae4ad81
Synchronise code with AAC decoder in SoC
...
Originally committed as revision 14695 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-08-11 11:22:48 +00:00
Robert Swain
9cc04edff9
More OKed hunks of the AAC decoder from SoC
...
Originally committed as revision 14694 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-08-11 11:16:06 +00:00
Roman Shaposhnik
3f66d16821
Fixing the units in DV50 tables (both coordinates are
...
supposed to be in units of 8 pixels) and simplifying
the calculations of y_ptr and c_offset.
Originally committed as revision 14693 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-08-11 10:14:46 +00:00
Peter Ross
5e8ecfde50
Apply PCM ENCODE/DECODE() macros to the S/U,8/24/32,LE/BE PCM codecs.
...
Originally committed as revision 14692 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-08-11 09:52:17 +00:00
Roman Shaposhnik
d557838cfb
Coalescing the un-weighting and de-quantization steps for faster
...
processing
Originally committed as revision 14691 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-08-11 09:35:58 +00:00
Kostya Shishkov
76c655fb8f
Simplify colour conversion in Fraps as suggested by Michael
...
Originally committed as revision 14690 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-08-11 05:11:05 +00:00
Michael Niedermayer
2967101173
The deblock filter does not need all the intra availability stuff so do
...
not recalculate it.
Originally committed as revision 14689 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-08-11 03:08:02 +00:00
Michael Niedermayer
faa7e39466
Simplify constrained_intra_pred code in fill_caches().
...
Originally committed as revision 14688 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-08-11 02:52:14 +00:00
Michael Niedermayer
d1d10e9125
Support MBAFF + constrained intra prediction.
...
(no i would not have tried to implement this had i known what mess it is)
fixes at least:
CAMACI3_Sony_C
Originally committed as revision 14687 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-08-11 02:21:33 +00:00
Robert Swain
697c7cd44b
Bump minor version as av_log_missing_feature() was added to public API in
...
r14685
Originally committed as revision 14686 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-08-10 22:18:46 +00:00
Justin Ruggles
ea779d91ca
Add a generic function to lavc to log messages about missing features.
...
Patch by Justin Ruggles (justin ruggles gmail com)
Originally committed as revision 14685 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-08-10 20:29:43 +00:00
Kostya Shishkov
af1761915b
R and B components are stored as a differences to G component in Fraps v5.
...
This fixes roundup issue 574.
Originally committed as revision 14684 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-08-10 18:15:38 +00:00
Michael Niedermayer
beca9a286c
Mask bits of reference indexes properly to avoid negative numbers entangling
...
each other.
Fixes at least:
CAMA1_TOSHIBA_B
cama1_vtc_c
CAMA3_Sand_E
cama3_vtc_b
CAMASL3_Sony_B
CVMA1_TOSHIBA_B
CVMAQP3_Sony_D
cvmp_mot_mbaff0_full_B
FRExt/HCAMFF1_HHI
FRExt/HCHP3_HHI_A
FRExt/HVLCMFF0_Sony_B
Originally committed as revision 14683 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-08-10 16:10:39 +00:00
Michael Niedermayer
e248cb601e
Remove a few more lines of unneeded code in fill_caches() for MBAFF.
...
Also document why the remaining related part is apparently needed.
Originally committed as revision 14682 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-08-10 15:39:46 +00:00
Michael Niedermayer
d50cdd82de
Use the correct reference tables for interlaced MBAFF MBs in the loop filter.
...
Fixes at least
CAMP_MOT_MBAFF_L30
CAMP_MOT_MBAFF_L31
FRExt/FREXT01_JVC_D
Originally committed as revision 14680 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-08-10 02:38:51 +00:00
Michael Niedermayer
0281d32550
Do not execute the part of fill_caches() for the loopfilter that overwrites
...
reference indexes and motion vectors.
Fixes at least:
CVMAQP2_Sony_G
Originally committed as revision 14678 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-08-10 00:38:41 +00:00
Michael Niedermayer
3d11b8ce13
Remove more code that has become useless after the pairless MBAFF loop
...
filter cleanup.
Originally committed as revision 14676 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-08-09 18:11:25 +00:00
Robert Swain
cc0591dab0
Sync already committed code with that in SoC and commit more OKed hunks of code
...
Originally committed as revision 14674 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-08-09 10:46:27 +00:00
Michael Niedermayer
5f7f9719ac
Remove odd pairwise deblock filtering applied to MBAFF MBs.
...
Originally committed as revision 14673 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-08-09 01:17:34 +00:00
Stefano Sabatini
96afa6be0b
Doxygenate avcodec_version().
...
Originally committed as revision 14666 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-08-08 18:34:27 +00:00
Baptiste Coudurier
ec7e2582ae
fix 4:2:2 psnr
...
Originally committed as revision 14662 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-08-08 02:56:44 +00:00
Peter Ross
3ee573a300
Add simpler/cleaner/faster F32BE encoding/decoding.
...
Originally committed as revision 14660 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-08-07 09:32:10 +00:00
Peter Ross
ff66caab40
Simplify PCM codec; change 'n' in pcm_decode_frame() to equal "total number of samples".
...
Originally committed as revision 14659 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-08-07 09:23:56 +00:00
Peter Ross
13dbd9b705
Prevent DAUD PCM encoder from fetching values outside of ff_reverse[] array bounds when input sample values are < 0.
...
Originally committed as revision 14658 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-08-07 08:16:42 +00:00
Vitor Sessak
b888abe1be
Cosmetics: rename loop counters in eval_refl()
...
Originally committed as revision 14653 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-08-06 21:19:30 +00:00
Vitor Sessak
bdb34c9f5e
Simplify eval_refl(): do not store a buffer value in a var when the buffer could be used directly
...
Originally committed as revision 14652 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-08-06 21:16:24 +00:00
Vitor Sessak
aa425ada54
Simplify eval_refl(): s/b == 0/!b/
...
Originally committed as revision 14651 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-08-06 21:04:40 +00:00
Vitor Sessak
40812fdcf1
Simplify range checking in eval_refl(). Before the
...
condition b == 0 could never be true, because it would
have already been caught in the previous ifs. Also the
condition b == 0x1000 could never be true (it would
triggered the return).
Originally committed as revision 14650 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-08-06 21:02:56 +00:00
Vitor Sessak
d70875c81d
Cosmetics: reindent
...
Originally committed as revision 14649 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-08-06 20:39:28 +00:00
Vitor Sessak
7e05617a5c
Simplify do_output_subblock(): Remove a unneeded memcpy
...
Originally committed as revision 14648 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-08-06 20:38:23 +00:00
Peter Ross
cfc78718f3
Electronic Arts TGV decoder
...
Originally committed as revision 14642 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-08-06 08:33:25 +00:00
Vitor Sessak
c0f0b34bba
Simplify eval_refl(): return directly when needed instead of storing the return value in a variable
...
Originally committed as revision 14640 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-08-06 05:24:21 +00:00
Vitor Sessak
2f1cad0e58
Simplify rms(): merge a few operations in the same statement
...
Originally committed as revision 14639 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-08-06 05:11:46 +00:00
Vitor Sessak
b4d46e8c06
Cosmetical simplification in t_sqrt()
...
Originally committed as revision 14638 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-08-06 05:08:48 +00:00
Vitor Sessak
438abdaaeb
Check available size before writing in decode_frame()
...
Originally committed as revision 14637 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-08-06 05:06:10 +00:00
Vitor Sessak
8089c652a7
Check *data_size in decode_frame()
...
Originally committed as revision 14636 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-08-06 03:00:15 +00:00
Vitor Sessak
5991704634
Cosmetics: alignment
...
Originally committed as revision 14635 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-08-06 02:49:22 +00:00
Vitor Sessak
e3751aa6ec
Flip (by making buf[i] -> buf[size-i-1]) two buffers: {sp,gain}_block. This
...
needs duplicating a few loops, but now the code is clearer.
Originally committed as revision 14634 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-08-06 02:44:59 +00:00
Michael Niedermayer
9cc440bfc4
Prevent low delay from being used with mpeg1.
...
Originally committed as revision 14627 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-08-05 20:39:58 +00:00
Robert Swain
71e9a1b8dd
OKed sections of code from the SoC AAC decoder
...
Originally committed as revision 14626 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-08-05 19:32:01 +00:00
Robert Swain
fed3f06914
Move shared tables to aactab.c and add declarations to aactab.h. Also sync with
...
SoC code.
Originally committed as revision 14625 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-08-05 19:31:05 +00:00
Robert Swain
589ce6e63d
AAC definitions and structures that have been OKed from the SoC AAC decoder
...
code
Originally committed as revision 14624 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-08-05 19:27:17 +00:00
Michael Niedermayer
2ccd25d02b
Use local variabes for *stride, where local variables exist.
...
Originally committed as revision 14623 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-08-05 12:06:30 +00:00
Michael Niedermayer
7d54ecc9cb
indent
...
Originally committed as revision 14622 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-08-05 11:34:46 +00:00
Michael Niedermayer
9b5fab918b
Simplify l1mv/l1ref calculation.
...
Originally committed as revision 14621 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-08-05 11:33:40 +00:00
Michael Niedermayer
c210fa61cf
simplify y_shift/ref_shift code
...
Originally committed as revision 14620 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-08-05 11:17:23 +00:00
Michael Niedermayer
cc615d2ce8
indent
...
Originally committed as revision 14619 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-08-05 11:04:49 +00:00
Michael Niedermayer
d00eac6c96
Factorize some code between temporal and spatial direct mode.
...
Originally committed as revision 14618 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-08-05 11:00:17 +00:00
Vitor Sessak
6888b4fcec
Rename prodsum() function to convolve()
...
Originally committed as revision 14615 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-08-05 04:52:33 +00:00
Justin Ruggles
5e3e40756e
cosmetics: use a better function name than uncouple_channels()
...
Originally committed as revision 14614 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-08-05 01:49:01 +00:00
Justin Ruggles
022845ed05
cosmetics: change function name and comments to refer to block decoding
...
instead of block parsing
Originally committed as revision 14613 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-08-05 01:31:40 +00:00
Justin Ruggles
ba7f712c21
remove unneeded local variable
...
Originally committed as revision 14547 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-08-05 00:32:27 +00:00
Michael Niedermayer
8354477edc
Port b4/b8_stride code from spatial direct mode to temporal.
...
Fixes at least:
CAMANL3_Sand_E.264
camp_mot_picaff0_full.26l
CAPA1_TOSHIBA_B.264
CVPA1_TOSHIBA_B.264
Originally committed as revision 14546 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-08-05 00:15:15 +00:00
Michael Niedermayer
42de393dcb
Use frame_num and reference instead of poc for matching frames for direct
...
mode MBs, this seems to work better with field/frame mixes. POC of both
can be the same and can be different that makes its use tricky.
Originally committed as revision 14545 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-08-05 00:08:32 +00:00
Michael Niedermayer
6c86c44b83
*2 /2 is wrong for PAFF references, so do not do it.
...
Originally committed as revision 14544 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-08-04 23:29:34 +00:00
Michael Niedermayer
f0538030da
Port col_parity code from spatial mode to temporal mode,
...
I also love it if people duplicate code and fix one but not the other.
Originally committed as revision 14543 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-08-04 23:06:45 +00:00
Michael Niedermayer
301e1057b8
The code under FRAME_MBAFF for temporal direct mode MBs is needed for PAFF as well.
...
Originally committed as revision 14542 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-08-04 22:59:53 +00:00
Michael Niedermayer
fa6a6c59e0
Remove redundant code.
...
Originally committed as revision 14541 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-08-04 22:52:54 +00:00
Michael Niedermayer
7762cc3dd4
Fill ref_count/ref_poc for both fields of frames.
...
Originally committed as revision 14540 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-08-04 22:32:41 +00:00
Art Clarke
910e366817
Fix static leaks in h264.c.
...
Patch by Art Clarke aclarke A vlideshow D com
Originally committed as revision 14538 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-08-04 21:45:05 +00:00
Michael Niedermayer
45260d4faa
Use ref_poc and ref_count from the correct field.
...
Fixes at least
MR8_BT_B.h264
Originally committed as revision 14537 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-08-04 11:19:54 +00:00
Michael Niedermayer
4c0d57bdef
Fix dist_scale_factor for long term reference pictures.
...
Originally committed as revision 14536 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-08-04 11:17:22 +00:00
Mathieu Malaterre
0e589ce151
Return an error when ff_jpegls_decode_picture fails.
...
Patch by Mathieu Malaterre: name.surname at gmail
Originally committed as revision 14535 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-08-04 08:25:38 +00:00
Peter Ross
cc0b61292a
Simplify PCM codec; replace switch() statements with av_get_bits_per_sample().
...
Originally committed as revision 14534 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-08-04 07:49:50 +00:00
Peter Ross
0fd7e57e7d
Simplify PCM codec; use sample_fmts field to set the avctx->sample_fmt field.
...
Originally committed as revision 14533 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-08-04 07:47:23 +00:00
Peter Ross
9d49b8ff90
Make avcodec_string() and av_get_bits_per_sample() report the sample size for CODEC_ID_PCM_ZORK
...
Originally committed as revision 14532 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-08-04 07:40:07 +00:00
Michael Niedermayer
71041842ec
Use the correct collocated field in pred_direct_motion() when it differs in parity.
...
Fixes at least:
FRExt/HPCAFL_BRCM_C.264
FRExt/HPCAFLNL_BRCM_C.264
FRExt/HPCVFL_BRCM_A.264
FRExt/HPCVFLNL_BRCM_A.264
Originally committed as revision 14529 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-08-04 02:41:19 +00:00
Justin Ruggles
55aff0d901
Read bitstream parameters for E-AC-3 streams before returning an error.
...
Originally committed as revision 14528 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-08-03 22:29:06 +00:00
Justin Ruggles
602116df9b
Hardcode the table for ungrouping 3 values in 5 bits. It will be reused by
...
the E-AC-3 decoder.
Originally committed as revision 14527 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-08-03 21:42:43 +00:00
Justin Ruggles
7417120b6f
use the same table for ungrouping exponents and bap=2 mantissas
...
Originally committed as revision 14525 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-08-03 19:24:04 +00:00
Justin Ruggles
14b7062829
cosmetics: make all references to AC-3 capitalized and hyphenated
...
Originally committed as revision 14523 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-08-03 16:42:32 +00:00
Michael Niedermayer
aa6de49e95
Remove useless mb_field_decoding_flag setting code that was at the wrong spot.
...
Originally committed as revision 14519 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-08-03 13:11:14 +00:00
Michael Niedermayer
44e9dcf13a
mb_field_decoding_flag was not initialized
...
Fixes at least:
MR7_BT_B.h264
Sharp_MP_PAFF_1r2.jvt
Sharp_MP_PAFF_2.jvt
Originally committed as revision 14518 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-08-03 13:00:39 +00:00
Mathieu Malaterre
19759c9a36
Wrong constant used in default threshold value calculation for
...
JPEG-LS lossy mode with < 128 colours.
Patch by Mathieu Malaterre (mail = gmailify("mathieu.malaterre"))
Originally committed as revision 14517 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-08-03 05:07:48 +00:00
Justin Ruggles
1db9da5238
cosmetics: vertical alignment
...
Originally committed as revision 14516 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-08-03 02:16:51 +00:00
Justin Ruggles
a52d8c6b32
use MAX_BLOCKS for array size instead of 6
...
Originally committed as revision 14515 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-08-03 02:16:21 +00:00
Justin Ruggles
a42c895207
rearrange dimensions of pre_mantissa array
...
Originally committed as revision 14514 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-08-03 02:11:46 +00:00
Peter Ross
42a45a03e7
Add graceful error handling to avcodec_get_pix_fmt_name() and avcodec_get_pix_fmt().
...
Originally committed as revision 14513 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-08-03 00:41:31 +00:00
Michael Niedermayer
2879c75ff3
Picture.ref_count/ref_poc have to be stored per field (actually also per
...
slice but thats a seperate bug)
Fixes at least:
CABREF3_Sand_D.264
camp_mot_fld0_full.26l
CVFI2_Sony_H.jsv
CVNLFI2_Sony_H.jsv
Originally committed as revision 14511 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-08-02 23:13:27 +00:00
Baptiste Coudurier
ce98b0a479
do not fail on qscale==0 if error resilience is high, fix broken quicktime h261, lotr.mov
...
Originally committed as revision 14510 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-08-02 22:51:49 +00:00
Uoti Urpala
f769b746aa
Mark add_png_paeth_prediction_* functions which are only used within this file
...
as static. patch by Uoti Urpala, uoti.urpala pp1.inet fi
Originally committed as revision 14509 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-08-02 17:32:55 +00:00
Peter Ross
82cee279a5
Modify av_audio_convert() to use AVAudioConvert context struct; add av_audio_convert_alloc() and av_audio_convert_free() support functions.
...
Originally committed as revision 14496 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-08-01 13:53:18 +00:00
Peter Ross
8a464e7580
Revert r14484 hunk that deleted the 'include avcodec.h' statement.
...
Originally committed as revision 14495 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-08-01 11:26:22 +00:00
Nicolas George
afffd357b0
Use compression level to set mp3lame quality option.
...
Patch by Nicolas George nicolas george normalesup org
Original thread:
[PATCH] libmp3lame: set noise shaping & psychoacoustic algorithms quality
Date: 07/31/2008 03:53 PM
Originally committed as revision 14494 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-08-01 07:23:29 +00:00
Baptiste Coudurier
014d2f0509
fix mpeg 4:2:2 vis_qp and vis_mb_type debug, fix issue #471
...
Originally committed as revision 14493 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-31 19:51:19 +00:00
Mathieu Malaterre
0afdedcafb
Fix a potential out of array writing.
...
Patch by Mathieu Malaterre mathieu malaterre gmail com
Originally committed as revision 14487 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-31 14:53:14 +00:00
Peter Ross
9e82a113e5
Write sample format description within avcodec_string()
...
Originally committed as revision 14485 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-31 12:56:56 +00:00
Peter Ross
c2b28bb975
Add sample format support functions: avcodec_get_sample_fmt_name(), avcodec_get_sample_fmt(), avcodec_sample_fmt_string()
...
Originally committed as revision 14484 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-31 12:55:06 +00:00
Art Clarke
bbdf87285a
Use static vlc structure to decode layer 3 huffman tables.
...
Patch by Art Clarke aclarke vlideshow com
Originally committed as revision 14483 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-31 12:09:11 +00:00
Peter Ross
fd76c37fd9
Modify all codecs to report their supported input and output sample format(s).
...
Originally committed as revision 14482 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-31 10:47:31 +00:00
Michael Niedermayer
c1708e8dc8
Simplify intra PCM MB handling.
...
Originally committed as revision 14476 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-30 18:21:51 +00:00
Vitor Sessak
4ca7e74c1f
Do not declare a counter as unsigned when it is not needed
...
Originally committed as revision 14469 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-29 18:22:31 +00:00
Vitor Sessak
4e33ed368a
Cosmetics: rename loop counter vars to i,j
...
Originally committed as revision 14468 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-29 18:20:49 +00:00
Vitor Sessak
6c9c8b06b3
Cosmetics: rename loop counter vars to i,j
...
Originally committed as revision 14467 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-29 18:07:11 +00:00
Loren Merritt
8a37920c9e
r14205 broke vorbis float_to_int on ppc
...
Originally committed as revision 14466 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-29 14:17:13 +00:00
Paul Kendall
9bec77fe8d
Use #define instead of a constant. Patch by Paul Kendall.
...
Originally committed as revision 14463 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-29 05:39:33 +00:00
Jason Garrett-Glaser
aa6a89aa79
Small h264 decoding speed optimization: while->do/while
...
Originally committed as revision 14459 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-28 15:42:49 +00:00
Vitor Sessak
045e21cc19
Cosmetics: new line
...
Originally committed as revision 14457 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-28 10:49:44 +00:00
Vitor Sessak
e7e4f476c0
Remove the now useless phase variable from context
...
Originally committed as revision 14456 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-28 10:49:14 +00:00
Peter Ross
993ba05182
increment minor version for commit r14412 (add sample_fmts infrastructure)
...
Originally committed as revision 14455 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-28 10:48:03 +00:00
Vitor Sessak
c749f3db98
Cosmetics: make comment match var name
...
Originally committed as revision 14454 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-28 05:18:39 +00:00
Vitor Sessak
6509507fad
Cosmetics: align comments
...
Originally committed as revision 14453 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-28 05:16:51 +00:00
Vitor Sessak
f285e6dd31
Rename two context vars: s/sb/sp_block/, s/lhist/gain_block/
...
Originally committed as revision 14452 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-28 04:53:05 +00:00
Vitor Sessak
36826ee0df
Declare temporary buffers to be only of the necessary size
...
Originally committed as revision 14451 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-28 04:37:58 +00:00
Vitor Sessak
5e707c5905
Remove redundant comments
...
Originally committed as revision 14450 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-28 04:25:51 +00:00
Vitor Sessak
c6ad13044a
Cosmetics: do not align with now removed next instruction
...
Originally committed as revision 14449 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-28 04:24:08 +00:00
Vitor Sessak
2c46367163
Cosmetics: remove braces and useless newline
...
Originally committed as revision 14448 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-28 04:07:18 +00:00
Vitor Sessak
2b356efec2
Change the way the input is passed to do_hybrid_filter(). Before, in[0] was
...
the oldest input sample passed and in[n-1] was the latest. Now it is the
contrary. This allows making backward_filter() somewhat simpler.
Originally committed as revision 14447 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-28 02:55:47 +00:00
Vitor Sessak
aed39f6c02
Remove RA288Context.output buffer. This buffer is just RA288Context.sb
...
backwards (output[i] == sb[N-i], where N is the buffer length).
This makes the code slower, this will be fixed in my next commit.
Originally committed as revision 14446 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-28 02:53:07 +00:00
Vitor Sessak
b26d320583
Add a few comments pointing to the G.728 specification
...
Originally committed as revision 14444 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-27 22:22:51 +00:00
Vitor Sessak
854ce441c3
Remove the history buffer from the context. It can easily be evaluated
...
from the lhist buffer.
Originally committed as revision 14443 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-27 22:21:41 +00:00
Diego Biurrun
218e061201
Remove unused variable.
...
Originally committed as revision 14442 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-27 21:56:26 +00:00
Vitor Sessak
0143ec2a7e
Rename two context buffers: pr{1,2} -> {sp,gain}_lpc. Also add a few doxy
...
comments.
Originally committed as revision 14437 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-27 20:58:29 +00:00
Stefano Sabatini
b211d3ae47
Complete documentation for av_set_string().
...
Originally committed as revision 14436 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-27 20:55:56 +00:00
Vitor Sessak
59da0390dc
Remove st1 and st2 temporary buffers in backward_filter() and use instead
...
RA288Context.pr{1,2}. Note that the pr{1,2} buffers are one unity smaller
than the st{1,2} buffers. My guess is that the original coder decided to
add one to the array sizes "just to be sure".
Originally committed as revision 14435 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-27 20:55:27 +00:00
Vitor Sessak
3df136d438
Change slightly the meaning of RA288Context.phase. This
...
allows to remove two intermediary buffers and avoid a few
memcpy's.
Originally committed as revision 14432 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-27 20:35:32 +00:00
Jeff Downs
18c7be6501
Initialize outputed_poc to INT_MIN at decoder initialization.
...
Fixes issue 560
Originally committed as revision 14428 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-27 13:49:04 +00:00
Paul Kendall
143d7f1443
left_block intialisation optimisation.
...
This patch changes the left_block initialisation code in the fill_caches
function from individual array element setters to a simple pointer to a
pre-initialised array.
Patch by (Paul Kendall ! paul X kcbbs knodel gen knodel nz)
Date: Sun, 27 Jul 2008 11:40:18 +1200
Subject: [FFmpeg-devel] [PATCH] h264 fill_caches left_block intialisation optimisation
Originally committed as revision 14427 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-27 13:01:17 +00:00
Robert Swain
f25c244f5f
AAC tables and data that have been OKed by Michael
...
Originally committed as revision 14425 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-27 08:21:48 +00:00
Jeff Downs
e791eb1ed4
And.... Fix another spec reference to be more specific and correct.
...
Originally committed as revision 14423 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-26 18:38:30 +00:00
Jeff Downs
25f8bceb1c
Fix reference to spec to be more specific and correct.
...
Originally committed as revision 14422 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-26 18:34:34 +00:00
Vitor Sessak
f42eb5715d
Remove st1 and st2 variables from context, since they could be just local vars
...
Originally committed as revision 14421 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-26 15:14:50 +00:00
Vitor Sessak
272d258ab9
Rename st{1,2}{a,b} context variables to more meaningful names: {sp,gain}_{rec,hist}
...
Originally committed as revision 14420 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-26 15:10:17 +00:00
Paul Kendall
4a1aa38bda
Simple refactoring to resolve a FIXME. Patch by Paul Kendall.
...
Originally committed as revision 14419 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-26 15:07:04 +00:00
Vitor Sessak
efa86ebe4c
Cosmetics: remove useless parenthesis
...
Originally committed as revision 14418 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-26 14:38:29 +00:00
Vitor Sessak
e07c5ade5e
Move colmult() function to the beginning of file to group DSP-related functions.
...
Originally committed as revision 14417 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-26 14:35:50 +00:00
Vitor Sessak
5af20c207e
Remove an useless comment describing colmult()
...
Originally committed as revision 14416 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-26 14:33:53 +00:00
Vitor Sessak
d899014ee2
Remove an useless comment describing prodsum()
...
Originally committed as revision 14415 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-26 14:33:25 +00:00
Vitor Sessak
952a980d75
Give the context variables of ra288 a better name: s/glob/ractx/
...
Originally committed as revision 14414 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-26 14:31:47 +00:00
Vitor Sessak
029e1c01b5
Give the context structure of ra288 a better name: s/Real288_internal/RA288Context/
...
Originally committed as revision 14413 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-26 14:29:39 +00:00
Peter Ross
88a07af740
add sample_fmts infrastructure: AVCodec->sample_fmts and SAMPLE_FMT_NB enum.
...
Originally committed as revision 14412 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-26 08:48:26 +00:00
Peter Ross
aa29709ec8
add CODEC_ID_PCM_F32BE (32-bit floating point PCM big endian decoder)
...
Originally committed as revision 14409 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-26 07:08:15 +00:00
Michael Niedermayer
fef744d404
indent
...
Originally committed as revision 14408 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-26 02:31:19 +00:00
Michael Niedermayer
0af6967ee7
chroma_format_idc=0 aka grayscale support.
...
Can be disabled by removing #define ALLOW_NOCHROMA in case the extra if()
slow the code down measurably.
Fixes at least
FRExt/HPCAMOLQ_BRCM_B.264
FRExt/HPCVMOLQ_BRCM_B.264
Originally committed as revision 14407 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-26 02:27:14 +00:00
Alexander Strange
385c820b4a
Add a new -debug option for tracing calls to the default get/release_buffer functions.
...
Originally committed as revision 14406 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-26 01:57:10 +00:00
Michael Niedermayer
af8c5e08d7
Revert r14404
...
Remove another 2 incorrect checks.
These would ignore fields of different parity.
I was wrong, i thought pic_stricture is the current pic structure.
But it does not make a difference either way on the reference bitstreams.
Originally committed as revision 14405 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-25 23:55:31 +00:00
Michael Niedermayer
d9022d38fb
Remove another 2 incorrect checks.
...
These would ignore fields of different parity.
Originally committed as revision 14404 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-25 23:49:01 +00:00
Michael Niedermayer
79b5c77692
Print an error if a reference picture is missing.
...
Originally committed as revision 14403 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-25 23:39:43 +00:00
Michael Niedermayer
6edac8e104
Remove mysterious ref->data[0] check.
...
What the standard calls non-existent is not related to the
value of the data[0] pointer.
Originally committed as revision 14402 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-25 23:36:48 +00:00
Michael Niedermayer
99157e499c
10l typo, fix compilation
...
Originally committed as revision 14401 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-25 22:42:49 +00:00
Michael Niedermayer
91ea868eeb
Remove another stupidity, long_ref==0 check 4 lines after assert(long_ref==0).
...
Originally committed as revision 14400 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-25 22:39:43 +00:00
Michael Niedermayer
b3e93fd408
indent
...
Originally committed as revision 14399 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-25 21:51:50 +00:00
Michael Niedermayer
d4f7d83866
Rewrite fill_default_ref_list(), the old code was obfuscated beyond
...
repair with hacks.
new code is ~60lines old was ~200
Fixes at least:
FRExt/HCHP2_HHI_A.264
one sample also get decoded much better:
FRExt/FRExt1_Panasonic.avc (PSNR 11 -> 80)
(no i do not know why, the old code was too a big mess to figure out
what it did)
Originally committed as revision 14398 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-25 21:46:15 +00:00
Michael Niedermayer
37dcf83077
Do not scare the user with error messages when everything is ok.
...
Originally committed as revision 14396 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-25 14:52:58 +00:00
Michael Niedermayer
d9e3242213
Make remove_short() match remove_long() in that it calls unreference_pic().
...
Originally committed as revision 14395 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-25 14:00:01 +00:00
Michael Niedermayer
472c9a58a8
Removing yet another weird field pic special case,
...
now related to SHORT2LONG MMCOs.
Originally committed as revision 14394 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-25 13:40:13 +00:00
Michael Niedermayer
9c0e46242f
Make remove_long() call unreference_pic() internally.
...
Originally committed as revision 14393 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-25 13:09:06 +00:00
Michael Niedermayer
1cea5d0d03
Merge oddly duplicated remove_long/remove_long_at_index() function.
...
Originally committed as revision 14392 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-25 12:56:58 +00:00
Michael Niedermayer
6f45060851
Remove strange long_ref=0.
...
Originally committed as revision 14391 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-25 12:34:39 +00:00
Michael Niedermayer
4f10312c19
indent
...
Originally committed as revision 14390 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-25 12:26:24 +00:00
Michael Niedermayer
3f1e179747
10000l, forgotton }
...
Originally committed as revision 14389 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-25 12:25:28 +00:00
Michael Niedermayer
c29e05e60d
Remove another of these obfuscated special cases for field pictures
...
that does not do anything.
Originally committed as revision 14388 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-25 12:23:41 +00:00
Michael Niedermayer
c725090004
Simplify mmco setup code used in IDR pictures.
...
Originally committed as revision 14387 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-25 12:12:25 +00:00
Michael Niedermayer
57288c4a06
Remove redundant h->mmco_index= 0.
...
Originally committed as revision 14386 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-25 12:02:45 +00:00
Michael Niedermayer
5118c6c771
Assert that long_ref has been cleared for released pics.
...
Originally committed as revision 14385 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-25 11:54:03 +00:00
Michael Niedermayer
849b9cef32
Clear long_ref when a frame is no longer a long_ref.
...
Originally committed as revision 14384 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-25 11:52:40 +00:00
Michael Niedermayer
d9fe1749fc
Make sure mmco index is 0 (instead of uninitialized) in all error returns.
...
Originally committed as revision 14383 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-25 11:48:32 +00:00
Michael Niedermayer
9296f5d81a
Simplify strange obfuscated code in MMCO_LONG handling.
...
Note, this might change behavior for invalid bitstreams.
Originally committed as revision 14381 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-25 00:13:02 +00:00
Michael Niedermayer
357282c6f3
Set field_poc (it was half uninitialized before) and use it
...
instead of the fragile first_field check to determine if we have
2 fields at the end.
Originally committed as revision 14380 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-24 23:43:44 +00:00
Michael Niedermayer
b78a6baaf1
Minor simplification of code in init_poc().
...
Originally committed as revision 14379 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-24 22:29:38 +00:00
Michael Niedermayer
5710b37160
cosmetics (indent and 2 empty lines)
...
Originally committed as revision 14378 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-24 22:05:58 +00:00
Michael Niedermayer
80f8e035ba
init_poc() vs. idr() cleanup
...
Originally committed as revision 14377 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-24 22:04:29 +00:00
Michael Niedermayer
ac5057c2de
Fix loop filter with CAVLC 8x8dct.
...
Fixes at least:
FRExt/HPCV_BRCM_A.264
FRExt/HVLCFI0_Sony_B.264
FRExt/HVLCPFF0_Sony_B.264
H264_artifacts_motion.h264
Originally committed as revision 14373 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-24 17:13:37 +00:00
Diego Biurrun
ca74c0a180
cosmetics: Fix two common typos: wont --> will not, lets --> let us.
...
Originally committed as revision 14372 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-24 17:09:28 +00:00
Diego Biurrun
309005c047
cosmetics: Fix indentation after last commit.
...
Originally committed as revision 14370 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-24 16:54:51 +00:00
Vitor Sessak
a53b545068
Cosmetics: grammar nits
...
Originally committed as revision 14368 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-24 11:55:01 +00:00
Diego Biurrun
1412060e78
misc spelling/grammar fixes
...
Originally committed as revision 14367 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-24 10:55:36 +00:00
Diego Biurrun
80a61f08d2
Remove AltiVec vector declaration compiler compatibility macros.
...
The original problem was that FSF and Apple gcc used a different syntax
for vector declarations, i.e. {} vs. (). Nowadays Apple gcc versions support
the standard {} syntax and versions that support {} are available on all
relevant Mac OS X versions. Thus the greater compatibility is no longer
worth cluttering the code with macros.
Originally committed as revision 14366 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-24 10:53:32 +00:00
Vitor Sessak
2477d60944
Rename update() function to backward_filter() and add a doxy comment
...
Originally committed as revision 14364 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-24 04:29:23 +00:00
Vitor Sessak
a6755f8d53
Rename and comment bandwidth broadening tables
...
(s/table1a/syn_bw_tab/, s/table2a/gain_bw_tab/).
Originally committed as revision 14363 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-24 04:15:50 +00:00
Vitor Sessak
5e65f5df0e
Follow FFmpeg convention of returning negative values on error in eval_lpc_coeffs()
...
Originally committed as revision 14362 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-24 04:07:50 +00:00
Vitor Sessak
a3896c6377
Rename pred() to eval_lpc_coeffs() and add a doxy comment
...
Originally committed as revision 14361 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-24 04:05:41 +00:00
Vitor Sessak
a0cce1587b
Give windowing tables a more descriptive name
...
(s/table1/syn_window/, s/table2/gain_window/).
Originally committed as revision 14360 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-24 03:50:06 +00:00
Vitor Sessak
475d0e1464
Add comments to do_hybrid_window()
...
Originally committed as revision 14359 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-24 03:28:42 +00:00
Vitor Sessak
0f72a2b7d3
Give parameters of do_hybrid_window() more meaningful names
...
Originally committed as revision 14358 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-24 03:28:01 +00:00
Vitor Sessak
427981c7a6
Rename co() function to the much more descriptive name of
...
do_hybrid_window(). Also change a misleading and wrong comment.
Originally committed as revision 14357 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-24 03:23:51 +00:00
Vitor Sessak
5ab3d66fe5
Simplify co(): write constant in a more readable way
...
Originally committed as revision 14356 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-24 03:22:19 +00:00
Vitor Sessak
bf75ac57b8
Simplify co(), use memcpy/memmove and colmult() when useful.
...
Originally committed as revision 14355 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-24 03:19:52 +00:00
Michael Niedermayer
a149c1a59f
Reset prev_frame_num for idr frames as required by the spec.
...
Originally committed as revision 14354 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-24 00:45:18 +00:00
Michael Niedermayer
b4cf222870
Better explanation for buf_size==0 code.
...
Originally committed as revision 14353 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-23 17:24:11 +00:00
Michael Niedermayer
cf67f1655c
100l cross_idr simplification had a typo
...
Originally committed as revision 14351 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-23 14:59:55 +00:00
Michael Niedermayer
f3ba9db42d
Remove truncated support, use an AVParser if you used that, it is the same.
...
Originally committed as revision 14350 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-23 14:44:07 +00:00
Michael Niedermayer
617e42e2c4
Simplify cross_idr calculation.
...
Originally committed as revision 14349 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-23 14:37:15 +00:00
Benjamin Larsson
20455a335b
Reduce the loglevel on a log message in the Nellymoser decoder. Related to Roundup 447.
...
Originally committed as revision 14348 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-23 12:21:56 +00:00
Michael Niedermayer
55f22dd473
Remove redundant keyframe checks.
...
Originally committed as revision 14347 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-23 11:24:04 +00:00
Kostya Shishkov
00a750009f
In-loop deblocking filter for VC-1 decoder
...
Originally committed as revision 14344 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-23 06:21:27 +00:00
Vitor Sessak
144b46f21b
My commit at r14340 was not the right solution. For a monochromatic
...
frame, there will be only one centroid and it will be impossible to
find three distinct ones. It is better to just avoid shifting if
there are not three different centroids.
Originally committed as revision 14343 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-23 05:54:34 +00:00
Vitor Sessak
6de727244c
Do declaration and initialization separately in elbg.c
...
to workaround an ICC bug.
Originally committed as revision 14342 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-23 03:56:13 +00:00
Vitor Sessak
6bf8b04764
When picking a "high utility centroid" do not pick one
...
that has no corresponding points. Not only it is the
worst possible pick, but also the code was written
without this case in mind.
Originally committed as revision 14341 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-23 03:55:37 +00:00
Vitor Sessak
5916af1954
The codebook generator algorithm involves picking three
...
different codebook centroids ("high utility", "low
utility" and "closest to the low utility one"). This
change avoid the corner case of choosing two times the
same centroid.
Originally committed as revision 14340 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-23 03:54:31 +00:00
Michael Niedermayer
26b86e47c0
Support gaps in the frame num.
...
Fixes at least:
MR3_TANDBERG_B.264
MR4_TANDBERG_C.264
MR5_TANDBERG_C.264
Originally committed as revision 14339 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-23 02:12:54 +00:00
Michael Niedermayer
e44e48372b
Reset frame_num for MMCO 5.
...
Fixes at least
MR2_TANDBERG_E.264
Originally committed as revision 14338 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-22 19:30:45 +00:00
Michael Niedermayer
2e916cb392
3rd try to get the loop filter ref/mv check working correctly.
...
Fixes at least:
src19td.IBP.264
CVWP3_TOSHIBA_E.264
cvmp_mot_picaff0_full_B.26l
CVMP_MOT_FRM_L31_B.26l
cvmp_mot_frm0_full_B.26l
CVMP_MOT_FLD_L30_B.26l
cvmp_mot_fld0_full_B.26l
Originally committed as revision 14337 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-22 17:44:36 +00:00
Michael Niedermayer
5a78bfbde7
qscale has a range of 0..51 we thus do not need a 256 entry table and neither need
...
to and it with 0xFF.
Originally committed as revision 14336 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-22 13:01:10 +00:00
Michael Niedermayer
a82688b003
Setting chroma_qp to 0 for PCM blocks is really an interesting minor
...
optimization, more interresting would it have been had the author
thought about what value chroma_qp would have for the following MB.
Or failing that, had actually tested the code.
So this reverts this non-functional optimization, and makes the code work.
Fixes at least CAPM3_Sony_D.jsv
Originally committed as revision 14335 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-22 12:31:48 +00:00
Michael Niedermayer
3a75616940
Deobfusate chroma_qp_table[1] init code.
...
Originally committed as revision 14334 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-07-22 11:56:56 +00:00