Commit Graph

10099 Commits

Author SHA1 Message Date
Baptiste Coudurier
a7e562291d check for palette presence, fix crash with QT-BMP.mov, issue #1074
Originally committed as revision 18785 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-05-10 19:10:37 +00:00
Benjamin Larsson
841b45e55d Remove dead nested assignment found by CSA
Originally committed as revision 18784 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-05-10 14:44:09 +00:00
Baptiste Coudurier
7574dc4c37 update comment for rgb 16 bit in .mov
Originally committed as revision 18777 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-05-10 00:53:02 +00:00
Diego Biurrun
f8c0692d8e Add necessary header for CONFIG_RUNTIME_CPUDETECT preprocessor definition.
Originally committed as revision 18774 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-05-09 12:26:05 +00:00
Daniel Verkamp
10ce919561 data parameter of dnxhd_encode_picture() should not be const.
Fixes "dnxhdenc.c:805: warning: initialization from incompatible pointer type".
patch by Daniel Verkamp, daniel drv nu

Originally committed as revision 18773 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-05-08 19:41:21 +00:00
Michael Niedermayer
9a3eaeebad Correct x/ymin to avoid segfault due to out of picture reads.
Originally committed as revision 18771 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-05-08 15:14:36 +00:00
Daniel Verkamp
a1fd2bc350 Add 8088flex TMV video decoder.
Patch by Daniel Verkamp name at drv ... nu.

Originally committed as revision 18765 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-05-06 21:57:20 +00:00
Daniel Verkamp
89cb5cd25d Add CGA and palette data for 8088flex TMV decoder.
Patch by Daniel Verkamp  daniel _AT_ drv DOT nu.

Originally committed as revision 18764 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-05-06 21:51:58 +00:00
Ramiro Polla
e282272667 mlpdec: Fix possible writing out of array bounds introduced by being
under-paranoid in r18651.

Originally committed as revision 18763 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-05-06 16:01:28 +00:00
Ramiro Polla
e8d341ce19 mlpdec: Split sync word error and MLP sync word check.
The previous code would print the wrong error message for MLP streams with
TrueHD noise type.

Originally committed as revision 18762 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-05-06 15:46:10 +00:00
Ramiro Polla
aff42ee0ff mlpdec: Fix indentation that got mangled from copy&paste.
Originally committed as revision 18761 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-05-06 15:37:25 +00:00
Kostya Shishkov
512cfd9d54 Add 32-bit RGB support to TIFF decoder and extend a bit 'unsupported format' message
Originally committed as revision 18755 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-05-06 06:49:04 +00:00
Laurent Aimar
992f7db060 Add floating point audio decoding to WavPack decoder.
Patch by Laurent Aimar (fenrir at `antonym of 'audio'+antonym of 'WAN'` dot org)

Originally committed as revision 18754 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-05-06 05:40:43 +00:00
Laurent Aimar
cabb81113a Prepare WavPack decoder to support floating point output.
Patch by Laurent Aimar (f-e-n-r-i-r .@.t. v=i=d=e=o=l=a=n .d.o.t. o=r=g)

Originally committed as revision 18753 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-05-06 05:28:06 +00:00
Justin Ruggles
778bc09bbe cosmetics: line wrap and vertical alignment
Originally committed as revision 18752 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-05-06 01:48:14 +00:00
Justin Ruggles
396b73c7f7 ac3dec: Remove unneeded context variable, num_cpl_subbands. It is also
not needed for spectral extension or enhanced coupling since it is
redundant information, so I am removing it from decode_band_structure()
as well.

Originally committed as revision 18751 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-05-06 01:47:34 +00:00
Justin Ruggles
52dc3fc83d cosmetics: indentation after last commit
Originally committed as revision 18750 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-05-05 23:39:10 +00:00
Justin Ruggles
13ec942869 ac3dec: move channel remapping to outside of block loop
Originally committed as revision 18749 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-05-05 23:38:12 +00:00
Michael Niedermayer
9c24cd7236 Extract colorspace fields from MPEG1/2.
Originally committed as revision 18747 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-05-05 19:53:49 +00:00
Måns Rullgård
1e24f1b25d mpegaudio: enclose SUM8() macro args in parens when used
Originally committed as revision 18746 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-05-05 18:44:13 +00:00
Måns Rullgård
bf030c887f mpegaudio: avoid unnecessary copy in high-precision mode
Originally committed as revision 18745 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-05-05 18:44:10 +00:00
Måns Rullgård
adb206c238 mpegaudio: use av_clip()
Originally committed as revision 18744 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-05-05 18:44:07 +00:00
Michael Niedermayer
4ee6a5c161 Add colorspace fields to AVCodecContext.
Originally committed as revision 18743 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-05-05 18:25:20 +00:00
Carl Eugen Hoyos
ee273f98e8 Cosmetics: Fix indentation after r18741.
Originally committed as revision 18742 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-05-05 15:48:04 +00:00
Michael Niedermayer
266c1d901f Do not discard mp3 frames in the parser after a broken frame.
Fixes issue1044.
This may cause regressions with broken streams, if you find any, please report!

Originally committed as revision 18741 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-05-05 13:46:50 +00:00
Laurent Aimar
3cb088868c Factorize out integer sample value decoding for WavPack.
This is slightly modified patch by Laurent Aimar.

Originally committed as revision 18740 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-05-05 06:10:59 +00:00
Måns Rullgård
3737dd1cd3 PPC: implement MULH() in assembler
Left to its own devices, gcc calculates the full 64-bit product only to
discard the low 32 bits.  This forces it to do the right thing.

20% faster MP3 decoding on G4.

Originally committed as revision 18737 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-05-04 17:31:15 +00:00
Zdenek Kabelac
e2fa5cf4c9 Do not scan for MP3 header after the given buffer and return skipped
bytes along with consumed bytes on successful decoding.
patch by Zdenek Kabelac, zdenek.kabelac gmail com

Originally committed as revision 18736 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-05-04 14:23:48 +00:00
Kenan Gillet
5b05059d2d Properly handle SILENCE frame. Patch by Kenan Gillet.
Originally committed as revision 18734 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-05-04 03:25:57 +00:00
Benjamin Larsson
6b71ed1678 Remove dead assignments found by CSA
Originally committed as revision 18733 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-05-03 09:32:40 +00:00
Laurent Aimar
66311f86d4 Check whether extra bits block has enough data.
Patch by Laurent Aimar "f\145nr\151r >at< vide\157lan <dot> o\162g"

Originally committed as revision 18732 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-05-03 05:42:51 +00:00
Benjamin Larsson
241f5eab32 Remove dead assignments found by CSA
Originally committed as revision 18731 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-05-02 09:12:03 +00:00
Benjamin Larsson
10c773c12f Remove dead assignments found by CSA
Originally committed as revision 18730 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-05-02 09:08:40 +00:00
Laurent Aimar
418f77ec6e Decode extended bitstream for high-precision WavPack files.
Patch by Laurent Aimar [(wolf, son of Loki) <at> (videolan) <dot> (org)]

Originally committed as revision 18729 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-05-02 05:17:20 +00:00
Michael Niedermayer
714127812c Ignore first entry of intra matrixes if it is invalid.
Fixes pink.mpg / issue1046.

Originally committed as revision 18724 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-05-01 12:31:19 +00:00
Michael Niedermayer
45ccc61a06 Factorize quantization matrix loading code out.
Originally committed as revision 18723 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-05-01 12:17:25 +00:00
Ramiro Polla
da00b52578 Don't #if a function declaration and properly indent it.
Originally committed as revision 18722 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-30 21:34:56 +00:00
Ramiro Polla
bf4f19dc65 mlpdec: Move MLP's filter_channel() to dsputils.
Originally committed as revision 18721 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-30 12:30:05 +00:00
Ramiro Polla
ce1d9c851c Export av_free_packet().
Originally committed as revision 18719 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-30 12:06:34 +00:00
Diego Biurrun
f0a75e66b9 Add missing return statement to out-of-memory condition. Fixes the warning:
libavcodec/motionpixels.c:302: warning: statement with no effect

Originally committed as revision 18718 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-30 10:21:22 +00:00
Diego Biurrun
a068a7f1f0 Drop unused libamr-nb fixed-point glue code.
Originally committed as revision 18716 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-29 15:43:57 +00:00
David Conrad
d647ed789f ARM: Use fewer register in NEON put_pixels _y2 and _xy2
Approved by Mans on IRC

Originally committed as revision 18713 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-29 11:38:09 +00:00
David Conrad
428bf2ac88 ARM: NEON put_pixels_clamped
Originally committed as revision 18712 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-29 11:31:43 +00:00
Stefano Sabatini
5efccce2a9 Implement av_get_bits_per_pixel().
Originally committed as revision 18709 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-27 23:20:30 +00:00
Vitor Sessak
859471565a Revert r18700, documentation of deprecated functions might be useful for
people trying to update to the new API.

Log of r18700:
Remove documentation from deprecated fields, they should not be used,
thus there is no sense in documenting them.

Originally committed as revision 18708 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-27 18:35:54 +00:00
Vitor Sessak
6cf92f6d26 Check if there is enough bytes before reading the buffer in the EA ADPCM
decoder. Fix issue 990.

Originally committed as revision 18707 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-27 16:06:01 +00:00
Vitor Sessak
8a06cb14f9 Skip 0x0000 frame footer in EA ADPCM decoder.
Originally committed as revision 18706 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-27 16:04:43 +00:00
Michael Niedermayer
859f9c0b47 Remove useless and outright wrong chatter from avcodec_encode_video().
Originally committed as revision 18705 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-27 12:41:41 +00:00
Michael Niedermayer
aa04b9204e Remove redundant chatter from avcodec_encode_audio()
Originally committed as revision 18704 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-27 12:39:30 +00:00
Michael Niedermayer
1885c76acf Negative is error not -1, corrected in the doxy for avcodec_decode_subtitle2().
Originally committed as revision 18703 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-27 12:38:14 +00:00
Michael Niedermayer
4d24c24fcb Add multiframe note to avcodec_decode_video() too.
Originally committed as revision 18702 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-27 12:36:23 +00:00
Michael Niedermayer
e5776422b4 Cleanup first paragraph of doxy of avcodec_decode_audio3().
Originally committed as revision 18701 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-27 12:34:25 +00:00
Michael Niedermayer
3784411100 Remove documentation from deprecated fields, they should not be used,
thus there is no sense in documenting them.

Originally committed as revision 18700 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-27 12:28:56 +00:00
Michael Niedermayer
ed57ef39e6 Remove confusing and redundant engrish chatter from avcodec_decode_video2().
Originally committed as revision 18699 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-27 12:25:36 +00:00
Kostya Shishkov
9c4b5eb8ce Revert changing VLC initialization type for RV3/4 decoder.
While using large static table is not good (especially for embedded devices and
CPUs with small cache), other alternatives are not very good either.

Originally committed as revision 18696 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-27 05:30:22 +00:00
Ramiro Polla
77b12f809b mlpdec: Simplify filtering code by using only one counter variable.
Originally committed as revision 18695 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-26 20:37:40 +00:00
Laurent Aimar
60294c593e Correctly update output sample format in wavpack decoder.
Patch by Laurent Aimar (at 'fenrir (cons 'videolan 'org))

Originally committed as revision 18694 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-26 04:23:29 +00:00
Benjamin Larsson
bdb8d99613 Proper subpacket size check for cook multichannel files.
Originally committed as revision 18693 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-25 20:09:34 +00:00
Benjamin Larsson
bb1135c8a3 Remove parentheses
Originally committed as revision 18692 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-25 19:47:18 +00:00
Benjamin Larsson
fcc01e646b Set the type of size in COOKSubpacket to unsigned
Originally committed as revision 18691 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-25 18:43:30 +00:00
Stefano Sabatini
75801da580 Add pixdescs definitions for planar YUV pixfmts with 16 bits per
component.

Originally committed as revision 18690 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-25 18:29:31 +00:00
Benjamin Larsson
ec32cfd2cc Make sure we only parse max amount of subpackets (5) in the cook decoder.
Originally committed as revision 18689 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-25 17:46:27 +00:00
Benjamin Larsson
da75426b26 Indent
Originally committed as revision 18688 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-25 17:35:21 +00:00
Benjamin Larsson
0a704b5f21 Remove redundant code
Originally committed as revision 18687 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-25 17:33:36 +00:00
Benjamin Larsson
67da31826f Support cook multichannel files.
Originally committed as revision 18685 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-25 10:46:07 +00:00
Benjamin Larsson
7204850ea9 Fix the COOKDEBUG code
Originally committed as revision 18684 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-25 10:25:14 +00:00
Benjamin Larsson
4a291c90fe Factor out COOKSubpacket, in preparation for multichannel support.
Originally committed as revision 18683 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-25 10:20:48 +00:00
Stefano Sabatini
10151b138a Add missing pixel format descriptor definitions.
Originally committed as revision 18682 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-25 07:53:55 +00:00
Kostya Shishkov
3df18b3ed1 Get rid of monstrous static table and initialize VLCs for RV3/4 dynamically.
Originally committed as revision 18681 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-25 05:47:38 +00:00
Kostya Shishkov
1c86db80a9 Remove useless assignment during initialization for some decoders
Originally committed as revision 18680 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-24 14:09:24 +00:00
Michael Niedermayer
f83c57735e indent
Originally committed as revision 18679 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-24 13:38:28 +00:00
Reimar Döffinger
96c5bc46d2 TrueMotion 2 uses its own YUV-like colourspace, so convert output to proper RGB.
Patch by Reimar Döffinger <latinize($name) at (MN's favourite mail provider).de>

Originally committed as revision 18677 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-24 06:44:16 +00:00
Kostya Shishkov
120ac2620d cosmetics: remove extra space indentation
Originally committed as revision 18676 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-24 05:52:53 +00:00
Kostya Shishkov
29ee635503 Merge decoding functions for all bitdepths in WavPack decoder
Originally committed as revision 18675 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-24 05:50:19 +00:00
Michael Niedermayer
68f8d33bec Support >8bit per component YUV in FFV1.
decoding becomes slower, encoding becomes faster, with gcc on duron.
some inlining overrides like av_flatten are added to keep inlining similar
to before.

Originally committed as revision 18674 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-24 04:10:32 +00:00
Michael Niedermayer
217d34e307 Force speed irrelevant calls to get/put_symbol() to be noinline.
We need to change decode_line to always_inline because gcc decided not to inline
it anymore once we force some calls to get/put_symbol() to be non inlined and
this decision of gcc would lead to a 10% overall speed loss.
100k smaller object file, no speed change

Originally committed as revision 18673 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-24 01:50:09 +00:00
Michael Niedermayer
3788e661f1 Optimize sign handling in get_symbol().
Originally committed as revision 18672 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-24 00:26:49 +00:00
Stefano Sabatini
2e418f5ed8 Make avcodec_thread_init() set the thread count, even in the case when
threads support is not enabled. This should avoid the need for
thread_count explicit setting in applications.

Originally committed as revision 18670 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-23 23:14:26 +00:00
Kostya Shishkov
6e0f746d3e Handle WavPack INT32INFO chunks with nonzero post shift
Originally committed as revision 18668 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-23 18:21:16 +00:00
Kostya Shishkov
0638c2ae3c Add functions for decoding >16 bits WavPack files.
Based on patches by Laurent Aimar (fenrir >whirlpool< videolan >dit< org)

Originally committed as revision 18667 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-23 17:27:04 +00:00
Laurent Aimar
760db32a0c Shift 9-15 bit samples to use full 16-bit range.
Patch by Laurent Aimar <fenrir at VLCsite>
Thread: [PATCH] Fixed wavpack 9-15 bits support

Originally committed as revision 18666 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-23 07:44:04 +00:00
Kostya Shishkov
b750fb6945 Display dimensions should not affect the real size of coded frame, thus set
only avctx->{width,height} and don't touch coded_{width,height} when parsing
them. This fixes the case when coded and display dimensions differ by more
than one macroblock.

Originally committed as revision 18665 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-23 07:14:02 +00:00
Michael Niedermayer
e1b3d27272 Remove 2 useless FFMIN().
Originally committed as revision 18664 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-22 22:05:34 +00:00
Michael Niedermayer
7bdf2eb8c4 Remove apparently redundant code.
Originally committed as revision 18663 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-22 21:44:41 +00:00
Benjamin Larsson
6c73a7d06c Remove redundant code, found by CSA
Originally committed as revision 18661 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-22 13:52:33 +00:00
Kostya Shishkov
21fce71fd1 Switch VLC tables in WMV3/VC-1 decoder to new static init method
Originally committed as revision 18658 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-22 05:20:31 +00:00
Michael Niedermayer
445f0a8b66 Update safety check as the maximum pixel size is no longer 4.
New max size is 16bit * 4 samples (RGBA).

Originally committed as revision 18655 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-22 01:54:05 +00:00
Michael Niedermayer
97f9214342 Support reading packed YUV422 10bit samples from Sveriges Television AB (SVT)
which have AFAIK been created for the jvt:
ftp://vqeg.its.bldrdoc.gov/HDTV/SVT_exports/SVT_YUV10_Exports_/NewMobCal_YUV10_720p5994_/
I have called the format v210x due to its similarity to v210, note though I have
not confirmed that v210x is different from actual v210 samples it just is
different from the description of v210 I am aware of.

Originally committed as revision 18654 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-22 01:50:15 +00:00
Stefano Sabatini
297b5a3f99 Make read_line() do not depend on put_bits.h and speed up it.
Originally committed as revision 18653 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-22 00:04:17 +00:00
Ramiro Polla
420df93037 mlpdec: Don't overallocate buffers.
Now that max channels and primitive matrices are properly validated, there is
no need to be paranoid that random data will be overwritten.
As a bonus this makes matrix_coeff 16-byte aligned between matrices.

Originally committed as revision 18651 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-21 22:53:46 +00:00
Ramiro Polla
309616b249 mlpdec: Validate num_primitive_matrices.
Originally committed as revision 18650 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-21 22:32:50 +00:00
Ramiro Polla
868170c4da mlpdec: Validate max_channel and max_matrix_channel.
Originally committed as revision 18649 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-21 22:12:30 +00:00
Ramiro Polla
46958efe97 mlpdec: Restart header sync must be 0x31ea for MLP.
Originally committed as revision 18648 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-21 21:57:23 +00:00
Stefano Sabatini
5499a31322 Add missing header inclusion guard.
Originally committed as revision 18647 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-21 21:51:01 +00:00
Stefano Sabatini
9401d18fa5 Implement a write_line() function.
Originally committed as revision 18646 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-21 19:15:21 +00:00
Jai Menon
3d10a8904d Read extended channel configuration when extended AOT is BSAC.
Originally committed as revision 18644 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-21 17:52:52 +00:00
Kostya Shishkov
0cfa85dd9f Make VLC tables in DCA decoder use INIT_VLC_USE_NEW_STATIC
Originally committed as revision 18643 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-21 17:37:03 +00:00
Kostya Shishkov
a456df258e 100l: VLC table array should not be const
Originally committed as revision 18642 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-21 17:35:30 +00:00
Robert Swain
7bbd2fb126 Remove redundant assignment. err is assigned in every switch case anyway. Issue
found by CSA.

Originally committed as revision 18641 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-21 12:29:36 +00:00
Michael Niedermayer
223d996aaf Fix a possibly exploitable buffer overflow.
Originally committed as revision 18640 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-21 12:00:39 +00:00
Kostya Shishkov
f7cf12b209 Set flag after VC-1 VLCs are initialized to avoid race condition
Originally committed as revision 18639 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-21 05:42:22 +00:00
Kostya Shishkov
346802aa99 Remove some useless assignments and variables found by Clang
Originally committed as revision 18638 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-21 05:24:50 +00:00
Kostya Shishkov
547b6a4cc7 Make RV3/4 VLC tables use new static initialization method
Originally committed as revision 18637 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-21 04:42:27 +00:00
Michael Niedermayer
6c2a860875 Add 420,422 and 444 planar 16bit per component pix formats.
Originally committed as revision 18636 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-21 01:02:48 +00:00
Kostya Shishkov
0a044f0f06 Make rv40 decoder use new static VLC initialization method
Originally committed as revision 18634 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-20 17:13:21 +00:00
Kostya Shishkov
4003971717 Compact and make constant two tables used by Musepack decoders
Originally committed as revision 18633 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-20 15:36:27 +00:00
Justin Ruggles
be1efe5993 ac3enc: log a warning message if the channel layout is not specified at
the time of codec initialization.

Originally committed as revision 18631 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-20 00:34:08 +00:00
Michael Niedermayer
34365443fd Indent
Originally committed as revision 18627 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-19 20:41:26 +00:00
Michael Niedermayer
012e4f5a18 Do not discard truncated packets.
Based on a patch by Maksym Veremeyenko verem DOT m1stereo AT tv

Originally committed as revision 18626 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-19 20:40:56 +00:00
Justin Ruggles
120b4557f3 Add channel layout support to the AC-3 encoder.
Originally committed as revision 18623 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-19 15:06:13 +00:00
Justin Ruggles
bfeca7beb6 Add channel layout support to the AC-3 decoder and AC-3 parser.
Originally committed as revision 18622 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-19 15:05:32 +00:00
Justin Ruggles
be233a5691 Check that channel layout is compatible with number of channels for
output audio stream.

Originally committed as revision 18621 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-19 14:05:55 +00:00
Robert Swain
5967e1413e Remove unnecessary assignment, found by CSA.
Originally committed as revision 18617 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-19 00:55:46 +00:00
Kenan Gillet
d1bf60771c Add LP zero synthesis filter. Patch by Kenan Gillet.
Originally committed as revision 18616 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-18 22:53:37 +00:00
Ramiro Polla
a256445ec3 mlpdec: Read context variable to local variable to make code cleaner.
Originally committed as revision 18615 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-18 20:23:13 +00:00
Ramiro Polla
f95f6ab91e mlpdec: {}- and whitespace-related cosmetics.
Originally committed as revision 18614 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-18 19:52:52 +00:00
Ramiro Polla
63ad832dd6 mlpdec: Use some context arrays with local variables in rematrix_channels().
Originally committed as revision 18613 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-18 19:46:41 +00:00
Ramiro Polla
15e6748b72 truehd: Simplify rematrix_channels() as per Michael's original review.
Originally committed as revision 18612 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-18 19:39:07 +00:00
Ramiro Polla
95c14b1eea mlpdec: Make read_matrix_params() take unsigned int substr for consistency.
Originally committed as revision 18611 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-18 18:54:30 +00:00
Ramiro Polla
5d9e4eaa6d mlpdec: Check for {matrix,filter}_changed as soon as they are incremented.
Originally committed as revision 18610 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-18 18:51:43 +00:00
Justin Ruggles
1b7bc4a245 Add 3 channel layout convenience macros.
Originally committed as revision 18609 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-18 18:51:01 +00:00
Reimar Döffinger
f63f689e10 Avoid code duplication in xan_unpack for the final memcpy.
Originally committed as revision 18608 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-18 17:26:00 +00:00
Reimar Döffinger
d7670f2827 Use sign_extend function instead of reimplementing it.
Originally committed as revision 18599 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-17 20:05:27 +00:00
Reimar Döffinger
e62f622193 Remove a useless "& 0xF"
Originally committed as revision 18598 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-17 20:01:45 +00:00
Reimar Döffinger
977d813447 Use / and % operators instead of reimplementing them with a loop.
Originally committed as revision 18597 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-17 19:56:50 +00:00
Reimar Döffinger
b1e309865f Change buffer check to avoid an unlikely pointer arithmetic overflow.
Originally committed as revision 18596 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-17 19:49:55 +00:00
Reimar Döffinger
be50938073 Simplify xan_huffman_decode by using get_bits
Originally committed as revision 18595 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-17 19:48:54 +00:00
Lars Täuber
a4873f7d9d Fix indention, patch by Lars Täuber.
Originally committed as revision 18594 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-17 19:29:54 +00:00
Reimar Döffinger
6000439ca4 Simplify ipvideo_decode_opcodes by using get_bits, this might be slower
but is not performance-critical anyway.

Originally committed as revision 18593 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-17 19:28:36 +00:00
Reimar Döffinger
28ab90edde Remove unused code_counts array from interplavideo.c.
Originally committed as revision 18592 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-17 19:21:50 +00:00
Jai Menon
b24bbbb4da Introduce codec id for MPEG-4 ALS and associate it with corresponding
AudioObjectType. Also bump libavcodec minor version.

Originally committed as revision 18591 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-17 19:17:14 +00:00
Reimar Döffinger
e5986d0427 Cosmetics to improve xan_unpack readability
Originally committed as revision 18590 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-17 19:14:11 +00:00
Reimar Döffinger
16cc5a738c Fix buffer size check for xan_unpack which was broken by r18586
Originally committed as revision 18589 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-17 19:07:16 +00:00
Reimar Döffinger
c644665f42 Some more simplifications of xan_unpack
Originally committed as revision 18588 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-17 19:03:43 +00:00
Reimar Döffinger
455fdd2f8c Reindent xan_unpack code
Originally committed as revision 18587 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-17 18:56:47 +00:00
Reimar Döffinger
948f60fa24 Avoid some code duplication in xan_unpack
Originally committed as revision 18586 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-17 18:54:17 +00:00
Michael Niedermayer
f371abe4a8 Remove useless assignments, at least one found by CSA.
Originally committed as revision 18585 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-17 18:28:59 +00:00
Reimar Döffinger
59bd7f23e8 Increase buffer padding to avoid most space checks in xan_unpack
Originally committed as revision 18584 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-17 18:26:24 +00:00
Michael Niedermayer
339cdf9681 Remove useless init from ff_mpeg4_set_direct_mv() found by CSA.
Originally committed as revision 18583 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-17 18:24:39 +00:00
Michael Niedermayer
16a5f4caa9 Remove a useless assignment in img_get_alpha_info() found by CSA.
Originally committed as revision 18582 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-17 18:22:19 +00:00
Michael Niedermayer
f8112810cf Remove redundant assignment in av_picture_copy() found by CSA.
Originally committed as revision 18581 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-17 18:20:12 +00:00
Michael Niedermayer
feda8550a9 Remove several useless writes to variables, found by CSA.
Originally committed as revision 18579 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-17 18:16:36 +00:00
Michael Niedermayer
b278a1ed1c Remove useless += from ff_imdct_half_c() found by CSA.
Originally committed as revision 18578 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-17 18:12:00 +00:00
Reimar Döffinger
4b96f43fe1 Change buffer size checks to avoid the very unlikely overflow case.
Originally committed as revision 18576 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-17 18:03:00 +00:00
Michael Niedermayer
38a7695f67 Remove unused variable from h261_encode_block() found by CSA.
Originally committed as revision 18575 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-17 17:56:16 +00:00
Reimar Döffinger
5e12701c5c Remove a pointless right-shift in xan decoder.
Originally committed as revision 18574 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-17 17:54:55 +00:00
Michael Niedermayer
25ef00720b Remove 2 useless assignments from ff_rate_control_init() found by CSA.
Originally committed as revision 18573 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-17 17:52:58 +00:00
Reimar Döffinger
9126aea528 Replace bytecopy with the equivalent but faster av_memcpy_backptr.
Ca. 10% faster xan_unpack on x86_64 decoding of SC_32-part.MVE

Originally committed as revision 18572 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-17 17:46:10 +00:00
Michael Niedermayer
29322398fc Remove unused variable from slice_buffer_release() found by CSA.
Originally committed as revision 18570 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-17 17:39:09 +00:00
Reimar Döffinger
44c9efcb57 Use memcpy instead of the very inefficient bytecopy where both are correct
(i.e. no overlap of src and dst is possible).

Originally committed as revision 18569 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-17 17:20:48 +00:00
Michael Niedermayer
110baa2e99 Remove unused variable from wma_decode_block() found by CSA.
Originally committed as revision 18568 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-17 15:35:32 +00:00
Michael Niedermayer
87718654b1 Remove redundant assignment from avcodec_get_pix_fmt_loss() found by CSA.
Originally committed as revision 18564 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-17 15:10:37 +00:00
Michael Niedermayer
956177fb1d Remove unused variable in modify_qscale() found by CSA.
Originally committed as revision 18563 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-17 15:08:00 +00:00
Michael Niedermayer
75eaa91c15 Remove unused variables from slice_buffer_load_line() found by CSA.
Originally committed as revision 18561 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-17 15:01:58 +00:00
Michael Niedermayer
6081c30b81 Remove 2 unneeded variables from common_init() found by CSA.
Originally committed as revision 18560 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-17 14:59:04 +00:00
Michael Niedermayer
d0d62cc955 Remove 2 unused variables from MPV_decode_mb_internal() found by CSA.
Originally committed as revision 18559 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-17 14:51:00 +00:00
Michael Niedermayer
dd08de11f6 Remove unused assignment from j_rev_dct() found by CSA.
Originally committed as revision 18558 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-17 14:43:28 +00:00
Michael Niedermayer
01d83278e9 Remove unused variable in init_mv_penalty_and_fcode() found by CSA.
Originally committed as revision 18557 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-17 14:42:02 +00:00
Kostya Shishkov
c994dae1e2 cosmetics: reindent after last commit
Originally committed as revision 18554 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-17 14:10:24 +00:00
Kostya Shishkov
bd4110f99b Use new static VLC scheme in Indeo2, Musepack and WNV1 decoders
Originally committed as revision 18553 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-17 14:09:56 +00:00
Michael Niedermayer
72619760f0 Remvoe useless assignment found by CSA.
Originally committed as revision 18551 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-17 13:59:07 +00:00
Michael Niedermayer
b52b6ae489 Remove unused variable from decode_init() found by CSA.
Originally committed as revision 18550 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-17 13:57:22 +00:00
Vitor Sessak
b0e37369a1 Remove useless assignment in generate_codebook(). Found by Clang static analyser.
Originally committed as revision 18549 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-17 13:07:18 +00:00
Michael Niedermayer
806d5e61dc Remove unused variables from ff_mjpeg_decode_sos() found by CSA.
Originally committed as revision 18548 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-17 13:03:56 +00:00
Michael Niedermayer
c2394854ed Remove useless assignment from h263_pred_dc() found by the clang static analyzer.
Originally committed as revision 18547 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-17 12:57:47 +00:00
Michael Niedermayer
6e21a5b1ae Move declarations in mpeg1_encode_motion() closer to where they are needed.
Originally committed as revision 18546 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-17 12:53:11 +00:00
Michael Niedermayer
2a47a2666d Useless assignment found by the clang static analyzer.
Originally committed as revision 18545 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-17 12:44:48 +00:00
Michael Niedermayer
03d5ea54c1 Get rid of an unused variable, found by the clang static analyzer.
Originally committed as revision 18544 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-17 12:41:37 +00:00
Justin Ruggles
95f3019a51 ac3dec: reorder output channels to SMPTE channel order
Originally committed as revision 18542 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-17 08:43:04 +00:00
Reimar Döffinger
8b5ec0875c Change tgq_decode_mb function arguments from using int8_t to uint8_t, this does
not really change the code (x86_64/gcc-4.3.3 results stay unchanged) but avoids
several casts and an aliasing violation that broke decoding at least on
PPC64/gcc-4.1.2.

Originally committed as revision 18541 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-17 08:42:08 +00:00
Justin Ruggles
a7c6e1171b ac3enc: reorder input channels to AC-3 channel order
Originally committed as revision 18540 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-17 08:39:11 +00:00
David Conrad
d8f3f340ad Add guaranteed alignment for loading dest pixels in avg_pixels16_neon
Originally committed as revision 18535 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-16 08:39:13 +00:00
David Conrad
2d08f9ea54 VC1 loop filter uses the frame quantizer not the mb quantizer
Originally committed as revision 18534 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-16 07:34:52 +00:00
Michael Niedermayer
74b14aacfa Support broken avc nal encapsulation.
Fixes issue987.

Originally committed as revision 18533 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-16 04:46:44 +00:00
Justin Ruggles
0bc08ed941 flacenc: write initial blocksize to STREAMINFO header instead of current
blocksize.

Originally committed as revision 18532 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-16 02:28:49 +00:00
Reynaldo H. Verdejo Pinochet
e223a3bd38 [COSMETIC] Correct a minor nit. Should be clearer now.
Originally committed as revision 18529 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-15 19:37:35 +00:00
Kenan Gillet
807c4c7875 Fix possibly harmful outbound addressing. Patch by Kenan Gillet.
Originally committed as revision 18528 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-15 19:28:28 +00:00
David Conrad
c21c835b8d avg_ pixel functions need to use (dst+pix+1)>>1 to average with existing
pixels, not (dst+pix)>>1.
This makes the mmx functions bitexact with the C functions.

Originally committed as revision 18527 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-15 19:10:16 +00:00
David Conrad
99cc7f8a02 Altivec version of avg_no_rnd_vc1_chroma_mc8
Originally committed as revision 18522 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-15 06:23:40 +00:00
David Conrad
3992526b3c Split VC1 loop filter into separate functions for h/v and size
Originally committed as revision 18521 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-15 06:22:17 +00:00
David Conrad
0e58865d6e Move VC1 loop filter to DSPContext
Originally committed as revision 18520 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-15 06:20:22 +00:00
David Conrad
9bf0fdf378 VC1: extend MMX qpel MC to include MMX2 avg qpel
Originally committed as revision 18519 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-15 02:25:42 +00:00
David Conrad
8013da7364 VC1: add and use avg_no_rnd chroma MC functions
Originally committed as revision 18518 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-14 23:56:10 +00:00
David Conrad
c374691b28 Rename put_no_rnd_h264_chroma* to reflect its usage in VC1 only
Originally committed as revision 18517 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-14 23:55:39 +00:00
Vitor Sessak
de5922f179 For every line, copy 3*width bytes instead of linesize[0] to avoid
problems with padding.

Fix issue 959

Originally committed as revision 18512 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-14 21:03:41 +00:00
David Conrad
6cecd63005 VC1: Do qpel when needed for both MVs in a B frame
Originally committed as revision 18511 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-14 19:26:33 +00:00
Alex Converse
184fcc60b7 Mark src constant in copy_block*().
Originally committed as revision 18506 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-14 04:07:35 +00:00
Baptiste Coudurier
bee3140a88 fix indentation
Originally committed as revision 18503 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-14 00:12:54 +00:00
Baptiste Coudurier
de481d7fed avoid strcmp NULL, fix segv on mingw
Originally committed as revision 18502 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-14 00:12:29 +00:00
Stefano Sabatini
ad25b95470 Fix skip_put_bits() buf_ptr increment.
Originally committed as revision 18499 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-13 20:44:42 +00:00
Bobby Bingham
0aed5e9fb8 Skip loop iterations which are no-ops due to data1[-lag..-1] being zero.
Originally committed as revision 18498 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-13 18:07:02 +00:00
Stefano Sabatini
fb53b4a035 Rename pbBufPtr() to put_bits_ptr().
The new name is more readable and consistent with the FFmpeg naming
style.

Originally committed as revision 18497 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-13 16:59:38 +00:00
Stefano Sabatini
084c7cc54a Do not use full include path for get_bits.h, since the header is in
the same directory.
Consistent with r16260.

Originally committed as revision 18496 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-13 16:47:17 +00:00
Jai Menon
437f884da6 flacenc : do not #include libavutil/lls.h since lpc code is now
separate.

Originally committed as revision 18495 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-13 16:23:54 +00:00
Stefano Sabatini
9106a698e7 Rename bitstream.h to get_bits.h.
Originally committed as revision 18494 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-13 16:20:26 +00:00
Jai Menon
309a8bb8a1 alacenc : cosmetics : remove misleading comment
Originally committed as revision 18493 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-13 15:11:40 +00:00
Baptiste Coudurier
1b66180263 fix indentation
Originally committed as revision 18482 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-13 03:35:32 +00:00
Baptiste Coudurier
e44745f1a8 fix indentation and remove whitespace after return
Originally committed as revision 18481 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-13 03:33:39 +00:00
Baptiste Coudurier
8fa0ae060b Init state to -1 in h264 parser.
Fix:
==22063== Conditional jump or move depends on uninitialised value(s)
==22063==    at 0x811A4B7: ff_find_start_code (mpegvideo.c:99)
==22063==    by 0x82F5B74: parse_nal_units (h264_parser.c:132)
==22063==    by 0x82F5A68: h264_parse (h264_parser.c:261)
[...]
==22063==  Uninitialised value was created by a stack allocation
==22063==    at 0x82F5AF5: parse_nal_units (h264_parser.c:112)

Originally committed as revision 18479 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-13 03:29:19 +00:00
Diego Biurrun
c5662879ff Move addition of MMX-OBJS to OBJS into common.mak instead of duplicating it.
Originally committed as revision 18478 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-12 22:48:44 +00:00
Reynaldo H. Verdejo Pinochet
8bf7a510b9 Fix wrong size computation for buffer. Patch is part of
netgem's changeset.

Originally committed as revision 18477 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-12 21:48:43 +00:00
Diego Biurrun
5137235e0c Remove gcc_fixes.h. It only contains workarounds for unsupported gcc versions.
Originally committed as revision 18476 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-12 21:45:26 +00:00
Diego Biurrun
788cca4135 Remove AltiVec optimizations for Snow. They are hindering the development
of Snow, which is still in flux.

Originally committed as revision 18475 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-12 21:42:55 +00:00
Michael Niedermayer
d225a1e248 Fix 2 access units in a packet mp4s.
Fixes issue944 and possibly others.

Originally committed as revision 18474 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-12 20:43:52 +00:00
Michael Niedermayer
ead793358a Get rid of the non sensical idea of using the current picture for missing
reference pictures.

Originally committed as revision 18473 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-12 20:40:18 +00:00
Michael Niedermayer
256299d302 Factorize field_end() out.
Originally committed as revision 18472 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-12 20:21:23 +00:00
Michael Niedermayer
7824b129a0 Assert that the first list1 entry is a reference frame.
Originally committed as revision 18471 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-12 13:58:03 +00:00
Reimar Döffinger
238ef6dadd Add a av_fast_malloc function and replace several uses of av_fast_realloc,
thus avoiding potential memleaks and pointless memcpys.

Originally committed as revision 18470 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-12 13:17:37 +00:00
Reimar Döffinger
9bf993a5b5 Use void * instead of uint8_t * for the destination buffer for dsp.bswap_buf
where easily possible (mimic, eatqi, 4xm).
This allows to avoid a typecast.

Originally committed as revision 18469 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-12 12:25:53 +00:00
Reimar Döffinger
55775b099d Use AVERROR(ENOMEM) instead of AVERROR_NOMEM / -1 in eatqi and mimic decoders
Originally committed as revision 18467 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-12 09:33:38 +00:00
Stefano Sabatini
53bd67ec89 Document pbBufPtr().
Originally committed as revision 18466 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-12 09:06:17 +00:00
Stefano Sabatini
b275500706 Split bitstream.h, put the bitstream writer stuff in the new file
put_bits.h.

Originally committed as revision 18461 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-12 08:35:26 +00:00
Justin Ruggles
f79e331f34 Add names for 5.0 and 5.1 back speaker channel layouts.
Originally committed as revision 18459 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-12 03:26:20 +00:00
John Fletcher
dae2434928 Fix documentation for avcodec_encode_audio(), in the case of PCM audio
the output buffer size may be less than FF_MIN_BUFFER_SIZE.

Patch by John Fletcher john.surname AT rd . bbc . co . uk.

Originally committed as revision 18449 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-11 21:14:29 +00:00
Stefano Sabatini
4af615b81e Document the 'size' parameter of set_put_bits_buffer_size().
Originally committed as revision 18448 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-11 21:04:26 +00:00
Stefano Sabatini
930cab5944 Document ff_put_string().
Originally committed as revision 18447 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-11 21:01:30 +00:00
Stefano Sabatini
147a90a3e5 Replace deprecated FF_MM_MMXEXT flag with FF_MM_MMX2.
Originally committed as revision 18443 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-11 18:12:23 +00:00
Stefano Sabatini
54b02ccda2 Rename the 'put_zero' parameter of ff_put_string() to
'terminate_string'.

Originally committed as revision 18442 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-11 15:54:21 +00:00
Stefano Sabatini
980f54513e Add documentation for skip_put_bytes().
Originally committed as revision 18441 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-11 14:49:46 +00:00
Stefano Sabatini
093364da30 Doxygenate ff_copy_bits().
Originally committed as revision 18440 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-11 14:47:35 +00:00
Stefano Sabatini
86755e82f7 Factorize declaration for the two variants of put_bits().
Originally committed as revision 18439 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-11 14:19:09 +00:00
Michael Niedermayer
1b923aa44a Two INIT_VLC_USE_STATIC cases Carl missed.
Originally committed as revision 18438 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-11 14:16:30 +00:00
Michael Niedermayer
78435e9971 get rid of INIT_VLC_USE_STATIC in h261.
Originally committed as revision 18437 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-11 13:58:18 +00:00
Michael Niedermayer
76ac719888 Get rid of INIT_VLC_USE_STATIC in rv10/rv20.
Originally committed as revision 18436 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-11 13:53:34 +00:00
Michael Niedermayer
2a0241ae12 Get rid of INIT_VLC_USE_STATIC in 4xm.
Originally committed as revision 18435 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-11 13:43:09 +00:00
Michael Niedermayer
5338bec697 Get rid of INIT_VLC_USE_STATIC in asv1.
Originally committed as revision 18434 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-11 13:40:39 +00:00
Michael Niedermayer
5cf4331b04 Get rid of INIT_VLC_USE_STATIC in msmpeg4
Originally committed as revision 18433 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-11 13:29:05 +00:00
Stefano Sabatini
0a73e94fd6 Clarify documentation for put_bits_count().
Originally committed as revision 18432 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-11 13:04:33 +00:00
Reimar Döffinger
80d403fc19 Get rid of av_destruct_packet_nofree and use NULL instead.
It is still used in comparisons to keep ABI compatibility.

Originally committed as revision 18431 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-11 12:42:29 +00:00
Carl Eugen Hoyos
e161e007be Use INIT_VLC_USE_STATIC and not its value "1".
Originally committed as revision 18430 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-11 11:47:15 +00:00
Stefano Sabatini
facf521daa Document align_put_bits().
Originally committed as revision 18427 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-10 22:29:56 +00:00
Stefano Sabatini
fc660a0143 Doxygenate flush_put_bits() documentation.
Originally committed as revision 18426 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-10 22:27:29 +00:00
Stefano Sabatini
e46ddebd14 Doxygenate put_bits_count() documentation.
Originally committed as revision 18425 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-10 22:14:45 +00:00
Stefano Sabatini
f7a2aab7d8 Doxygenate init_put_bits().
Originally committed as revision 18423 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-10 17:30:42 +00:00
Diego Biurrun
64bde1974b cosmetics: Rename prn variable to prng (Pseudo Random Number Generator).
Originally committed as revision 18422 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-10 17:23:38 +00:00
Thilo Borgmann
ee30cdabad Add support to CorePNG P-frames.
Patch by Thilo Borgmann thilo DOT borgmann A googlemail com.

Originally committed as revision 18421 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-10 17:16:19 +00:00
Reimar Döffinger
6752dd5aee Loop up to MAX_THREADS instead of h->s.avctx->thread_count to free the thread
contexts, this avoids a crash when freeing the H.264 parser context introduced in
r18406, since h->s.avctx is NULL there.

Originally committed as revision 18418 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-10 14:30:04 +00:00
Diego Biurrun
222ab26c62 Remove unused variables along with the related warnings.
Originally committed as revision 18413 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-10 11:33:14 +00:00
Reimar Döffinger
cbf1eae9a5 Add forgotten void return type to ff_h264_free_context
Originally committed as revision 18411 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-10 11:31:55 +00:00
Diego Biurrun
e4732ba98b Fix sigill on non-MMX2 CPUs.
Originally committed as revision 18410 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-10 11:29:51 +00:00
Thilo Borgmann
4f313925ec Use the new avcodec_decode_* API.
Patch by Thilo Borgmann name.surname AT googlemail.com.

Originally committed as revision 18409 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-10 11:07:52 +00:00
Reimar Döffinger
b6b6676085 Make sure error resilience does not try to use unavailable reference frames.
Fixes the crash described in issue 706.

Originally committed as revision 18407 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-10 07:17:30 +00:00
Reimar Döffinger
15861962a7 Add a ff_h264_free_context function and call it from the H.264 parser.
This ensures that the parser will no longer leak memory for all SPS/PPS it encounters.

Originally committed as revision 18406 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-10 07:01:55 +00:00
Michael Niedermayer
c81185a183 Make sure mpeg2 has its height rounded up to 32 as that is needed
for interlaced stuff.
This might have been exploitable when emu edge was not set though
note this bug has been introduced just a few days ago.

Originally committed as revision 18405 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-10 00:09:07 +00:00
Michael Niedermayer
cfe675269b Do not use SSE2 SAD for snow as it requires more alignment than can be
easily provided.
Fixes issue315.

Originally committed as revision 18404 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-09 21:53:48 +00:00
Martin Storsjö
2b12317a90 Fix documentation for the "-ps" option
Patch by Martin Storsjö (martin AT martin DOT st)

Originally committed as revision 18403 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-09 21:52:12 +00:00
Michael Niedermayer
cc0241283b Make sure the next used frame is released so get_buffer() wont fail.
Originally committed as revision 18399 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-09 21:19:25 +00:00
Michael Niedermayer
38fd076c21 Move release_buffer() up so it is prior to a future call to it.
Originally committed as revision 18398 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-09 21:17:53 +00:00
Michael Niedermayer
0a08b5735b Factorize release_buffer()
Originally committed as revision 18397 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-09 20:44:18 +00:00
Michael Niedermayer
eebbb33abf Make sure spatial_decomposition_count is not too large for picture size.
this led to an infinite loop in mirror().

Originally committed as revision 18396 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-09 20:23:13 +00:00
Michael Niedermayer
69409ccb80 Skip non intra frames that have no reference frames.
Originally committed as revision 18395 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-09 20:13:35 +00:00
Michael Niedermayer
440882f7be Make sure spatial_decomposition_count is >0.
Originally committed as revision 18394 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-09 19:45:10 +00:00
Michael Niedermayer
dc7f45a08e Make sure the block array is of the correct size.
This might have been exploitable.

Originally committed as revision 18393 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-09 18:47:50 +00:00
Michael Niedermayer
bc4350a333 Check spatial_decomposition_count too, fixes another crash.
Originally committed as revision 18392 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-09 18:37:26 +00:00
Michael Niedermayer
45d1d9794d 10l, forgot to remove old code, which broke snow.
Originally committed as revision 18391 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-09 18:29:54 +00:00
Michael Niedermayer
158f189f82 Factorize check of read symbols.
Originally committed as revision 18390 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-09 18:21:51 +00:00
Michael Niedermayer
a794356602 Fix spatial_decomposition_type validity check.
Fixes infinite loop (did no investigate why exactly it got stuck).

Originally committed as revision 18389 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-09 15:33:02 +00:00
Michael Niedermayer
f0812be883 Fix crash when max_ref_frames was out of range.
This might have been exploitable.
Fixes first crash of issue840.

Originally committed as revision 18388 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-09 15:17:03 +00:00
Diego Biurrun
7a709548a7 Remove unnecessary gcc_fixes.h #include.
Originally committed as revision 18384 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-09 11:54:13 +00:00
Diego Biurrun
952f18ffe6 cosmetics: Reformat comment paragraph and fix a few typos in it.
Originally committed as revision 18383 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-09 10:06:54 +00:00
Michael Niedermayer
0127b86108 Fix mb_height for interlaced mpeg2.
This correctly fixes issue961, thanks to steven warren for spotting my mistake.

Originally committed as revision 18381 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-08 20:48:44 +00:00
Ramiro Polla
e90f5b5ab1 configure: Add --enable-runtime-cpudetect
Originally committed as revision 18380 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-08 20:26:18 +00:00
Reimar Döffinger
feb993e579 Add av_shrink_packet function for use in av_get_packet that reduces pkt->size
and ensures the following padding is correctly initialized to 0.

Originally committed as revision 18378 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-08 20:19:12 +00:00
Robert Swain
7b356d3951 Clarify which time_base the relevant members of AVPacket use
Originally committed as revision 18371 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-08 01:45:44 +00:00
Robert Swain
f0ed92df60 Fix second amr_nb_decode_frame() to also use the new AVPacket argument
Originally committed as revision 18354 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-07 19:29:00 +00:00
Thilo Borgmann
cdd8930e6a Move av_packet_*() functions from libavformat/ to libavcodec/, where the
AVPacket structure now resides also.

Patch by Thilo Borgmann thilo.borgmann googlemail com, see the mailinglist
thread "Google Summer of Code participation" for additional discussion.

Originally committed as revision 18353 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-07 18:31:14 +00:00
Aurelien Jacobs
012f930855 fix vp5/vp6 decoding by using new prototype for decode function
Originally committed as revision 18352 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-07 18:24:47 +00:00
Thilo Borgmann
7a00bbad21 Implement avcodec_decode_video2(), _audio3() and _subtitle2() which takes an
AVPacket argument rather than a const uint8_t *buf + int buf_size. This allows
passing of packet-specific flags from demuxer to decoder, such as the keyframe
flag, which appears necessary to playback corePNG P-frames.

Patch by Thilo Borgmann thilo.borgmann googlemail com, see also the thread
"Google Summer of Code participation" on the mailinglist.

Originally committed as revision 18351 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-07 15:59:50 +00:00
Thilo Borgmann
18c915eef4 Move AVPacket up a bit, so that structs/functions that include AVPacket can
themselves be reasonably positioned.

Patch by Thilo Borgmann thilo.borgmann googlemail com, see mailinglist thread
"[FFmpeg-devel] Google Summer of Code participation".

Originally committed as revision 18350 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-07 15:37:26 +00:00
Kenan Gillet
809e07c618 Move scale factor computation to its own function. Patch by Kenan
Gillet.

Originally committed as revision 18345 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-07 01:39:17 +00:00
Michael Niedermayer
38d5647a63 Try to honor even completely invalid motion vectors as far as is
easy.
Fixes issue961.

Originally committed as revision 18344 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-06 21:45:02 +00:00
Justin Ruggles
8613af0a65 Add convenience macros for 5.0/5.1 back speaker configurations.
Originally committed as revision 18339 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-06 01:07:09 +00:00
Ramiro Polla
75428fa447 mlpdec: Filters and matrices may change only once per substream per access unit.
Originally committed as revision 18338 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-06 00:58:03 +00:00
Ramiro Polla
89e39be3b6 mlpdec: There must be no extraword for MLP.
Originally committed as revision 18337 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-05 20:54:19 +00:00
Ramiro Polla
cc9c512638 mlpdec: Validate non-restart bit from the substream header.
Originally committed as revision 18336 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-05 20:46:53 +00:00
Ramiro Polla
0091d8a164 mlpdec: matrix_out_ch must not be greater than max_matrix_channel, and not max_channel.
Originally committed as revision 18335 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-05 20:11:40 +00:00
Michael Niedermayer
300a3d0d00 Make sure the last bits of huffyuv frames are zeroed.
Fixes issue946

Originally committed as revision 18334 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-05 13:02:47 +00:00
David Conrad
cc2e555420 ARM: NEON optimized put_signed_pixels_clamped
Originally committed as revision 18333 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-04 21:02:48 +00:00
Måns Rullgård
08e12b2240 ARM: NEON optimised add_pixels_clamped
Based on patch by David Conrad.

Originally committed as revision 18332 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-04 20:18:58 +00:00
Kenan Gillet
3c00556f4b Add missing static qualifier from function declaration. Patch by Kenan
Gillet.

Originally committed as revision 18331 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-04 16:27:54 +00:00
Stefano Sabatini
6b4343616c Rename FF_MM_MMXEXT to FF_MM_MMX2, for both clarity and consistency
with libswscale.

Originally committed as revision 18330 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-04 13:20:53 +00:00
Reimar Döffinger
0be9e73e38 Mark line_skip3 asm argument as output-only instead of using av_uninit.
Originally committed as revision 18327 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-03 14:03:49 +00:00
Reimar Döffinger
d7460a9cac Mark put_signed_pixels_clamped_mmx output operands as early-clobber because
they are. Hopefully fixes some FATE errors, too.

Originally committed as revision 18326 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-03 14:02:34 +00:00
Reimar Döffinger
531a3d2721 Use DECLARE_ASM_CONST for non-global ff_vector128 constant used via MANGLE
Originally committed as revision 18325 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-03 14:01:24 +00:00
Gwenole Beauchesne
68367bdef0 Add VC-1 bitstream decoding through VA API.
Originally committed as revision 18324 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-03 07:40:58 +00:00
Alex Converse
3dd6531208 Rewrite put_signed_pixels_clamped_mmx() to eliminate mmx.h from dsputil_mmx.c.
Originally committed as revision 18319 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-02 21:02:42 +00:00
Thilo Borgmann
fabd2469f1 Move AVPacket declaration from avformat.h to avcodec.h.
Patch by Thilo Borgmann thilo dot borgmann at googlemail _dot_ com.

Originally committed as revision 18317 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-02 19:53:53 +00:00
Jai Menon
3dd2f87e61 Map MOV fourcc YUV2 correctly to PIX_FMT_YUYV422.
Patch by Jai Menon

Originally committed as revision 18316 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-02 12:15:04 +00:00
Gwenole Beauchesne
e103e6dbcf Register VA API HW accelerators.
Pending bits from earlier approved patches:
https://lists.mplayerhq.hu/pipermail/ffmpeg-devel/2009-March/066111.html
https://lists.mplayerhq.hu/pipermail/ffmpeg-devel/2009-April/066918.html

Originally committed as revision 18313 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-02 08:53:34 +00:00
Gwenole Beauchesne
5666fd731e Add hwaccel configury. This generates CONFIG_<CODEC>_<HWACCEL>_HWACCEL
from registered HW accelerated codecs with REGISTER_HWACCEL().

Originally committed as revision 18311 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-02 08:48:06 +00:00
Gwenole Beauchesne
da425800ee Add VA API pixfmt (only VLD is available ATM).
Originally committed as revision 18309 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-02 08:08:45 +00:00
Gwenole Beauchesne
b4df97365f Add MPEG-4 / H.263 bitstream decoding through VA API.
Originally committed as revision 18307 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-02 07:30:04 +00:00
Stefano Sabatini
0a47f60aa8 Extend read_line() to make it take a read_pal_component parameter.
Originally committed as revision 18303 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-01 21:07:49 +00:00
David Conrad
710441c2f6 Add SSE4 detection support
Originally committed as revision 18302 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-01 09:11:32 +00:00
Gwenole Beauchesne
41913a35b0 Add 16cif video frame size abbreviation. i.e. -s alias for 1408x1152.
Originally committed as revision 18301 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-01 08:55:31 +00:00
David Conrad
828775e160 Remove unused FILTSIGN macro
Originally committed as revision 18300 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-01 08:06:30 +00:00
Måns Rullgård
e5d0dbf558 Remove aandcttab.o from dct-test dependencies, the lib includes it
Originally committed as revision 18299 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-01 01:22:36 +00:00
Stefano Sabatini
59b053508f Reindent after the last patch.
Originally committed as revision 18292 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-31 22:53:48 +00:00
Stefano Sabatini
c95dd8d382 Add/fix support for bitstream formats reading in read_line().
Originally committed as revision 18291 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-31 22:52:30 +00:00
Stefano Sabatini
21010f6b2a Make the step and offset fields of the component descriptor express a
number of bits for bitstreams formats.

Originally committed as revision 18290 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-31 22:48:18 +00:00
Reimar Döffinger
8514f8427f Fix ipvideo_decode_block_opcode_0xD again.
Originally committed as revision 18289 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-31 22:28:36 +00:00
Stefano Sabatini
9b34899ecf Document read_line().
Originally committed as revision 18286 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-31 20:13:29 +00:00
Stefano Sabatini
f9f74ab97b Add a notice telling that the behavior of skip_put_bits() is undefined
if n is 0.

Originally committed as revision 18285 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-31 19:57:53 +00:00
Reimar Döffinger
dd9630e40f Cosmetics: remove some pointless {}
Originally committed as revision 18284 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-31 19:39:47 +00:00
Reimar Döffinger
993a442315 Slightly simplify ipvideo_decode_block_opcode_0xD
Originally committed as revision 18283 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-31 19:36:44 +00:00
Reimar Döffinger
49a20ffabc One more simplification for ipvideo_decode_block_opcode_0xA
Originally committed as revision 18282 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-31 19:18:13 +00:00
Stefano Sabatini
bcbd9a149e Cosmetics: reorder the pixel format descriptors to make them match the
same order in pixfmt.h.

Originally committed as revision 18281 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-31 18:52:50 +00:00
Reimar Döffinger
5e8b83ac3b Slightly simplify first part of ipvideo_decode_block_opcode_0xA,
hopefully allows for further simplifications in the future.

Originally committed as revision 18280 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-31 18:48:31 +00:00
Stefano Sabatini
f938cbf984 Change the order of the components for RGB565LE and RGB565BE,
to make them resemble the order in the name: BGR <-> RGB.

Originally committed as revision 18279 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-31 18:41:39 +00:00
Stefano Sabatini
eb39fb512a Add comments specifying the name of the components in the descriptors.
Originally committed as revision 18278 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-31 18:36:58 +00:00
Reimar Döffinger
283531a81e Make ipvideo_decode_block_opcode_0x8 a lot simpler by decoding the pixels
in a more natural order.

Originally committed as revision 18277 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-31 18:35:19 +00:00
Reimar Döffinger
4472ad2cc4 Fix a too small CHECK_STREAM_PTR value in interplayvideo.c
Originally committed as revision 18276 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-31 18:23:52 +00:00
Stefano Sabatini
30266c9286 Make read_line() take as parameter a const AVPixFmtDescriptor * rather than a
(non const) AVPixFmtDescriptor *.

Originally committed as revision 18275 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-31 18:18:14 +00:00
Dylan Yudaken
3ba153f8da Replace MPEG group reference DCT implementation by newly rewritten version.
patch by Dylan Yudaken, dyudaken gmail com

Originally committed as revision 18274 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-31 15:50:11 +00:00
Dylan Yudaken
41b4dbbb0e Replacement reference DCT implementation.
patch by Dylan Yudaken, dyudaken gmail com

Originally committed as revision 18273 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-31 15:48:47 +00:00
Reimar Döffinger
f02bd7e49c Avoid the last two uses of bitmasks in interplayvideo
Originally committed as revision 18272 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-31 14:48:14 +00:00
Reimar Döffinger
3f300d7e25 100l, fix FATE test broken by r18264
Originally committed as revision 18271 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-31 14:44:46 +00:00
Reimar Döffinger
9aaacc246a Reindent
Originally committed as revision 18270 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-31 14:10:45 +00:00
Reimar Döffinger
1548839e51 Deduplicate code by moving it outside the if/else
Originally committed as revision 18269 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-31 14:06:22 +00:00
Reimar Döffinger
268a618ba6 Rearrange how the different cases are checked to reduce the number of
comparisons and allow further simplifications.

Originally committed as revision 18268 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-31 14:04:54 +00:00
Reimar Döffinger
0448b78b97 Avoid "reloading" code by using a 64 bit type for the flags and loading all at once.
Originally committed as revision 18266 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-31 13:58:40 +00:00
Reimar Döffinger
3766b9e0a8 Remove now pointless temporary pix variables.
Originally committed as revision 18265 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-31 13:33:55 +00:00
Reimar Döffinger
0312b77ccd Slightly simplify part of ipvideo_decode_block_opcode_0x8
Originally committed as revision 18264 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-31 13:30:42 +00:00
Reimar Döffinger
51e350284d Fix indentation
Originally committed as revision 18263 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-31 13:21:41 +00:00
Reimar Döffinger
9be06a0ed1 Avoid code duplication by using ?: and array indexing instead of if..else
Originally committed as revision 18262 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-31 13:21:10 +00:00
Reimar Döffinger
32eea24e9a Prettify some assignments
Originally committed as revision 18261 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-31 12:57:03 +00:00
Reimar Döffinger
e3114eb1bb Get rid of some pointless bitmask/shifter variables in interplayvideo.c
Originally committed as revision 18260 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-31 12:44:35 +00:00
Diego Biurrun
504ffed19f Mark non-exported functions in test and example programs as static.
Originally committed as revision 18259 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-31 09:32:59 +00:00
Gwenole Beauchesne
cafe71c62d Remove inclusion of va.h, not needed anymore after r18256.
Originally committed as revision 18258 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-31 09:18:00 +00:00
Dylan Yudaken
0de74546d7 Give better names to reference DCT functions.
patch by Dylan Yudaken, dyudaken gmail com

Originally committed as revision 18257 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-31 08:55:22 +00:00
Gwenole Beauchesne
a3d636aff9 Improve VA API buffers allocation logic. This also reduces struct vaapi_context
down to ~60 bytes vs. a few KBs before, and gets rid of explicit VA data types.

Originally committed as revision 18256 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-31 08:33:02 +00:00
Benoit Fouet
ccc745cdf4 Move declaration of prn before any assignment.
Originally committed as revision 18255 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-31 07:37:55 +00:00
Gwenole Beauchesne
11b9397941 Record MPEG-4 sprite trajectory points [up to num_sprite_warping_points][isY].
Originally committed as revision 18250 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-30 20:39:08 +00:00
Diego Biurrun
7f7b04af38 Add required va/va.h header, should fix 'make checkheaders'.
Originally committed as revision 18249 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-30 15:36:59 +00:00
Ramiro Polla
ab79fa44f1 mlpdec: Simplify check for substream_parity_present.
Originally committed as revision 18240 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-30 03:46:52 +00:00
Ramiro Polla
01aaf09274 mlpdec: Simplify no restart header seen error.
Originally committed as revision 18239 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-30 03:44:20 +00:00
Ramiro Polla
d7952be311 mlpdec: Simplify substream length mismatch error.
Originally committed as revision 18238 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-30 03:42:40 +00:00
Ramiro Polla
d544dcdf38 mlpdec: Prettify substream parity check.
Originally committed as revision 18237 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-30 03:37:19 +00:00
Ramiro Polla
7b18e13a7c mlpdec: Cleaner and better termination word check.
Originally committed as revision 18236 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-30 03:34:15 +00:00
Ramiro Polla
125cf771f6 mlpdec: More validation for read_channel_params()
Originally committed as revision 18235 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-30 03:20:01 +00:00
Ramiro Polla
06e34be88f mlpdec: whitespace cosmetics.
Originally committed as revision 18234 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-30 03:12:39 +00:00
Ramiro Polla
a44b9f9574 mlpdec: Simplify &foo[0] to foo and use index (which has just been initialized
to MAX_BLOCKSIZE) instead of MAX_BLOCKSIZE, so both copies to/from state data
look alike.

Originally committed as revision 18233 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-30 03:08:55 +00:00
Ramiro Polla
e71365f427 mlpdec: Split filter_state_buffer into [fi]irbuf and fp to [fi]ir.
Originally committed as revision 18232 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-30 03:05:38 +00:00
Ramiro Polla
0ae59bb01a mlpdec: Unroll copying filter state data and filtering for the two filters.
Originally committed as revision 18231 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-30 02:59:45 +00:00
Ramiro Polla
0c5670a0e5 mlpdec: Max filter orders for FIR and IIR are 8 and 4 respectively.
Originally committed as revision 18230 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-30 02:54:19 +00:00
Reimar Döffinger
aadf88119e Merge the 3 COPY_FROM_* macros with lots of duplicated code into a single
copy_from function.

Originally committed as revision 18225 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-29 18:15:02 +00:00
Reimar Döffinger
a1f6ffd44d Change CHECK_STREAM_PTR macro to correctly handle the (extremely unlikely)
overflow case.

Originally committed as revision 18224 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-29 17:50:46 +00:00
Reimar Döffinger
3017d8e9d7 Simplify check for leftover bytes after decoding for interplayvideo.
Originally committed as revision 18223 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-29 17:42:03 +00:00
Reimar Döffinger
49da3b7df2 Get rid of pointless "B" array in interplayvideo decoder.
Originally committed as revision 18222 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-29 17:35:22 +00:00
Reimar Döffinger
03b269ddc2 Replace many tiny loops in the interplayvideo decoder by memset, memcpy
or initializers.

Originally committed as revision 18221 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-29 17:23:40 +00:00
Reimar Döffinger
fff6077917 Make ipvideo_decode_block array constant, compile-time initialized instead
of initializing it each time the decoder is initialized.

Originally committed as revision 18219 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-29 17:15:42 +00:00
Diego Biurrun
43a0cb7ca2 Generalize example target rule in common.mak so that it sets a -example$(EXESUF)
suffix for all example files instead of doing this in individual Makefiles.

Originally committed as revision 18217 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-29 14:35:20 +00:00
Diego Biurrun
7c17abaf9d Rename apiexample.c --> api-example.c to be consistent with other example files.
Originally committed as revision 18216 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-29 14:28:56 +00:00
Ramiro Polla
fa937faba4 mlpdec: Remove few random dprintf()s.
Originally committed as revision 18212 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-28 00:53:52 +00:00
Ramiro Polla
b864098c16 mlpdec: Check for blocksize in proper range.
Originally committed as revision 18211 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-27 23:55:38 +00:00
Ramiro Polla
8e9ee714fc mlpdec: quant_step_size can be any value from 0 to 0xF.
Originally committed as revision 18210 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-27 23:48:08 +00:00
Ramiro Polla
6fae7cbd7f mlpdec: output_shift can be any value from -8 to 7.
Originally committed as revision 18209 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-27 23:47:18 +00:00
Ramiro Polla
af04802640 mlpdec: output_shift is signed
Originally committed as revision 18208 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-27 23:45:52 +00:00
Ramiro Polla
43ee5fe035 mlpdec: Split read_channel_params() into its own function.
Originally committed as revision 18207 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-27 23:42:22 +00:00
Ramiro Polla
f8e6293bde mlpdec: Split read_matrix_params() into its own function.
Originally committed as revision 18206 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-27 23:32:32 +00:00
Kostya Shishkov
6b78a77a35 Merge some cases for reading raw data with different bit depths in BMP
Originally committed as revision 18202 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-27 16:31:47 +00:00
Ramiro Polla
d4efacff64 Use intptr_t when casting pointers to int.
Originally committed as revision 18192 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-26 01:34:02 +00:00
Diego Biurrun
c04e5fa827 fft-test does not depend on fdctref.o.
Originally committed as revision 18190 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-25 19:00:15 +00:00
Diego Biurrun
7304c2c4ce Move adding the '-test$(EXESUF)' suffix to test programs into common.mak.
Originally committed as revision 18189 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-25 18:19:20 +00:00
Justin Ruggles
d7520f217a cosmetics: add an @return to documentation for decode_frame_header()
Originally committed as revision 18179 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-24 22:44:12 +00:00
Robert Swain
29e455081f Update apiexample.c to use the newer avcodec_decode_audio2() API. This also
fixes compilation.

Originally committed as revision 18176 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-24 02:26:10 +00:00
Justin Ruggles
cd98a03024 flacdec: split frame header decoding and validation into a separate
function

Originally committed as revision 18175 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-24 01:17:55 +00:00
Gwenole Beauchesne
3c32bac898 Add MPEG-2 bitstream decoding through VA API.
Originally committed as revision 18172 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-23 22:09:13 +00:00
Benoit Fouet
6d69a653d8 Move av_class to AVResampleContext instead of ReSampleContext.
Fixes issue 852.

Originally committed as revision 18170 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-23 10:58:05 +00:00
Alex Converse
04964ee8bb AAC: Ignore cc_domain for independent (time domain) coupling.
Originally committed as revision 18169 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-23 05:13:26 +00:00
Stefano Sabatini
620bba1653 Add pcxenc.o to the $OBJS list, it was erroneously removed from it in
r18164.
Fix compilation.

Originally committed as revision 18168 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-22 23:42:06 +00:00
Justin Ruggles
e8b0395236 flacdec: cosmetics: white space
Originally committed as revision 18167 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-22 23:22:44 +00:00
Justin Ruggles
fbc4d9c964 flacdec: cosmetics: separate the pure frame header parsing code from
other frame header decoding code

Originally committed as revision 18166 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-22 23:19:49 +00:00
Diego Biurrun
661ce28996 Rename 'tests' target to 'testprogs'. It is too easily confused with the
'test' target and a directory named tests exists.

Originally committed as revision 18165 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-22 23:13:21 +00:00
Diego Biurrun
fd8e28b73e Split AVCodec declarations for PAM/PBM/PGM/PGMYUV/PPM decoders and encoders
so that they can be enabled and disabled individually.

Originally committed as revision 18164 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-22 22:50:22 +00:00
Stefano Sabatini
6e08ca9c51 Make the pixel formats which were defined as macros:
PIX_FMT_ARGB
PIX_FMT_RGBA
PIX_FMT_ABGR
PIX_FMT_BGRA

defined as enum PixelFormat values, and viceversa make:
PIX_FMT_RGB32
PIX_FMT_RGB32_1
PIX_FMT_BGR32
PIX_FMT_BGR32_1

defined as macros, also resort accordingly the enum PixelFormat
list.
Also make avcodec_get_pix_fmt() recognize the "rgb32" and "bgr32"
aliases, in order to make ffmpeg pass regressions test.

This change breaks ABI backward compatibility.

Originally committed as revision 18163 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-22 22:50:19 +00:00
Justin Ruggles
e7e6b06802 flacdec: allow sample rate to change mid-stream, but log a warning
message when it does

Originally committed as revision 18162 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-22 22:38:06 +00:00
Diego Biurrun
6708cfc4d3 Add rule for building API example programs.
Originally committed as revision 18161 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-22 22:33:41 +00:00
Stefano Sabatini
326e9eaa20 Factorize: use the X_NE() macro in avcodec_get_pix_fmt().
Originally committed as revision 18160 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-22 22:13:10 +00:00
Justin Ruggles
1448907465 flacdec: cosmetics: indentation
Originally committed as revision 18159 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-22 22:12:03 +00:00
Stefano Sabatini
8199ea3b8c Implement X_NE() macro.
Originally committed as revision 18158 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-22 22:10:36 +00:00
Justin Ruggles
e2a38af96e flacdec: change frame bps validation to return an error value if bps
changes since this is not currently supported by the decoder.

Originally committed as revision 18157 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-22 22:10:33 +00:00
Justin Ruggles
f91eaf5deb flacdec: cosmetics: add some braces to if/else statements
Originally committed as revision 18156 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-22 21:53:28 +00:00
Justin Ruggles
b6fa746e39 flacdec: skip frame when allocated data size is too small
Originally committed as revision 18155 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-22 21:31:23 +00:00
Justin Ruggles
492cc392fa 10l: don't check against current layout until after validating ch_mode.
should have been in last commit.

Originally committed as revision 18154 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-22 21:13:10 +00:00
Justin Ruggles
7660dc6f4f flacdec: give a more accurate error message when validating channel
layout. differentiates between invalid values and unsupported values.

Originally committed as revision 18153 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-22 21:07:43 +00:00
Stefano Sabatini
d2863e72ab Export to pixdesc.h the av_pix_fmt_descriptors array.
Originally committed as revision 18152 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-22 21:01:08 +00:00
Justin Ruggles
02b26d2d5c flacdec: move data size check to flac_decode_frame()
Originally committed as revision 18151 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-22 20:19:20 +00:00
Justin Ruggles
4285c2923c flacdec: comments and white space.
move skipping of frame header to decode_frame()

Originally committed as revision 18150 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-22 19:12:02 +00:00
Justin Ruggles
d1d9945f1a cosmetics: vertical alignment
Originally committed as revision 18149 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-22 18:59:45 +00:00
Justin Ruggles
5c3e0340d9 flacdec: remove unneeded local variable
Originally committed as revision 18148 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-22 18:59:00 +00:00
Justin Ruggles
3b4d96fa68 flacdec: cosmetics: rename 3 variables
Originally committed as revision 18147 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-22 18:56:07 +00:00
Justin Ruggles
7e00bd8456 flacdec: use a local variable for GetBitContext in decode_frame()
Originally committed as revision 18146 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-22 18:52:15 +00:00
Kostya Shishkov
c21fbefb9d Add AURA 1 and 2 codec IDs and register their FOURCCs
Originally committed as revision 18141 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-22 07:40:22 +00:00
Baptiste Coudurier
44dff0058e init ext sample rate to 0 if not present
Originally committed as revision 18139 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-22 02:53:01 +00:00
Gwenole Beauchesne
b38d7298bd Add common VA API data structures and helpers.
Originally committed as revision 18136 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-22 01:32:27 +00:00
Gwenole Beauchesne
bb691a6da4 Add support for HW accelerated VC-1 decoding through the new
AVHWAccel infrastructure.

Originally committed as revision 18135 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-21 23:44:21 +00:00
Stefano Sabatini
f82674e584 Change the RGB5X5/BGR5X5 pixel format defines so that we have little
endian and big endian variants instead of native-endian ones.

This patch breaks API/ABI backward-compatibility.

Originally committed as revision 18133 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-21 23:08:20 +00:00
Stefano Sabatini
d89f692f0e Extend the behavior of avcodec_get_pix_fmt(), if it cannot find a
pixel format for the provided name, make it look for the native endian
variant of the name.

Originally committed as revision 18130 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-21 22:43:46 +00:00
Stefano Sabatini
a61ec8e7ae Globally prefer enum PixelFormat over int when it makes sense.
Originally committed as revision 18129 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-21 22:24:44 +00:00
Diego Biurrun
573e0118e2 Fix reference to av_random_init where av_lfg_init was meant.
Originally committed as revision 18113 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-21 16:14:55 +00:00
Daniel Verkamp
e1dc16ae56 Make Smacker audio decoder output audio in original bit depth
Patch by Daniel Verkamp
($firstname) at (three-letter file extension for drivers in Win 3.1) dot (nu)

Thread: [PATCH] Smacker: Output audio in original bit depth

Originally committed as revision 18111 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-21 15:52:14 +00:00
Diego Biurrun
2bbd85719c Remove deprecated functions and structures on next version bump.
Originally committed as revision 18110 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-21 13:51:29 +00:00
Reimar Döffinger
899a8fa1cb Fix avpicture_get_size for non-paletted formats with a helper palette
to not include the size of that palette.
Also clarify its documentation.

Originally committed as revision 18106 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-21 10:25:20 +00:00
Justin Ruggles
0fb2182d46 add a function to calculate a more accurate estimate for maximum FLAC
frame size and use the function in the FLAC decoder and FLAC encoder

Originally committed as revision 18092 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-21 01:54:31 +00:00
Justin Ruggles
f5187c7f04 flacdec: account for frame and subframe header overhead when calculating
estimate for maximum frame size

Originally committed as revision 18091 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-21 01:27:28 +00:00
Justin Ruggles
f121622114 revert accidental unrelated change in last commit
Originally committed as revision 18090 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-21 01:20:28 +00:00
Justin Ruggles
d4df4e5088 share sample rate and blocksize tables between the FLAC encoder and FLAC
decoder

Originally committed as revision 18089 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-21 01:16:38 +00:00
Justin Ruggles
b9b4fc5e07 flacenc: remove unneeded variable, 'min_encoded_framesize' and use
'min_framesize' instead

Originally committed as revision 18087 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-21 00:50:19 +00:00
Justin Ruggles
d9e7fa8074 flacdec: remove unneeded variable, 'assignment'
Originally committed as revision 18085 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-21 00:48:07 +00:00
Justin Ruggles
2a34672500 flacdec: cosmetics: rename 'decorrelation' to 'ch_mode'
Originally committed as revision 18084 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-21 00:47:04 +00:00
Justin Ruggles
ad52941faa flacenc: remove unneeded context variable, 'ch_code'
Originally committed as revision 18083 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-21 00:45:44 +00:00
Justin Ruggles
3159780b18 share channel mode constants between the FLAC decoder and FLAC encoder
Originally committed as revision 18082 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-21 00:44:42 +00:00
Stefano Sabatini
432603e376 Remove declaration of the removed function img_convert().
Originally committed as revision 18080 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-20 22:29:31 +00:00
Benjamin Larsson
39b60944a8 Get rid of av_random in cook.c
Originally committed as revision 18079 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-20 21:32:30 +00:00
Benjamin Larsson
3b0b84797e Get rid of av_random in nellymoserdec.c
Originally committed as revision 18078 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-20 21:15:02 +00:00
Daniel Verkamp
effcedf738 PCX encoder that handles 1-, 8-, and 24-bpp pixfmts.
Patch by Daniel Verkamp, daniel drv nu

Originally committed as revision 18077 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-20 17:23:45 +00:00
Ramiro Polla
9731e7f13e mlp, truehd: support non 1:1 channel mapping.
Originally committed as revision 18074 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-20 13:07:09 +00:00
Ramiro Polla
cbf3cf19f3 Support "next parameter flags present" flag.
Originally committed as revision 18073 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-20 13:04:14 +00:00
Ramiro Polla
932cee5d67 truehd: support up to 3 substreams.
Originally committed as revision 18072 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-20 13:02:15 +00:00
Gwenole Beauchesne
952e2083bc Rename hwaccel_data_private to hwaccel_picture_private.
Originally committed as revision 18071 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-20 12:04:58 +00:00
Diego Biurrun
294eaa2643 Replace random() usage in test programs by av_lfg_*().
Originally committed as revision 18070 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-20 11:48:27 +00:00
Diego Biurrun
c7594e0764 Only build motion-test if MMX is enabled.
Originally committed as revision 18069 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-20 11:43:58 +00:00
Diego Biurrun
578f90a8d5 Align test program output columns.
Originally committed as revision 18068 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-20 11:40:05 +00:00
Diego Biurrun
fa7aec5ceb Remove unused libavutil/random.h #include.
Originally committed as revision 18067 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-20 10:48:01 +00:00
Diego Biurrun
e814a59fee Use correct header for struct AVLFG.
Originally committed as revision 18066 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-20 10:47:02 +00:00
Matthieu Castet
ecf05a5971 Remove useless casting in asm "m" operand.
Patch by Matthieu Castet, castet D matthieu A free D fr

Originally committed as revision 18054 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-19 23:29:11 +00:00
Reimar Döffinger
45bae968a9 Fix indentation after r18047.
Originally committed as revision 18048 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-19 21:36:59 +00:00
Reimar Döffinger
c9d6e84778 Change linesize alignment method to ensure that linesize[0] == 2*linesize[1]
for YUV420P and YUV422P always.
Fixes MPEG-2 4:2:2 encoding on PPC and ARM, and should fix mxf_d10 regression.

Originally committed as revision 18047 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-19 21:34:55 +00:00
Reimar Döffinger
b435725b4c Do not set linesize for palette data, it does not make sense and creates
problems with following patch to fix linesize alignment.

Originally committed as revision 18046 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-19 21:31:10 +00:00
Ramiro Polla
9ba4821d93 Split TrueHD decoder from MLP
Originally committed as revision 18045 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-19 21:23:39 +00:00
Diego Biurrun
2029e934d2 Nicely align output columns.
Originally committed as revision 18042 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-19 09:53:50 +00:00
Justin Ruggles
07d16e2ecf share some constants between the FLAC encoder and FLAC decoder
Originally committed as revision 18041 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-19 03:04:21 +00:00
Stefano Sabatini
1e896640c4 Implement a name field for AVPixFmtDescriptor.
Originally committed as revision 18035 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-18 20:10:09 +00:00
Alex Converse
2b823a5299 Fix typo in AOT_ER_AAC_ELD
Originally committed as revision 18034 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-18 14:14:56 +00:00
Alex Converse
d3487e472e Update the MPEG-4 AOT table.
Originally committed as revision 18033 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-18 14:11:05 +00:00
Alex Converse
f650e4d34a Move MPEG-4 AOT enum to mpeg4audio.h.
Originally committed as revision 18031 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-18 13:52:56 +00:00
Ramiro Polla
e05c8d0682 use intptr_t to cast pointers to int in codecs maintained by benjamin larsson
Originally committed as revision 18027 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-17 20:47:31 +00:00
Gwenole Beauchesne
1aea701830 Amend AVCodecContext with hwaccel_context (HW accelerator context).
This is needed for some HW accelerators that require a context that
FFmpeg can't instantiate itself. e.g. display-dependent data from
VA API and VDPAU.

Originally committed as revision 18025 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-17 12:43:09 +00:00
Justin Ruggles
137707e53a Add documentation about missing E-AC-3 features.
Originally committed as revision 18021 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-17 01:43:01 +00:00
John Cox
9e85f9c526 Fix SEIs when splitting H264 input.
Patch by John Cox, jc A kynesim D co D uk

Originally committed as revision 18020 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-16 22:38:27 +00:00
Alex Converse
4a39ccb403 AAC: IEEE-754 type punning for 16-bit floating point rounding.
Originally committed as revision 18015 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-16 16:11:27 +00:00
Daniel Verkamp
8127c4208c Fix an assert().
Patch by Daniel Verkamp daniel drv nu

Originally committed as revision 18006 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-16 12:47:43 +00:00
David Conrad
170e6b14f7 Remove long unused ALTIVEC_USE_REFERENCE_C_CODE ifdef; all other references
to it were removed in r6606

Originally committed as revision 17997 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-16 03:56:42 +00:00
Benjamin Larsson
b217024706 Add cook channel count function, part of multichannel cook
Originally committed as revision 17992 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-15 19:36:45 +00:00
Benjamin Larsson
0eec287596 Add max allowed subpackets in multichannel cook
Originally committed as revision 17991 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-15 19:34:52 +00:00
Benjamin Larsson
d4b3d0408f save avctx in cook decoder context and use it for av_log
Originally committed as revision 17988 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-15 14:11:11 +00:00
Benjamin Larsson
7c119ced99 memset when category is >=7, part of cook multichannel
Originally committed as revision 17987 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-15 14:04:25 +00:00
Reimar Döffinger
16473c1376 1 km^3 cola, timecode_frame_start is a 64 bit integer, this resulted in
complete nonsense if timecode_frame_start was used on big-endian systems.

Originally committed as revision 17986 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-15 13:38:36 +00:00
Diego Biurrun
60a847b5db cosmetics: Remove file name from file header.
Originally committed as revision 17984 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-15 12:46:07 +00:00
Stefano Sabatini
7867978374 Expand "lsb" to "least significant bits".
Originally committed as revision 17978 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-15 10:37:25 +00:00
Stefano Sabatini
e5681ba0f2 Rename the (yet not defined) macros:
PIX_FMT_RGB565_BE -> PIX_FMT_RGB565BE
PIX_FMT_RGB565_LE -> PIX_FMT_RGB565LE
for consistency with the other pixfmts macros.

Originally committed as revision 17977 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-15 10:33:51 +00:00
Kostya Shishkov
0304109df6 Correct MV prediction for B-frame blocks in RV4 decoder
Originally committed as revision 17974 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-15 08:21:42 +00:00
Diego Biurrun
6d79971e69 prettyprinting cosmetics
Originally committed as revision 17962 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-14 19:12:20 +00:00
Diego Biurrun
f5b2476fd3 Add av_uninit to vsrcBuc variable to work around some
'may be used uninitialized' warnings.

Originally committed as revision 17961 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-14 19:11:56 +00:00
Diego Biurrun
b91813b6da Improve description of next_free_data_block_num struct member.
Originally committed as revision 17960 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-14 17:20:28 +00:00
Daniel Verkamp
5cf59463a2 Add 1bpp, 8bpp, 15bpp, and 16bpp support to BMP encoder.
Patch by Daniel Verkamp, daniel drv nu

Originally committed as revision 17954 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-13 23:36:38 +00:00
Michael Niedermayer
7ed673af71 Print timing_info on -debug 1.
Originally committed as revision 17949 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-13 14:10:49 +00:00
Kostya Shishkov
923ed9748c Fix direct and skip MB motion compensation in RV4:
two conditions were incomplete and zeroing motion
vectors was performed only on half of them.

Originally committed as revision 17947 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-13 13:48:44 +00:00
Gwenole Beauchesne
cd823ff950 Use av_mallocz() to initialize hwaccel_data_private.
Originally committed as revision 17942 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-11 08:25:00 +00:00
Vitor Sessak
e40ee25c49 Fix bug when elbg->utility_inc[elbg->numCB-1] == 1
Originally committed as revision 17926 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-10 17:38:16 +00:00
Gwenole Beauchesne
eb2c24232f Add REGISTER_HWACCEL() for hardware accelerators.
Originally committed as revision 17925 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-10 14:35:55 +00:00
Måns Rullgård
f49568a467 Fix unaligned access in ff_copy_bits()
Originally committed as revision 17921 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-09 23:27:38 +00:00
Reynaldo H. Verdejo Pinochet
d2af569710 Cosmetics from Kenan Gillet's 'extract and share weighted_vector_sumf'
patchset. Just a reindent.

Originally committed as revision 17917 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-09 22:00:35 +00:00
Reynaldo H. Verdejo Pinochet
95e8325771 Functional part Kenan Gillet's 'extract and share weighted_vector_sumf'
patchset. Idea is to share this common code between the AMR and QCELP
decoders.

Originally committed as revision 17916 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-09 21:55:24 +00:00
Gwenole Beauchesne
68e5d5235e Add private HW accel data infrastructure.
Originally committed as revision 17899 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-09 08:04:41 +00:00
Vitor Sessak
9aa2ab4276 Use FLG pseudo-random number generator in RoQ and ELBG
Originally committed as revision 17881 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-08 17:43:12 +00:00
Kostya Shishkov
74e2a0784e Make Musepack decoders use LFG pseudorandom generator
Originally committed as revision 17880 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-08 16:37:57 +00:00
Vitor Sessak
616e899c43 VQF demuxer
Originally committed as revision 17866 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-07 22:42:09 +00:00
Alex Converse
7d87e2ceac Re-indent after last commit.
Originally committed as revision 17861 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-06 22:37:21 +00:00
Alex Converse
51741a82c3 If we get an error from ff_aac_parse_header() we should not trust the header info that it provides.
Originally committed as revision 17860 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-06 22:36:24 +00:00
Alex Converse
bb5c0988ea Fix the channel allocation bug/assumption (issue 800).
Approved by Rob on IRC.

Originally committed as revision 17856 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-06 19:47:01 +00:00
Stephen Warren
49caac2413 Fix H.264 bitstream field log2_max_pic_order_cnt_lsb_minus4
if sps.poc_type == 0.

Patch by Stephen Warren, swarren nvidia com

Originally committed as revision 17854 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-06 08:03:26 +00:00
Justin Ruggles
f48b9304cd flacdec: Parse the metadata header in the raw FLAC demuxer.
Originally committed as revision 17852 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-06 01:31:10 +00:00
Justin Ruggles
5b63d33d7d flacdec: Add a shared function for parsing a FLAC metadata block header.
Originally committed as revision 17851 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-06 01:25:11 +00:00
Justin Ruggles
5a92cc663c pnm: Add missing 'else'. Fixes decoding for 16-bit pgm.
Originally committed as revision 17848 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-06 00:54:49 +00:00
Diego Biurrun
1b0f4920b8 Mark variables "j" and "structure" in execute_ref_pic_marking() as av_uninit
to work around false positive 'may be used uninitialized' warnings.

Originally committed as revision 17837 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-05 23:38:52 +00:00
Alex Converse
cfd937b081 AAC: hoist dependent gain lookup out of the loop
Originally committed as revision 17835 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-05 23:10:22 +00:00
Diego Biurrun
27127202d6 Remove duplicated MUL16 macro definition, fixes the warning:
libavcodec/ac3enc.c:119:1: warning: "MUL16" redefined

Originally committed as revision 17832 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-05 22:17:12 +00:00
Måns Rullgård
35690321a7 ARM: disable inline asm for armcc
Originally committed as revision 17831 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-05 21:20:13 +00:00
Ivan Schreter
b283ba26ce Add handling of frame position in the parser.
Originally committed as revision 17823 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-05 07:35:06 +00:00
Justin Ruggles
8d1e885fc2 flacdec: cosmetics: Add a comment with the data of the smallest FLAC
frame for future reference.

Originally committed as revision 17822 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-05 04:40:42 +00:00
Justin Ruggles
629fb5c46a flacdec: There is an even smaller FLAC frame size possibility.
Originally committed as revision 17821 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-05 02:36:17 +00:00
Justin Ruggles
5756bc7b02 flacdec: 10l to me. I miscalculated the smallest FLAC frame. It is 16
bytes, not 24.

Originally committed as revision 17820 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-05 02:21:35 +00:00
Justin Ruggles
bf1d7e285c flacdec: cosmetics: move 2 statements to immediately after frame
decoding.

Originally committed as revision 17819 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-05 01:23:53 +00:00
Justin Ruggles
fd6fd470ce flacdec: Simplify frame sync by not using the bitstream reader.
Originally committed as revision 17818 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-05 01:15:38 +00:00
Justin Ruggles
a8ec12bc2e flacdec: Split the metadata_parse() function into 2 separate functions,
parse_streaminfo() and get_metadata_size().

Originally committed as revision 17817 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-05 00:56:09 +00:00
Justin Ruggles
5ef4fa87b3 flacdec: Add a check for small buffer size. This ensures reading as
much of the frame header as possible without excluding the smallest
possible FLAC frame.  It also fixes a false positive warning message
that was being emitted at the end of decoding.

Originally committed as revision 17816 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-04 23:55:10 +00:00
Justin Ruggles
c51997297a flacdec: cosmetics: Use a more descriptive variable name for the number
of bytes read, instead of reusing 'i'.

Originally committed as revision 17815 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-04 23:24:44 +00:00
Justin Ruggles
549bccdbe4 flacdec: Handle 32 bps data when checking allocated size.
Originally committed as revision 17814 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-04 23:16:30 +00:00
Justin Ruggles
a3d2379bdd flacdec: Check curr_bps after wasted bits are subtracted.
Originally committed as revision 17813 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-04 23:10:40 +00:00
Stefano Sabatini
d3f766124a Fix typo: "i" -> "in".
Originally committed as revision 17812 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-04 21:50:10 +00:00
Ivan Schreter
70e01da3bf Add support for ct_type to correctly detect interlaced flag
Originally committed as revision 17811 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-04 19:37:19 +00:00
Reimar Döffinger
6d08f6c911 100l, interplayvideo uses 8x8 blocks, so call the 8x8 put_pixels_tab function
instead of the 16x16 one. Seems to fix decoding on PPC.

Originally committed as revision 17808 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-04 18:18:49 +00:00
Reimar Döffinger
5133816627 Set AVFrame.reference correctly for nuv decoder.
Originally committed as revision 17807 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-04 17:12:58 +00:00
Vitor Sessak
a66430c0d0 Add more correct bound checking in filter_mb().
Should fix decoding of CVMAPAQP3_Sony_E.jsv in MinGW

Originally committed as revision 17806 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-04 16:56:55 +00:00
Gwenole Beauchesne
34e46c44da Add frame buffer allocators. aka simplify calls to
AVCodecContext.{get,release}_buffer().

Originally committed as revision 17804 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-04 08:47:29 +00:00
Reynaldo H. Verdejo Pinochet
87574416f7 Part 2 of 2 of Kenan Gillet's 'make ff_qcelp_lspf2lpc
more general' changeset. This one relocates the QCELP
especific code to the qcelpdec.* files.

Originally committed as revision 17800 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-04 01:33:56 +00:00
Reynaldo H. Verdejo Pinochet
77bd18e117 Part 1 of 2 of Kenan Gillet's 'make ff_qcelp_lspf2lpc
more general' changeset. This one splits ff_qcelp_lspf2lpc
into the QCELP-especific ff_qcelp_lspf2lpc + the more general
ff_qcelp_lspf2lpc.

Originally committed as revision 17799 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-04 01:28:07 +00:00
Justin Ruggles
e1374c06d6 flacdec: When there is not enough data to read the next header block,
reset the bitstream reader instead of skipping backwards.

Originally committed as revision 17798 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-04 01:08:26 +00:00
Justin Ruggles
6a85fb34c9 cosmetics: indentation after last commit
Originally committed as revision 17796 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-04 00:53:04 +00:00
Justin Ruggles
55a727383b flacdec: Check for an inline header before calling metadata_parse().
Originally committed as revision 17795 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-04 00:52:18 +00:00
Justin Ruggles
239b961fbf flacdec: Allocate buffers right after STREAMINFO is parsed.
Originally committed as revision 17794 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-04 00:21:46 +00:00
Stefano Sabatini
9d9de444e3 Fix syntax for the libfaad_decoder definition.
Fix compilation (when libfaad is enabled).

Originally committed as revision 17792 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-03 23:52:31 +00:00
Justin Ruggles
184bc53db4 cosmetics: indentation after last commit
Originally committed as revision 17791 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-03 23:50:21 +00:00
Justin Ruggles
7d0303587d flacdec: Avoid parsing the STREAMINFO multiple times.
Originally committed as revision 17790 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-03 23:49:36 +00:00
Michael Niedermayer
6d4f53cbac Remove old scaler.
Originally committed as revision 17786 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-03 22:51:30 +00:00
Diego Biurrun
59701aeb46 Do not use a macro to generate a single AVCodec declaration.
Originally committed as revision 17773 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-03 15:48:52 +00:00
Panagiotis Issaris
a0f8005079 When a H.264 stream references a PPS or SPS id which doesn't exist, instead of
just saying that a non-existing id is referenced, show the value of the id.

Originally committed as revision 17771 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-03 14:32:24 +00:00
Gwenole Beauchesne
0d8ee24c7b Set PixFmtInfo::{x, y}_chroma_shift for VDPAU and VAAPI formats.
Originally committed as revision 17766 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-03 13:43:24 +00:00
Benoit Fouet
4f46099b90 Use sign_extend().
On behalf of Jai.

Originally committed as revision 17759 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-03 13:11:10 +00:00
Justin Ruggles
2e78513cee flacdec: Warn about invalid max blocksize and limit the minimum value.
Originally committed as revision 17751 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-03 05:53:38 +00:00
Alex Converse
09a64ee614 H.264: Simplify decode_residual()
Originally committed as revision 17750 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-03 05:26:39 +00:00
Justin Ruggles
0c89ca72a5 cosmetics: remove a pointless comment
Originally committed as revision 17749 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-03 05:25:58 +00:00
Justin Ruggles
95db6659d8 flacdec: Remove unused variable, min_blocksize.
Originally committed as revision 17748 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-03 05:25:23 +00:00
Justin Ruggles
dde318d5d9 flacdec: Return error when blocksize code of 0 is found. It is a
reserved value per the FLAC format documentation.

Originally committed as revision 17747 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-03 05:22:44 +00:00
Kostya Shishkov
c978997a88 Enable PB-frames decoding for H.263
Originally committed as revision 17746 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-03 05:18:39 +00:00
Kostya Shishkov
685502cf3d Add PB-frame decoding support for H.263/i263 (and enable it for i263)
Originally committed as revision 17745 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-03 05:17:22 +00:00
Justin Ruggles
6053da0182 alacdec: Simplify reading of uncompressed samples by using
get_sbits_long().

Originally committed as revision 17744 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-03 04:57:02 +00:00
Justin Ruggles
5b37e2fc9a flacdec: Avoid trying to read 33 bits. This occurs when the source
is 32 bits-per-sample and channel decorrelation is used.  Such files
are valid, but not supported currently.

Originally committed as revision 17743 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-03 04:45:45 +00:00
Justin Ruggles
505cc62f75 flacdec: ALT_BITSTREAM_READER is no longer required.
Originally committed as revision 17742 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-03 02:53:11 +00:00
Justin Ruggles
9de6e090a7 flacdec: use get_sbits_long() where needed.
Originally committed as revision 17741 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-03 02:19:01 +00:00
Justin Ruggles
017c0811a1 Add a get_sbits_long() function.
Originally committed as revision 17740 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-03 02:00:47 +00:00
Måns Rullgård
8858990f07 ALAC: use sign_extend() from mathops.h
Originally committed as revision 17739 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-03 01:53:54 +00:00
Måns Rullgård
101dfa7d0a Add sign_extend() function to mathops.h
Originally committed as revision 17738 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-03 00:03:55 +00:00
Reimar Döffinger
edd532db64 Simplify show_bits_long and copy the GetBitsContext around only once instead of twice.
Originally committed as revision 17736 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-02 19:42:31 +00:00
Justin Ruggles
ee4d0322e8 flacdec: Use get/skip_bits_long() for more than 17-bits and
get/skip_bits() for 17-bits or less.

Originally committed as revision 17735 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-02 17:32:53 +00:00
Kostya Shishkov
b89e77cff7 Factor out block decoding in ff_h263_decode_mb()
Originally committed as revision 17734 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-02 17:18:49 +00:00
Michael Niedermayer
7115cbda30 Consider all packets in the parser, not just ones with timestamps,
this should greatly simplify handling of packet pos.

Originally committed as revision 17733 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-02 15:13:58 +00:00
Michael Niedermayer
2cc304215d Favor container packets that end after the first byte of the access
unit in fetch_timestamp(). This should make no difference for valid
streams but may help invalid ones, also its needed for future changes.

Originally committed as revision 17732 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-02 15:12:26 +00:00
Michael Niedermayer
a4c7a5ea27 Call ff_fetch_timestamp() for mpeg1/2 when a picture start code is found instead
of calling it at the end of a frame with a large negative offset.
This significantly reduces the maximal distance in container packets between
the point where the first byte of the "access unit" was stored and where
we call ff_fetch_timestamp() thus reducing the constraints on our parser.
Also change the parser from next_frame_offset to cur, this is needed
because now the reference is from container packet start instead of
frame start. (i previously misinterpreted this as bug)

Originally committed as revision 17731 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-02 14:53:18 +00:00
Benoit Fouet
d69da18cb0 Merge three conditions in a single 'if' instead of two.
Originally committed as revision 17728 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-02 09:22:17 +00:00
Diego Biurrun
12dd57fd29 cosmetics: Reformat long_names so that "DPCM" comes first.
Originally committed as revision 17721 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-02 06:01:32 +00:00
Diego Biurrun
fd75cedd15 cosmetics: Reformat long_names so that "ADPCM" comes first.
Originally committed as revision 17720 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-02 05:55:03 +00:00
Diego Biurrun
655463b9eb cosmetics: Reformat long_names so that "PCM" comes first.
Originally committed as revision 17719 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-02 05:45:44 +00:00
Diego Biurrun
7eb2d654a2 small spelling/grammar fixes
Originally committed as revision 17718 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-02 05:41:55 +00:00
Diego Biurrun
326b554ccf xvmc works with MPEG-2 as well as MPEG-1, note this in the codec long_name.
Originally committed as revision 17717 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-02 05:20:00 +00:00
Diego Biurrun
0ffbc258aa Change a bunch of codec long_names to be more consistent and descriptive.
Originally committed as revision 17716 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-02 05:18:33 +00:00
Justin Ruggles
68dddf53ff Add some missing codecs and update names to match the codec long_name
or vice-versa.

Originally committed as revision 17706 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-02 02:25:31 +00:00
Måns Rullgård
09096c9fad RA144: work around gcc bug/oddity on ARM
This should not make any difference, yet some gcc versions on ARM
produce incorrect output without this fix.

Approved by Vitor.

Originally committed as revision 17698 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-01 23:41:39 +00:00
Måns Rullgård
db794291a2 SVQ3: Fix decoding with A32_BITSTREAM_READER
svq3_decode_slice_header() modifies the buffer used by the bitstream
reader.  Some of the bitstream readers cache a few bytes of data, which
must be flushed after such a modification.  Calling skip_bits_long(gb, 0)
achieves this.

Originally committed as revision 17680 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-01 12:11:07 +00:00
Måns Rullgård
4cd19f6e78 ARM: fix missing MUL16() return type
Originally committed as revision 17679 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-01 12:11:02 +00:00
Vitor Sessak
8d2544bd1b Reindent after last commit
Originally committed as revision 17678 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-01 11:16:57 +00:00
Vitor Sessak
9e27e0d4f8 Do not read uninitialized buffer, no matter if it will be multiplied by
zero later. This should fix some valgrind warnings and hopefully FATE
ra144 test on ARM.

Originally committed as revision 17677 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-01 11:14:21 +00:00
Reimar Döffinger
d819b41ba1 Remove unused variable in mpeg_mc_decode_init
Originally committed as revision 17676 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-01 09:14:20 +00:00
Michael Niedermayer
47cd974ae5 Do not set low_delay if has_b_frames has been set before init()
this will be needed once the parser can figure out has_b_frames
in av_find_stream_info().

Originally committed as revision 17673 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-01 03:13:04 +00:00
Alex Converse
9ef88afac3 AAC: Make the CPE function more consistent with the functions for other channel elements.
Originally committed as revision 17672 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-03-01 00:23:05 +00:00
Michael Niedermayer
efd8c1f64d Adjust time_base exactly when changing ticks_per_frame to 2 this is safer
and for some raw h264 we managed to change the timebase twice before.

Originally committed as revision 17669 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-28 20:58:07 +00:00
Måns Rullgård
fe7f149ed8 ARM: fix corner-case overflow in H.264 weighted prediction
Originally committed as revision 17657 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-28 13:48:54 +00:00
David S. Miller
da2911d5e8 sub_mb_type[] needs to be 8-byte aligned because it is referenced
as a uint64_t in get_dct8x8_allowed().
Patch by David S. Miller <davem at davemloft dot net>

Originally committed as revision 17655 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-28 08:38:33 +00:00
Cédric Schieli
5f59207d94 Fix avpicture_layout to not chroma shift the alpha plane when outputting YUVA420P
Originally committed as revision 17654 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-28 07:31:36 +00:00
Ivan Schreter
03831f462e Correctly reset SEI variables.
Patch by Ivan Schreter, schreter gmx net

Originally committed as revision 17651 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-27 21:28:41 +00:00
Gwenole Beauchesne
7f8025349a Make ff_print_debug_info() a no-op when using HW acceleration.
Patch by Gwenolé Beauchesne.

Originally committed as revision 17646 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-27 15:51:15 +00:00
Gwenole Beauchesne
a4f3fdfa83 Use ff_hwaccel_pixfmt_list_420[] in H.263 decoder.
Patch by Gwenolé Beauchesne.

Originally committed as revision 17645 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-27 15:49:32 +00:00
Gwenole Beauchesne
6026a0968a Add hardware acceleration hooks to H.264.
Patch by Gwenolé Beauchesne.

Originally committed as revision 17644 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-27 15:45:55 +00:00
Michael Niedermayer
19df37a8a6 Fix SVQ3 regression since ticks_per_frame=2.
Originally committed as revision 17640 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-27 14:01:32 +00:00
Gwenole Beauchesne
1468d503a9 Add HW acceleration hooks for MPEG-4 / H.263 decoding.
Patch by Gwenole Beauchesne.

Originally committed as revision 17637 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-27 08:27:50 +00:00
Gwenole Beauchesne
6aca2c6785 Remove superfluous call to mpeg_decode_slice() for hwaccel, this
function already contains the needed code.
Patch by Gwenole Beauchesne.

Originally committed as revision 17636 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-27 08:20:45 +00:00
Gwenole Beauchesne
11647a9f8c Return early if a HW accelerator is used.
Patch by Gwenole Beauchesne.

Originally committed as revision 17635 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-27 08:16:22 +00:00
Gwenole Beauchesne
f06ce1ce89 Add VA API pixel formats.
Patch by Gwenole Beauchesne.

Originally committed as revision 17634 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-27 08:12:41 +00:00
Gwenole Beauchesne
044f0296a4 Add ff_hwaccel_pixfmt_list_420[] definition.
Patch by Gwenole Beauchesne.

Originally committed as revision 17633 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-27 08:09:23 +00:00
Michael Niedermayer
3797c74ba5 Add ticks_per_frame, this should hopefully fix the regressions caused
by the time_base change.

Originally committed as revision 17630 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-26 23:47:32 +00:00
Michael Niedermayer
f56995b4a6 Half user provided time_base once during the first frame when there is no
timebase stored in the h264 stream.
This should fix fate. (ffmpeg.c used pict_repeat with its default 1/25 timebase)

Originally committed as revision 17622 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-26 21:09:24 +00:00
Carl Eugen Hoyos
26aedb4ab3 Cosmetics: Fix indentation after last commit.
Originally committed as revision 17621 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-26 20:36:47 +00:00
Ivan Schreter
2c0c5e1249 Initialize H264 parser context correctly if the optional SEI messages
are not present.

Patch by Ivan Schreter, schreter gmx net

Originally committed as revision 17620 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-26 20:36:02 +00:00
Justin Ruggles
26adc8d086 cosmetics: line wrap and indentation after last commit.
Originally committed as revision 17603 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-26 02:30:29 +00:00
Justin Ruggles
59c6178a54 Use a shared function to validate FLAC extradata.
Originally committed as revision 17602 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-26 02:29:24 +00:00
Alex Converse
e8d5c07bcc Re-indent after last commit.
Originally committed as revision 17600 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-26 01:54:16 +00:00
Alex Converse
21e8c46cde Refactor AAC unsigned band type decoding for a modest speedup.
Originally committed as revision 17599 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-26 01:51:34 +00:00
Alex Converse
039821a838 Use const to better allow the compiler to optimize AAC independent coupling.
Originally committed as revision 17598 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-26 01:50:00 +00:00
Carl Eugen Hoyos
5fe2a515f8 Completed documentation of reference field.
Originally committed as revision 17597 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-26 01:38:51 +00:00
NVIDIA Corporation
2f9c978a07 Do not set h264.is_reference for pictures that are delayed, but not
actually reference frames.

Patch by NVIDIA

Originally committed as revision 17596 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-26 01:03:01 +00:00
NVIDIA Corporation
f90b55166e The field rangered in VDPAU's VdpPictureInfoVC1 now also contains
rangeredfrm (VC-1 7.1.13) in bit 1.

Patch by NVIDIA

Originally committed as revision 17595 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-26 00:29:01 +00:00
Carl Eugen Hoyos
1a022c2fbf Apply correct pix_fmts to WMV3_VDPAU and VC1_VDPAU.
Originally committed as revision 17594 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-25 23:58:52 +00:00
Gwenole Beauchesne
d7dae42e70 Add missing prototype for ff_is_hwaccel_pix_fmt().
patch by Gwenole Beauchesne, gbeauchesne,splitted-desktop,com

Originally committed as revision 17593 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-25 23:24:34 +00:00
Michael Niedermayer
d404b3edb3 Add hwaccel->decode_slice() call for avhwaccel by Gwenole Beauchesne.
Originally committed as revision 17591 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-25 19:39:42 +00:00
Michael Niedermayer
765e94ef9e More AVhwaccel hunks from Gwenole Beauchesne.
Originally committed as revision 17590 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-25 19:16:27 +00:00
Diego Biurrun
e0cffbe7ea spelling/wording/grammar cosmetics
Originally committed as revision 17588 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-25 18:03:47 +00:00
Carl Eugen Hoyos
ac00575d92 Fix VC1 and WMV3 playback in MPlayer.
Originally committed as revision 17587 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-25 15:43:53 +00:00
Kostya Shishkov
7a47495079 cosmetics: reindent after last commit
Originally committed as revision 17585 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-25 08:36:00 +00:00
Kostya Shishkov
77f7156d85 Since motion vectors for intra blocks are always zero, do not try to retrieve them.
Originally committed as revision 17584 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-25 08:35:37 +00:00
Ivan Schreter
c733922eec Export timestamp parameter from H.264.
Patch by Ivan Schreter, schreter gmx net

Originally committed as revision 17575 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-24 22:24:34 +00:00
Ivan Schreter
27ca0a79c9 Add timestamp computation if values are exported by decoder.
Patch by Ivan Schreter, schreter gmx net

Originally committed as revision 17574 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-24 22:19:09 +00:00
Michael Niedermayer
4d8f830125 1000l for me, wrong pix_fmt.
Originally committed as revision 17573 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-24 22:19:02 +00:00
Ivan Schreter
edbd72acea Correct time_base and repeat_pict for MPEG2 video.
Patch by Ivan Schreter, schreter gmx net

Originally committed as revision 17572 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-24 20:23:19 +00:00
Ivan Schreter
fc9fe42833 Correct time_base of H.264 and repeat_pict.
Patch by Ivan Schreter, schreter gmx net

Originally committed as revision 17571 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-24 20:19:59 +00:00
Ivan Schreter
810c451b02 Change duration computation to use time_base instead of TB/2.
Patch by Ivan Schreter, schreter gmx net

Originally committed as revision 17570 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-24 20:17:02 +00:00
Michael Niedermayer
a05aa821b6 add ff_find_hwaccel() by Gwenole Beauchesne
Originally committed as revision 17569 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-24 19:04:43 +00:00
Michael Niedermayer
6059f13cad ff_find_hwaccel()
Originally committed as revision 17568 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-24 18:51:16 +00:00
Michael Niedermayer
414d9d7f2e av_hwaccel_next() by Gwenole Beauchesne.
Originally committed as revision 17567 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-24 18:47:36 +00:00
Michael Niedermayer
c895618bb0 av_register_hwaccel() from Gwenole Beauchesne.
Originally committed as revision 17566 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-24 18:46:00 +00:00
Michael Niedermayer
f986c8e2e5 Another AVhwaccel hunk from Gwenole Beauchesne.
Originally committed as revision 17565 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-24 18:39:42 +00:00
Michael Niedermayer
09a9b45e4f Add and use ff_pixfmt_list_420.
Originally committed as revision 17564 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-24 18:27:52 +00:00
Gwenole Beauchesne
c0aec489a6 Approved hunk from the AVHWaccel patch by Gwenole Beauchesne.
Originally committed as revision 17563 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-24 18:24:56 +00:00
Vitor Sessak
66d4c62806 Do not reimplement ff_celp_lp_synthesis_filterf().
Originally committed as revision 17562 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-24 18:11:42 +00:00
Gwenole Beauchesne
4daa41c415 Rename buf_vdpau to buf_start
Patch by Gwenole Beauchesne <g$lastname> <at> <(antonym of "joined")-desktop><com>

Originally committed as revision 17561 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-24 17:09:57 +00:00
Gwenole Beauchesne
ee3e36315e Add ff_h263_find_resync_marker() to find the bit position of the next resync_marker, if any.
patch by Gwenole Beauchesne gbeauchesne splitted-desktopcom
based on suggested implementation by me

Originally committed as revision 17560 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-24 16:12:47 +00:00
Stefan Gehrer
cd3356ff73 check for a stuffing byte at the end of a slice
Originally committed as revision 17559 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-24 15:56:53 +00:00
Stefan Gehrer
88db5551cf change macroblock loop in inter frames so that after a
slice header the skip count is always parsed first

Originally committed as revision 17558 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-24 15:54:51 +00:00
Diego Biurrun
acced32d08 Mark two variables with av_uninit to avoid false positive gcc warnings.
Originally committed as revision 17552 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-24 14:13:46 +00:00
Måns Rullgård
d4f2a6250a Fix get_ur_golomb_jpegls() with A32_BITSTREAM_READER
If k==0, log==0 can indicate that the coded value uses more than
MIN_CACHE_BITS bits.  With MIN_CACHE_BITS==32, the fast branch is
incorrectly taken in this case unless explicitly forbidden.

Originally committed as revision 17550 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-24 01:41:44 +00:00
Michael Niedermayer
d3bcbf57a9 AVPixFmtDescriptor doxy
Originally committed as revision 17549 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-24 01:12:25 +00:00
Michael Niedermayer
9b61d838f6 Pixel Format descriptor, try #1.
(yes its intentionally unused, this is intended as a basis for further
 work, and to prevent repeation of the whole discussion dying and the
 results being forgotten)

Originally committed as revision 17548 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-24 01:08:29 +00:00
Kenan Gillet
cacb82134e Change sign in ff_celp_lp_synthesis_filterf(). This makes this function
useful for AMR and RA144.

Patch by Kenan Gillet

Originally committed as revision 17546 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-23 22:19:16 +00:00
Alex Converse
7ac1591764 Close the AAC parse context, discovered by Netgem.
Originally committed as revision 17544 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-23 19:25:18 +00:00
Zuxy Meng
d05f808dc9 Remove CPUID availability check on AMD64 as it's architectural.
Originally committed as revision 17543 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-23 15:53:39 +00:00
Reimar Döffinger
f8c96d011e Check return value of ff_fill_pointer in avcodec_default_get_buffer,
if it returns -1 we do not know how to allocate an AVFrame for that format
and must return -1 instead of returning nonsense.

Originally committed as revision 17542 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-23 15:18:28 +00:00
Reimar Döffinger
d46b2d682f 100l, always declare variables at the top of a block, not inside a for ()
Originally committed as revision 17541 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-23 14:02:11 +00:00
Gwenole Beauchesne
40e5d31b57 More approved hunks for VAAPI & our new and cleaner hwaccel API.
patch by Gwenole Beauchesne gbeauchesne splitted-desktop com

Originally committed as revision 17540 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-23 13:44:51 +00:00
Michael Niedermayer
c269cf68a0 Approved hunks for VAAPI / our new shiny hwaccel API
by Gwenole Beauchesne gbeauchesne splitted desktop com

Originally committed as revision 17539 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-23 13:35:52 +00:00
Diego Biurrun
7c2d92fe08 Fix xvmc object dependencies.
Originally committed as revision 17534 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-22 23:13:00 +00:00
Michael Niedermayer
7bbc686f82 Fix vc1 split().
Fixes Subtitle-sample.evo, issue52.

Originally committed as revision 17533 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-22 20:48:12 +00:00
Kostya Shishkov
91ba181a15 Better parsing of i263 picture header
Originally committed as revision 17532 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-22 18:13:40 +00:00
Daniel Verkamp
5ef251e504 Add missing av_cold in static init/close functions.
Patch by Daniel Verkamp daniel at drv dot nu.

Originally committed as revision 17526 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-22 13:48:55 +00:00
Jason Garrett-Glaser
e27ad11840 Convert x264 asm files to proper unix line breaks
Originally committed as revision 17524 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-22 11:35:32 +00:00
Jason Garrett-Glaser
9bd5f59b33 Remove (incorrect) filenames from x264 asm files, add descriptions.
Originally committed as revision 17523 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-22 11:33:09 +00:00
Reimar Döffinger
66e6038cf1 Check return value of frame_start(), this avoids a crash if AVCodecContext::get_buffer failed.
Not sure if returning -1 is the best possible solution but at least avoids the crash.

Originally committed as revision 17520 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-22 09:51:58 +00:00
Ivan Kalvachev
21effaa4b2 Change the type of pblocks from pointers to short array into
pointers to array of 64 DCTELEM, similarly to other block fields.
This also get rid of some casts and fixes a warning.

Originally committed as revision 17517 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-22 09:02:06 +00:00
Peter Ross
001821904e Support 48-bit RGB PPM image.
Originally committed as revision 17511 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-22 00:56:55 +00:00
Peter Ross
88c21a6f14 Add PIX_FMT_RGB48BE and PIX_FMT_RGB48LE.
Originally committed as revision 17510 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-22 00:55:49 +00:00
Ivan Schreter
346db3ef7f Use context variable repeat_pict for frame duration computation and
document this new use.

Patch by Ivan Schreter, schreter gmx net

Originally committed as revision 17492 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-21 20:11:47 +00:00
Ivan Schreter
96c3da93e6 Set context variable picture_structure in H264 parser.
Patch by Ivan Schreter, schreter gmx net

Originally committed as revision 17490 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-21 20:03:05 +00:00
Ivan Schreter
0ed260c7a3 Set context variable key_frame in H264 parser.
Patch by Ivan Schreter, schreter gmx net

Originally committed as revision 17489 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-21 19:59:25 +00:00
Ivan Schreter
ff6474dd15 Parse NAL units in H264 parser.
Patch by Ivan Schreter, schreter gmx net

Originally committed as revision 17488 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-21 19:56:50 +00:00
Ivan Schreter
1790a5e908 Make the following H264 functions available to the parser:
ff_h264_decode_sei, ff_h264_decode_seq_parameter_set,
ff_h264_decode_picture_parameter_set, ff_h264_decode_nal,
ff_h264_decode_rbsp_trailing

Patch by Ivan Schreter, schreter gmx net

Originally committed as revision 17487 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-21 19:54:14 +00:00
Michael Niedermayer
e641f320bd indent
Originally committed as revision 17481 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-21 17:17:09 +00:00
Måns Rullgård
822be725d9 Alpha: fix inline asm with DEC/Compaq/HP compiler
Originally committed as revision 17477 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-21 16:03:23 +00:00
Michael Niedermayer
31f2616db8 Fix raw rgb/bgr vertical flip in avi based on info from http://www.fourcc.org/fccbihgt.php.
partially fixes issue862.

Originally committed as revision 17475 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-21 15:32:56 +00:00
Justin Ruggles
a169df2f76 Set the correct number of samples for E-AC-3 in the AC3 parser.
Originally committed as revision 17472 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-20 22:00:41 +00:00
Ivan Schreter
ebb61f834a Use last decoded SPS as current SPS in order to parse picture timing SEI
correctly. This works around an apparent H.264 standard deficiency.

Patch by Ivan Schreter, schreter gmx net

Originally committed as revision 17471 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-20 16:20:01 +00:00
Roman Shaposhnik
ce83d2bd37 Fixing a value returning issue
Originally committed as revision 17469 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-20 02:00:44 +00:00
Ivan Schreter
b1fa494205 Add convergence_duration to AVCodecParserContext.
Patch by Ivan Schreter, schreter gmx net

Originally committed as revision 17468 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-19 23:35:59 +00:00
Alex Converse
d42e44a0ef Reindent after last commit
Originally committed as revision 17464 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-19 23:08:23 +00:00
Ivan Schreter
3878be318b Silence two warnings:
cast discards qualifiers from pointer target type

Patch by Ivan Schreter, schreter gmx net

Originally committed as revision 17463 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-19 23:01:13 +00:00
Alex Converse
274aa1d02f Some buffer checks for indeo3
Originally committed as revision 17462 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-19 22:56:35 +00:00
Michael Niedermayer
dc405cc1c0 A try to fix the regressions.
Originally committed as revision 17459 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-19 17:54:23 +00:00
Peter Ross
9bf1b72405 Add AVERROR_EOF.
Originally committed as revision 17455 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-19 12:18:09 +00:00
Ivan Kalvachev
859bb3cfee Add more paranoid checks of xvmc token.
Originally committed as revision 17453 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-19 09:55:52 +00:00
Ivan Kalvachev
9cfc1b3a84 Exit with error if MPV_common_init() is called with PIX_FMT_NONE.
Give nice error message to fix codecs that call it this way.

Originally committed as revision 17452 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-19 08:39:47 +00:00
Diego Biurrun
e10252483e Only enable SSE/3DNOW optimizations when they have been enabled at compilation.
Fixes shared build with SSE/3DNOW disabled but MMX and yasm enabled.

Originally committed as revision 17451 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-19 00:54:59 +00:00
Diego Biurrun
2213f431c7 Directly #include required X11/XvMC header.
Originally committed as revision 17450 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-19 00:47:11 +00:00
Roman Shaposhnik
94ed2a303d transitioning dv_guess_dct_mode to dsputil cmp function
Originally committed as revision 17449 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-19 00:34:42 +00:00
Roman Shaposhnik
7fb7f6367a Adding 2 intra 8x8 cmp functions: vsad, vsse
Originally committed as revision 17448 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-19 00:30:24 +00:00
Joakim Plate
4cff8dc88f Allow AC-3 parser to modify codec_id.
Patch by Joakim Plate (elupus A ecce D se).

Originally committed as revision 17447 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-19 00:28:19 +00:00
Roman Shaposhnik
3899eb2f65 Making the arrays accomodate an extra intra 8x8 cmp function
Originally committed as revision 17446 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-19 00:28:08 +00:00
Aurelien Jacobs
d52b39c79c fix missing dependencies
Originally committed as revision 17445 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-19 00:27:57 +00:00
Diego Biurrun
b3183ad034 prettyprinting whitespace cosmetics
Originally committed as revision 17443 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-19 00:06:17 +00:00
Ivan Schreter
6363af44da Add key_frame to AVCodecParserContext, used in libavformat.
Initialized to -1 in parser.c for backward compatibility.

Patch by Ivan Schreter, schreter gmx net

Originally committed as revision 17442 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-18 23:46:05 +00:00
Ivan Schreter
2ea89d9274 Parse buffering period (H.264, D.1.1).
Patch by Ivan Schreter, schreter gmx net

Originally committed as revision 17441 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-18 23:33:30 +00:00
Diego Biurrun
31866c4677 The 3DNow! and SSE FFT optimizations depend on the yasm optimizations in
x86/fft_mmx.asm, so only build them if the latter is built.

Originally committed as revision 17440 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-18 23:32:41 +00:00