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
Wolfram Gloger
4eac2e8901
Change return type of opt_loglevel() from void to int.
...
Patch by Wolfram Gloger: wmglo (your at here) dent med uni (minus) muenchen de
Originally committed as revision 18678 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-24 11:56:23 +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
Michael Niedermayer
a39b76ea7d
Don't loose bits_per_raw_sample when transcoding.
...
Originally committed as revision 18671 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-23 23:30:16 +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
Carl Eugen Hoyos
8e86dd1241
Make reset_ptr() void.
...
Originally committed as revision 29229 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2009-04-23 22:19:53 +00:00
Ivo van Poorten
896873b564
avoid possibly uninitialized return value
...
(found by clang static analyzer)
Originally committed as revision 18669 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-23 18:44:03 +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
Jai Menon
4fabb60ddb
NSV : Add TOC2 parsing and seeking support.
...
Originally committed as revision 18662 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-22 19:37:57 +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
Måns Rullgård
e4ddc8edfa
configure: support Blackfin CPU names with --cpu
...
Originally committed as revision 18660 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-22 09:27:36 +00:00
Andreas Öman
0e1ccdeb11
It should be #if, not #ifdef
...
Originally committed as revision 18659 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-22 08:39:46 +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
f9f2ab8229
Require 4 instead of 3 frames for detecting mp3,
...
fixes misdetection of mpegps_mp3_unrecognized_format.mpg (issue997)
Originally committed as revision 18657 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-22 02:58:20 +00:00
Michael Niedermayer
0ee51c556e
Fix 10l typo (usage of PIX_FMT_NE()).
...
Should fix FATE, i forgot to commit this.
Originally committed as revision 18656 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-22 02:29:11 +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
9145021d68
Add raw MLP muxer.
...
Originally committed as revision 18652 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-21 23:23:15 +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
Stefano Sabatini
fd548e5bd6
Remove consume_whitespace() and replace it with direct calls to
...
strspn().
Originally committed as revision 18645 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-21 19:08:49 +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
de1275d5e8
Planar 16bit 420 422 444 YUV support (output is only supported in some
...
unscaled convertions).
This, like gray16 converts down to 8bit, which is a big FIXME & patch welcome,
we should preserve more bits.
Originally committed as revision 29217 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2009-04-21 01:08:03 +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
Michael Niedermayer
61a3f379e0
Merge gray->gray converters into planarCopy(), this should also make planarCopy()
...
useable for other 16bit formats once we support them.
Originally committed as revision 29216 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2009-04-21 00:08:06 +00:00
Michael Niedermayer
714f32bf15
Add macro to check for 16bit per sample.
...
Originally committed as revision 29215 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2009-04-21 00:03:00 +00:00
Michael Niedermayer
b87fae9f56
Make sure src/dst are NULL when they arent used, some code uses this to
...
simpify checks.
Originally committed as revision 29214 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2009-04-21 00:01:59 +00:00