aboutsummaryrefslogtreecommitdiff
path: root/lib
AgeCommit message (Collapse)Author
2013-08-31xbadpcm: fix crash on invalid input fileAnssi Hannula
If the sample rate or channel count is zero on a file opened with ADPCMDll, a division by zero is performed causing XBMC to crash. Fix that by adding the necessary check.
2013-08-26Remove GetDirectory(..) without return valueRawk
2013-08-25ffmpeg: add av_channel_layout_extract_channel to util interfaceRainer Hochecker
2013-08-14[ffmpeg] - backport "Fix compilation on ARM with android gcc 4.7" from ↵Memphiz
ffmpeg - fixes compilation on gcc 4.8 with ndk r9
2013-08-11[cosmetic] update copyright headersMartijn Kaijser
2013-08-07[ffmpeg/patches] Add backported mpegts optimisationspopcornmix
2013-08-07[ffmpeg] - backport - mpegts: Remove one 64-bit integer modulus operation ↵Ben Avison
per packet The common case of the pointer having increased by one packet (which results in no change to the modulus) can be detected with a 64-bit subtraction, which is far cheaper than a division on many platforms. Before After Mean StdDev Mean StdDev Change Divisions 248.3 8.8 51.5 7.4 +381.7% Overall 2773.2 25.6 2372.5 43.1 +16.9% Signed-off-by: Martin Storsjö <martin@martin.st>
2013-08-07[ffmpeg] - backport - mpegts: Make discard_pid() faster for single-program ↵Ben Avison
streams When a stream contains a single program, there's no point in doing a PID -> program lookup. Normally the one and only program isn't disabled, so no packets should be discarded. Before After Mean StdDev Mean StdDev Change discard_pid() 73.8 9.4 20.2 1.5 +264.8% Overall 2300.8 28.0 2253.1 20.6 +2.1% Signed-off-by: Martin Storsjö <martin@martin.st>
2013-08-07[ffmpeg] - backport - mpegts: Remove one memcpy per packetBen Avison
This was being performed to ensure that a complete packet was held in contiguous memory, prior to parsing the packet. However, the source buffer is typically large enough that the packet was already contiguous, so it is beneficial to return the packet by reference in most cases. Before After Mean StdDev Mean StdDev Change memcpy 720.7 32.7 649.8 25.1 +10.9% Overall 2372.7 46.1 2291.7 21.8 +3.5% Signed-off-by: Martin Storsjö <martin@martin.st>
2013-08-07[ffmpeg] - backport - avio: Add an internal function for reading without copyingBen Avison
As long as there is enough contiguous data in the avio buffer, just return a pointer to it instead of copying it to the caller provided buffer. Signed-off-by: Martin Storsjö <martin@martin.st>
2013-08-07[cosmetics] update copyright headerMartijn Kaijser
2013-08-06libav hacks: define AVFORMAT_HAS_STREAM_R_FRAMERATE to give it a dummy accessor.Alexis Ballier
2013-08-06Fix swr_get_delay computation from libavresample API.Alexis Ballier
2013-08-06DllAvCodec: Remove now unused LIBAVCODEC_FROM_* macros.Alexis Ballier
2013-08-06DVDFactoryCodec: Remove pointless libav #ifery and improve the libav_hacks.hAlexis Ballier
hackery so that it actually compiles with libav.
2013-08-06DVDOverlayCodecText: Remove libav compat #ifery and move it to libav_hacks.hAlexis Ballier
2013-08-06DllAvFilter.h: Drop checks for libav and factorize some #if / #else. Those ↵Alexis Ballier
are now done in libav hacks.
2013-08-06Remove avfilter_graph_parse hacks for libav and move it to libav hacksAlexis Ballier
2013-08-06Move libav check for libavfilter being avframe based to libav_hacks.hAlexis Ballier
2013-08-06DllAvUtil: Drop libav hacks and move them to libav_hacks.h.Alexis Ballier
2013-08-06DllAvFormat: map av_stream_get_r_frame_rate when available.Alexis Ballier
2013-08-06Introduce a libav-hacks library to wrap a compatibility layer with libav.Alexis Ballier
This copies/pastes some code from FFmpeg but at least allows us to support the fork.
2013-08-06DllSwResample: Clean up libavresample support that is broken anyway.Alexis Ballier
2013-08-06Add a fake .pc file for libswresample -> libavresampleAlexis Ballier
2013-08-02[ffmpeg/patches] Add backported armv6/vfp optimisationspopcornmix
2013-08-02[ffmpeg] - backport - arm: Mangle external symbols properly in new vfp ↵Martin Storsjö
assembly files Reviewed-by: Kostya Shishkov Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2013-08-02[ffmpeg] - backport - arm: Add VFP-accelerated version of qmf_32_subbandsBen Avison
Before After Mean StdDev Mean StdDev Change This function 1323.0 98.0 746.2 60.6 +77.3% Overall 15400.0 336.4 14147.5 288.4 +8.9% Signed-off-by: Martin Storsjö <martin@martin.st>
2013-08-02[ffmpeg] - backport - dcadsp: Add a new method, qmf_32_subbandsBen Avison
This does most of the work formerly carried out by the static function qmf_32_subbands() in dcadec.c. Signed-off-by: Martin Storsjö <martin@martin.st>
2013-08-02[ffmpeg] - backport - arm: Add VFP-accelerated version of fft16Martin Storsjö
Before After Mean StdDev Mean StdDev Change This function 1389.3 4.2 967.8 35.1 +43.6% Overall 15577.5 83.2 15400.0 336.4 +1.2% Signed-off-by: Martin Storsjö <martin@martin.st>
2013-08-02[ffmpeg] - backport - arm: Add VFP-accelerated version of dca_lfe_firMartin Storsjö
Before After Mean StdDev Mean StdDev Change This function 868.2 33.5 436.0 27.0 +99.1% Overall 15973.0 223.2 15577.5 83.2 +2.5% Signed-off-by: Martin Storsjö <martin@martin.st>
2013-08-02[ffmpeg] - backport - arm: Add VFP-accelerated version of imdct_halfMartin Storsjö
Before After Mean StdDev Mean StdDev Change This function 2653.0 28.5 1108.8 51.4 +139.3% Overall 17049.5 408.2 15973.0 223.2 +6.7% Signed-off-by: Martin Storsjö <martin@martin.st>
2013-08-02[ffmpeg] - backport - arm: Add VFP-accelerated version of ↵Ben Avison
int32_to_float_fmul_array8 Before After Mean StdDev Mean StdDev Change This function 366.2 18.3 277.8 13.7 +31.9% Overall 18420.5 489.1 17049.5 408.2 +8.0% Signed-off-by: Martin Storsjö <martin@martin.st>
2013-08-02[ffmpeg] - backport - dcadec: Use int32_to_float_fmul_array8Ben Avison
Signed-off-by: Martin Storsjö <martin@martin.st>
2013-08-02[ffmpeg] - backport - fmtconvert: Add a new method, int32_to_float_fmul_array8Ben Avison
This is similar to int32_to_float_fmul_scalar, but loads a new scalar multiplier every 8 input samples. This enables the use of much larger input arrays, which is important for pipelining on some CPUs (such as ARMv6). Signed-off-by: Martin Storsjö <martin@martin.st>
2013-08-02[ffmpeg] - backport - arm: Add VFP-accelerated version of ↵Ben Avison
int32_to_float_fmul_scalar Before After Mean StdDev Mean StdDev Change This function 1175.0 4.4 366.2 18.3 +220.8% Overall 19285.5 292.0 18420.5 489.1 +4.7% Signed-off-by: Martin Storsjö <martin@martin.st>
2013-08-02[ffmpeg] - backport - arm: Add VFP-accelerated version of synth_filter_floatBen Avison
Before After Mean StdDev Mean StdDev Change This function 9295.0 114.9 4853.2 83.5 +91.5% Overall 23699.8 397.6 19285.5 292.0 +22.9% Signed-off-by: Martin Storsjö <martin@martin.st>
2013-08-01Merge pull request #3031 from aballier/typoAlexis Ballier
Fix typo in [50e52c36]. Broke the build with external FFmpeg.
2013-08-01Fix typo in [50e52c36]. Broke the build with external FFmpeg.Alexis Ballier
2013-08-01Merge pull request #2966 from Voyager1/uniquedvdid-use-libdvdnavVoyager1
Uniquedvdid use libdvdnav
2013-08-01Merge pull request #2957 from jmbreuer/upstream-libdvdnav-seekMartijn Kaijser
More accurate seeking with libdvdnav
2013-08-01DllAvFilter.h: Include libavfilter/avcodec.h only when necessary. We are not ↵Alexis Ballier
using it anymore when using the new avfilter APIs and it contains only deprecated functions.
2013-08-01DllAvFilter.h: Include libavfilter/avfilter.h since we are using functions ↵Alexis Ballier
from this header such as avfilter_get_by_name.
2013-08-01Drop support for av_vsrc_buffer_add_frame: We are using the new API since ↵Alexis Ballier
libavfilter 3, which is available in FFmpeg 1.0 at least. libavfilter from libav will not work without the avframe based API anyway.
2013-08-01Use avfilter_graph_parse_ptr when available (Fixes a deprecation warning ↵Alexis Ballier
with FFmpeg 2.0). Include the libav API for avfilter_graph_parse which should help porting to libav.
2013-08-01DllAvFilter: Map avfilter_graph_parse_ptr when available.Alexis Ballier
2013-08-01Switch to the avframe based API for libavfilter when it is available.Alexis Ballier
The old API is deprecated and the new code is simpler and saves a memcopy. Also, use the AVFrame values instead of the codec context for DVDVideoCodecFFmpeg::GetPicture.
2013-08-01DllAvUtil.h: Map av_frame_move_ref when applicable.Alexis Ballier
2013-08-01DllAvUtil.h: Map av_frame_unref when applicable.Alexis Ballier
2013-08-01DllAvUtil.h: Map av_frame_alloc when applicable.Alexis Ballier
2013-08-01DllAvUtil.h: Map av_frame_free when applicable.Alexis Ballier