Mans Rullgard
7d7b40f48a
pcmenc: set correct bitrate value
...
This fixes a bogus bitrate value in the header of WAV files with
alaw/ulaw audio.
Signed-off-by: Mans Rullgard <mans@mansr.com>
13 years ago
Michael Kostylev
6797d1948b
x86: rv40: Mark rv40_weight functions as MMX2; they use MMX2 instructions.
13 years ago
Justin Ruggles
95a98ab3f0
ac3dsp: simplify x86 versions of ac3_max_msb_abs_int16
...
Simplifies the code by using cpuflags and a new macro.
Also fixes the invalid use of the MMX2 pshufw operation in the MMX-only
function.
13 years ago
Aneesh Dogra
46ea46357a
tta: Fix comment about channel number; TTA supports >2 channels.
...
Signed-off-by: Diego Biurrun <diego@biurrun.de>
13 years ago
Kostya Shishkov
6de226a2b8
indeo3: validate new frame size before resetting decoder
13 years ago
Kostya Shishkov
bc00da2701
indeo3: when freeing buffers, set pointers referencing them to NULL as well
13 years ago
Kostya Shishkov
81064a8045
indeo3: initialise pixel planes on allocation
...
This prevents decoder from reading garbage from it in case of errors later.
13 years ago
Kostya Shishkov
fc417db3f1
indeo3: ensure that decoded cell data is in 7-bit range as presumed by decoder
13 years ago
Anton Khirnov
e6694659fc
libmp3lame: set supported channel layouts.
13 years ago
Diego Biurrun
100c70b048
vcr1: Add vcr1_ prefixes to all static functions with generic names.
13 years ago
Diego Biurrun
a761e5951c
vcr1: Fix return type of common_init to match the function pointer signature.
...
libavcodec/vcr1.c:182: warning: initialization from incompatible pointer type
13 years ago
Diego Biurrun
55da88c5ab
vcr1enc: Replace obsolete get_bit_count by put_bits_count/flush_put_bits.
13 years ago
Diego Biurrun
5aad8e80a7
motion-test: remove disabled code
13 years ago
Vitor Sessak
fcc456b829
x86: use more standard construct for setting ASM functions in FFT code
...
Signed-off-by: Diego Biurrun <diego@biurrun.de>
13 years ago
Michael Kostylev
ea60dfe284
x86: vc1: drop MMX loop filter implementation, which uses MMX2 instructions.
13 years ago
Mans Rullgard
e54e6f25cf
arm/neon: dsputil: use correct size specifiers on vld1/vst1
...
Change the size specifiers to match the actual element sizes
of the data. This makes no practical difference with strict
alignment checking disabled (the default) other than somewhat
documenting the code. With strict alignment checking on, it
avoids trapping the unaligned loads.
Signed-off-by: Mans Rullgard <mans@mansr.com>
13 years ago
Mans Rullgard
2eba6898c9
arm: dsputil: prettify some conditional instructions in put_pixels macros
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
13 years ago
Mans Rullgard
c776531aef
vqavideo: change x/y loop counters to the usual pattern
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
13 years ago
Christophe Gisquet
110d0cdc9d
rv40dsp x86: MMX/MMX2/3DNow/SSE2/SSSE3 implementations of MC
...
Code mostly inspired by vp8's MC, however:
- its MMX2 horizontal filter is worse because it can't take advantage of
the coefficient redundancy
- that same coefficient redundancy allows better code for non-SSSE3 versions
Benchmark (rounded to tens of unit):
V8x8 H8x8 2D8x8 V16x16 H16x16 2D16x16
C 445 358 985 1785 1559 3280
MMX* 219 271 478 714 929 1443
SSE2 131 158 294 425 515 892
SSSE3 120 122 248 387 390 763
End result is overall around a 15% speedup for SSSE3 version (on 6 sequences);
all loop filter functions now take around 55% of decoding time, while luma MC
dsp functions are around 6%, chroma ones are 1.3% and biweight around 2.3%.
Signed-off-by: Diego Biurrun <diego@biurrun.de>
13 years ago
Christophe Gisquet
706b998cdc
ape: Use unsigned integer maths
...
This involves a division that should be a shift.
Signed-off-by: Diego Biurrun <diego@biurrun.de>
13 years ago
Mans Rullgard
cbc7d60afa
arm: dsputil: fix overreads in put/avg_pixels functions
...
The vertically interpolating variants of these functions read
ahead one line to optimise the loop. On the last line processed,
this might be outside the buffer. Fix these invalid reads by
processing the last line outside the loop.
Signed-off-by: Mans Rullgard <mans@mansr.com>
13 years ago
Diego Biurrun
1de53d006b
h264: K&R formatting cosmetics for header files (part II/II)
13 years ago
Diego Biurrun
be545b8a34
h264: K&R formatting cosmetics for header files (part I/II)
13 years ago
Diego Biurrun
8ae1914327
vcr1enc: drop pointless empty encode_init() wrapper function
13 years ago
Diego Biurrun
eeeefd5001
vcr1: drop pointless write-only AVCodecContext member from VCR1Context
13 years ago
Diego Biurrun
51c4d87093
vcr1: group encoder code together to save #ifdefs
13 years ago
Diego Biurrun
db1e403cfb
vcr1: cosmetics: K&R prettyprinting, typos, parentheses, dead code, comments
13 years ago
Diego Biurrun
c8b4a3999b
libxvid: Give more suitable names to libxvid-related files.
13 years ago
Diego Biurrun
5b432d66ce
libxvid: Separate libxvid encoder from libxvid rate control code.
...
This allows compiling the Xvid rate control code without the encoder.
13 years ago
Diego Biurrun
727af82a84
jpeglsdec: Remove write-only variable in ff_jpegls_decode_lse().
...
libavcodec/jpeglsdec.c:54:9: warning: variable ‘len’ set but not used
13 years ago
Anton Khirnov
c22953b8a3
lavc: check that extended_data is properly set in avcodec_encode_audio2().
13 years ago
Anton Khirnov
a5117a2444
lavc: pad last audio frame with silence when needed.
13 years ago
Jordi Ortiz
38f06a1415
libschroedingerdec: Change AVPicture to AVFrame and use SchroTag to store pts
...
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
13 years ago
Alex Converse
40f81769ae
options_table: Add some missing #includes to fix "make checkheaders".
...
Signed-off-by: Diego Biurrun <diego@biurrun.de>
13 years ago
Kostya Shishkov
464e9ab011
lagarith: add YUY2 decoding support
...
Unlike other variants, for YUY2 we need to use different prediction:
* on line 0 for luma we should left predict starting from the second pixel
* on line 1 we should left predict first 4 pixels for luma and 2 for chroma
* median prediction employed here is taken directly from HuffYUV
13 years ago
Carl Eugen Hoyos
58637a0b24
Support decoding unaligned rgb24 lagarith.
...
Signed-off-by: Kostya Shishkov <kostya.shishkov@gmail.com>
13 years ago
Diego Biurrun
520c1ec699
dv: Split profile handling code into a separate file.
13 years ago
Ronald S. Bultje
64953f67f9
qdm2: clip array indices returned by qdm2_get_vlc().
...
Prevents subsequent overreads when these numbers are used as indices
in arrays.
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org
Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
13 years ago
Justin Ruggles
f132248028
avcodec: do not needlessly set packet size to 0 in avcodec_encode_audio2()
...
It is already set to 0 by av_free_packet()
13 years ago
Justin Ruggles
74e10b6204
avcodec: for audio encoding, reset output packet when it is not valid
13 years ago
Justin Ruggles
fa0319b4fd
avcodec: refactor avcodec_encode_audio2() to merge common branches
13 years ago
Justin Ruggles
b461cd4deb
avcodec: remove fallbacks for AVCodec.encode() in avcodec_encode_audio2()
...
We no longer have any audio encoders using AVCodec.encode().
13 years ago
Diego Biurrun
fdc918632f
libschroedinger: Switch to function names more in line with Libav style.
13 years ago
Diego Biurrun
9cef0669c4
Move code shared between libdirac and libschroedinger to libschroedinger.
...
This also involves making some function static and changing the name
prefixes of some functions and structures.
13 years ago
Diego Biurrun
10d2ea2604
h264: Remove a commented-out function pointer typedef.
13 years ago
Diego Biurrun
ea14050642
txd: Remove write-only variable in txd_decode_frame().
...
libavcodec/txd.c:49:60: warning: variable ‘mipmap_count’ set but not used
13 years ago
Diego Biurrun
246b050f51
mmvideo.c: Remove unused variable in mm_decode_pal().
...
libavcodec/mmvideo.c:87:9: warning: variable ‘i’ set but not used
13 years ago
Diego Biurrun
dbe6ba55a3
build: cosmetics: Add missing end-of-line backslashes to item lists.
13 years ago
Diego Biurrun
9eb83a56aa
build: cosmetics: Split HEADERS/OBJS/PROGS lists into one entry per line.
13 years ago
Diego Biurrun
1f4f752117
libschroedinger: Move a function to avoid a forward declaration.
13 years ago