Jason Garrett-Glaser
5ad4335c22
VP8: merge chroma MC calls
Adds some duplicated code, but avoids duplicate edge checks and similar.
~0.5% faster overall on Parkjoy test sample.
(cherry picked from commit 64233e702a )
15 years ago
Ronald S. Bultje
baffa091af
Implement a SIMD version of emulated_edge_mc() for x86.
From ~550 cycles (C version) to 170 (SSE/x86-64), 206 (MMX/x86-32)
and 196 (SSE2/x86-32) cycles.
(cherry picked from commit 81f2a3f4ff )
15 years ago
Justin Ruggles
389b5bfa34
cosmetics: indentation
Signed-off-by: Mans Rullgard <mans@mansr.com>
(cherry picked from commit d19b744a36 )
15 years ago
Justin Ruggles
a8ae4e0e7b
Remove unneeded add bias from 3 functions.
DSPContext.vector_fmul_window()
DCADSPContext.lfe_fir()
SynthFilterContext.synth_filter_float()
Signed-off-by: Mans Rullgard <mans@mansr.com>
(cherry picked from commit 80ba1ddb58 )
15 years ago
Alex Converse
770c410fbb
Fix ff_imdct_calc_sse() on gcc-4.6
Gcc 4.6 only preserves the first value when using an array with an "m"
constraint.
Signed-off-by: Mans Rullgard <mans@mansr.com>
15 years ago
Anssi Hannula
71e0bee9ea
h264: add profile names for the existing defines
Signed-off-by: Janne Grunau <janne-ffmpeg@jannau.net>
15 years ago
Janne Grunau
fe9a3fbe42
h264: Add Intra and Constrained Baseline profiles to avctx.profile
15 years ago
Gianluigi Tiesi
e86e858111
dca: avoid C99 declaration in for() expression
Signed-off-by: Mans Rullgard <mans@mansr.com>
15 years ago
Jason Garrett-Glaser
64233e702a
VP8: merge chroma MC calls
Adds some duplicated code, but avoids duplicate edge checks and similar.
~0.5% faster overall on Parkjoy test sample.
15 years ago
Ronald S. Bultje
81f2a3f4ff
Implement a SIMD version of emulated_edge_mc() for x86.
From ~550 cycles (C version) to 170 (SSE/x86-64), 206 (MMX/x86-32)
and 196 (SSE2/x86-32) cycles.
15 years ago
Justin Ruggles
d19b744a36
cosmetics: indentation
Signed-off-by: Mans Rullgard <mans@mansr.com>
15 years ago
Justin Ruggles
80ba1ddb58
Remove unneeded add bias from 3 functions.
DSPContext.vector_fmul_window()
DCADSPContext.lfe_fir()
SynthFilterContext.synth_filter_float()
Signed-off-by: Mans Rullgard <mans@mansr.com>
15 years ago
Jason Garrett-Glaser
a4257d74e0
Slightly simplify VP8 inter_predict
Merge an if and a switch.
(cherry picked from commit 73be29b0c4 )
15 years ago
Jason Garrett-Glaser
73be29b0c4
Slightly simplify VP8 inter_predict
Merge an if and a switch.
15 years ago
Luca Barbato
9ef5a9deaf
Replace dprintf with av_dlog
dprintf clashes with POSIX.1-2008
(cherry picked from commit dfd2a005eb )
15 years ago
Justin Ruggles
4592c85fc8
Flush final frames in libfaac encoder.
Gives decoded output identical in length to faac commandline encoder.
Fixes Issue 670.
Signed-off-by: Mans Rullgard <mans@mansr.com>
(cherry picked from commit 243f8241db )
15 years ago
Vitor Sessak
5255acc6be
Fix memory leak in ALS decoder in big endian systems
Signed-off-by: Mans Rullgard <mans@mansr.com>
(cherry picked from commit e0eb963aaa )
15 years ago
Mans Rullgard
451b4b8635
Rearrange MpegEncContext to simplify access from asm
This moves the fields needed by asm near the top, before any
structs or other members which complicate the offset calculation.
Modifying other structs will no longer require updating the offsets,
and the asm code is slightly simpler due to the smaller offsets.
Signed-off-by: Mans Rullgard <mans@mansr.com>
(cherry picked from commit d461a47317 )
15 years ago
Vitor Sessak
bc0a603c78
Fix overread in altivec DSP function sad16
Signed-off-by: Mans Rullgard <mans@mansr.com>
(cherry picked from commit 3af1fe829e )
15 years ago
Mans Rullgard
8afac88e14
ARM: update MpegEncContext offsets
(cherry picked from commit 0745116c10 )
15 years ago
Ronald S. Bultje
d23e3e5fea
Move ff_emulated_edge_mc() into DSPContext.
(cherry picked from commit 2e27959879 )
15 years ago
Ronald S. Bultje
efcc106455
Optimize C version of ff_emulated_edge_mc().
From ~780 cycles to 551 cycles, mostly just by using libc memcpy()
instead of manually shuffling individual bytes around.
(cherry picked from commit e5262ec44a )
15 years ago
Alex Converse
79615a3e50
aacdec: Convert some loop copies into memcpy()s.
Signed-off-by: Mans Rullgard <mans@mansr.com>
(cherry picked from commit e5c82df80e )
15 years ago
Stefano Sabatini
e86c78836b
In the rawvideo decoder, set pkt_pts in the output frame.
Signed-off-by: Janne Grunau <janne-ffmpeg@jannau.net>
(cherry picked from commit 3c802cabba )
15 years ago
Ronald S. Bultje
6642a17935
Fix VP8 aliasing problems.
Replace * (uint32_t *) buf accesses with AV_WN32A/AV_COPY32.
(cherry picked from commit 9d4bdcb714 )
15 years ago
Alex Converse
b5f83debf5
Make ff_float_to_int16*_c() static.
Signed-off-by: Mans Rullgard <mans@mansr.com>
(cherry picked from commit 5ce5dbc5f3 )
15 years ago
Diego Elio Pettenò
06c8f31e84
Hide the now-prefixed decoders, encoders, parsers, bsf, hwaccel objects.
This significantly reduces the size of the symbol table in the generated ELF
shared object (as well as the other linked tables).
Signed-off-by: Mans Rullgard <mans@mansr.com>
(cherry picked from commit ac28ce5fac )
15 years ago
Luca Barbato
dfd2a005eb
Replace dprintf with av_dlog
dprintf clashes with POSIX.1-2008
15 years ago
Justin Ruggles
243f8241db
Flush final frames in libfaac encoder.
Gives decoded output identical in length to faac commandline encoder.
Fixes Issue 670.
Signed-off-by: Mans Rullgard <mans@mansr.com>
15 years ago
Vitor Sessak
e0eb963aaa
Fix memory leak in ALS decoder in big endian systems
Signed-off-by: Mans Rullgard <mans@mansr.com>
15 years ago
Mans Rullgard
d461a47317
Rearrange MpegEncContext to simplify access from asm
This moves the fields needed by asm near the top, before any
structs or other members which complicate the offset calculation.
Modifying other structs will no longer require updating the offsets,
and the asm code is slightly simpler due to the smaller offsets.
Signed-off-by: Mans Rullgard <mans@mansr.com>
15 years ago
Vitor Sessak
3af1fe829e
Fix overread in altivec DSP function sad16
Signed-off-by: Mans Rullgard <mans@mansr.com>
15 years ago
Mans Rullgard
0745116c10
ARM: update MpegEncContext offsets
15 years ago
Ronald S. Bultje
2e27959879
Move ff_emulated_edge_mc() into DSPContext.
15 years ago
Ronald S. Bultje
e5262ec44a
Optimize C version of ff_emulated_edge_mc().
From ~780 cycles to 551 cycles, mostly just by using libc memcpy()
instead of manually shuffling individual bytes around.
15 years ago
Alex Converse
e5c82df80e
aacdec: Convert some loop copies into memcpy()s.
Signed-off-by: Mans Rullgard <mans@mansr.com>
15 years ago
Stefano Sabatini
3c802cabba
In the rawvideo decoder, set pkt_pts in the output frame.
Signed-off-by: Janne Grunau <janne-ffmpeg@jannau.net>
15 years ago
Ronald S. Bultje
9d4bdcb714
Fix VP8 aliasing problems.
Replace * (uint32_t *) buf accesses with AV_WN32A/AV_COPY32.
15 years ago
Alex Converse
5ce5dbc5f3
Make ff_float_to_int16*_c() static.
Signed-off-by: Mans Rullgard <mans@mansr.com>
15 years ago
Justin Ruggles
79ce107847
cosmetics: indentation and spacing
(cherry picked from commit b5ec638343 )
15 years ago
Justin Ruggles
733dbe7d18
Remove the add bias hack for the C version of DSPContext.float_to_int16_*().
(cherry picked from commit 9d06d7bce3 )
15 years ago
Justin Ruggles
0ca4fcc94c
Add special case for 2nd-order IIR filter.
40% faster in ff_iir_filter_flt() when c->order == 2.
(cherry picked from commit 37cb3eb534 )
15 years ago
Luca Barbato
1d20121b2e
Add ff_ to AVHWAccel decoders
That unbreaks compilation of vaapi and dxva2
Signed-off-by: Janne Grunau <janne-ffmpeg@jannau.net>
(cherry picked from commit d1b6f33bf2 )
15 years ago
Ronald S. Bultje
e3c5395402
VP8: don't overread edges on fourtap MC.
Fix C VP8 H+V MC functions which do two-dimensional 4/6-tap filters to
not overread beyond their edges if the second filter is 4-tap, since
the outer pixels aren't there anymore since
44002d8323 .
(cherry picked from commit 22893e10ae )
15 years ago
Diego Elio Pettenò
e7e2df27f8
Add ff_ prefix to data symbols of encoders, decoders, hwaccel, parsers, bsf.
None of these symbols should be accessed directly, so declare them as
hidden.
Signed-off-by: Mans Rullgard <mans@mansr.com>
(cherry picked from commit d36beb3f69 )
15 years ago
Diego Elio Pettenò
4b21c38180
Make ff_cmap_read_palette static to libavcodec/iff.c. Delete iff.h.
The iff.h header only declared one function that is now static, the
libavformat/iff.c source file wasn't using it before. Drop the file
entirely.
Signed-off-by: Mans Rullgard <mans@mansr.com>
(cherry picked from commit 2d162e3825 )
15 years ago
Justin Ruggles
dff80041e3
Add ff_ prefix to ac3_common_init().
Signed-off-by: Mans Rullgard <mans@mansr.com>
(cherry picked from commit 4c57cde942 )
15 years ago
Justin Ruggles
e732af87fc
ac3: Remove ff_ac3_critical_band_size_tab.
It is only used to generate band_start_tab, which about the same size, at
runtime, so it's simpler just to always hardcode band_start_tab.
Signed-off-by: Mans Rullgard <mans@mansr.com>
(cherry picked from commit 24e3ad3031 )
15 years ago
Diego Elio Pettenò
d4a847711d
Mark C base versions of FFT functions static to fft.c
Signed-off-by: Mans Rullgard <mans@mansr.com>
(cherry picked from commit 7767d8d361 )
15 years ago
Marco Gittler
5f58927baf
Pass field order flag to libx264
Signed-off-by: Jason Garrett-Glaser <jason@x264.com>
(cherry picked from commit b09f548285 )
15 years ago