Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mpc-hc/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2014-06-16swr: reindent.Ronald S. Bultje
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2014-06-15swr: compile mmx2 s16p functions only on x86-32.Ronald S. Bultje
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2014-06-15swr: add prototypes for resample dsp functionsJames Almer
Should fix compilation failures with MSVC and any other compiler without inline asm support. Signed-off-by: James Almer <jamrial@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2014-06-15swr: remove obsolete function prototypes.Ronald S. Bultje
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2014-06-14swr: split out DSP functions.Ronald S. Bultje
DSP bits of swri_resample go into their own mini-DSP functions; DSP init goes from a per-call branch in multiple_resample to a proper DSP init routine; x86 bits go into x86/; swri_resample() moves out of resample_template.c into resample.c because it's independent of DSP code or sample type; multiple_resample() is simplified. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2014-06-14swresample/resample: replace assert by av_assertMichael Niedermayer
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2014-06-14swr: handle initial negative sample index outside DSP function.Ronald S. Bultje
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2014-06-14swr: remove unnecessary assignment.Ronald S. Bultje
I don't see dst_incr/dst_incr_frac ever being changed from their initial value (which is the inverse of this operation), so it seems to me that this is a no-op. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2014-06-09swr: handle 64bit overflow check in multiple_resample().Ronald S. Bultje
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2014-06-03fix various typosLou Logan
Signed-off-by: Lou Logan <lou@lrcd.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2014-06-02swr: move compensation_distance handling to swri_resample caller.Ronald S. Bultje
I think there's an off-by-one in terms of the switchpoint where we switch from dst_incr to ideal_dst_incr, I don't think that's a massive issue, but just be aware of that. It's probably trivial to prevent but I don't care. Signed-off-by: Michael Niedermayer <michaelni@gmx.at> I could not reproduce any off by 1 error, results are bit exact (michael)
2014-06-02swr/resample_template: prevent end_index from overflowing and add check for ↵Michael Niedermayer
delta_frac overflow Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2014-06-02Rewrite main resampling loop (common and linear).Ronald S. Bultje
This removes a branch at a performance-sensitive point (in the middle of the loop). In fate-swr-resample-s32p-8000-2626, this makes the code about 10% faster. It also simplifies the loops, allowing us to rewrite it in yasm at some later point. The compensation_distance != 0 code and index < 0 code are still kind of hairy. For compensation_distance != 0, this should likely be handled in the caller, so that it calls swri_resample twice (once until the dst_incr switch-point, and once with the remainder of the samples). For index < 0, the code should probably be rewritten to break out of the loop once sample_index >= 0, and then resume (e.g. as a tail-call) to the common or linear resampling loops. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2014-05-16swresample: add swri_resample_float_avxJames Almer
Signed-off-by: James Almer <jamrial@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2014-05-15swresample: swr_close()Michael Niedermayer
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2014-05-07inline asm: fix arrays as named constraints.Matt Oliver
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2014-05-07swresample/resample: add missing xmm clobbersJames Almer
Might fix fate-swr on ICL Signed-off-by: James Almer <jamrial@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2014-04-29Fix convertion typosMichael Niedermayer
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2014-04-25swresample: add swri_resample_double_sse2James Almer
Signed-off-by: James Almer <jamrial@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2014-04-24swresample: fix AV_CH_LAYOUT_STEREO_DOWNMIX inputMichael Niedermayer
Fixes Ticket 3542 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2014-04-15swresample/resample_template: try to consider src_size more exactlyMichael Niedermayer
This should avoid slight differences in the output causes by input size alignment differences between archs Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2014-04-14swresample/resample: simplify index/consumed calculation for the filter = 1 caseMichael Niedermayer
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2014-04-14swresample/resample: Fix fractional part of index in the filter_size = 1 ↵Michael Niedermayer
filters = 1 case Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2014-04-08swresample/resample: use av_malloc_array() where appropriateMichael Niedermayer
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2014-04-08swresample/dither: use av_malloc_array()Michael Niedermayer
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2014-04-08swresample/resample: Limit filter lengthMichael Niedermayer
Related to CID1197063 The limit choosen is arbitrary and much larger than what makes sense. It avoids the need for checking arithmetic operations with the length for overflow Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2014-03-24swresample/resample: sse float linear interpolationJames Almer
About two times faster Signed-off-by: James Almer <jamrial@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2014-03-24swresample/resample: mmx2/sse2 int16 linear interpolationJames Almer
About three times faster Signed-off-by: James Almer <jamrial@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2014-03-20swresample: add swri_resample_float_sseJames Almer
At least two times faster than the C version. Signed-off-by: James Almer <jamrial@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2014-03-19Automatically change MANGLE() into named inline asm operands when direct ↵Matt Oliver
symbol reference in inline asm are not supported. This is part of the patch-set for intel C inline asm on windows support Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2014-03-18swresample: reuse COMMON_CORE asm where possibleJames Almer
Signed-off-by: James Almer <jamrial@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2014-03-18swresample: change COMMON_CORE_INT16 asm from SSSE3 to SSE2James Almer
pshuf+paddd is slightly faster than phaddd. The real gain is in pre-ssse3 processors like AMD K8 and K10, which get a big boost in performance compared to the mmxext version Signed-off-by: James Almer <jamrial@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2014-02-24swr: check that the context for swr_convert() has been initializedMichael Niedermayer
Reviewed-by: ubitux Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2014-02-24swresample: add swr_is_initialized()Michael Niedermayer
Idea-from/based-on: 7e86c27b4ee9e5a3fbe6cf5249b9d918b2a5e731 Reviewed-by: ubitux Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2014-02-23swresample: factorize clear_context() outMichael Niedermayer
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2014-02-17Fix libswresample compilation with Apple Neon assembler.Reimar Döffinger
Signed-off-by: Carl Eugen Hoyos <cehoyos@ag.or.at>
2014-01-18swresample: Add arm&x86 clobber testsMartin Storsjö
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2013-12-31Avoid using empty macro arguments.Reimar Döffinger
These are not supported by all compilers (gcc 2.95 but also older SPARC compilers, see gcc bug #33304 for example), and there is no real need for them. One use of this feature remains in libavdevice/v4l2.c which can't be replaced quite as easily. Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
2013-12-26lavu,lavc,lswr: do not hardcode AV_SAMPLE_FMT_NB value when setting sample ↵Stefano Sabatini
format max value The constant may change in libavutil but the library may be compiled against an older version, thus rejecting a value which is otherwise supported by the new libavutil. INT_MAX is used here to denote the max allowed value for a sample format. The opt-test code is changed to provide a valid reference example.
2013-12-06Add Windows resource file support for shared librariesJames Almer
Originally written by James Almer <jamrial@gmail.com> With the following contributions by Timothy Gu <timothygu99@gmail.com> * Use descriptions of libraries from the pkg-config file generation function * Use "FFmpeg Project" as CompanyName (suggested by Alexander Strasser) * Use "FFmpeg" for ProductName as MSDN says "name of the product with which the file is distributed" [1]. * Use FFmpeg's version (N-xxxxx-gxxxxxxx) for ProductVersion per MSDN [1]. * Only build the .rc files when --enable-small is not enabled. [1] http://msdn.microsoft.com/en-us/library/windows/desktop/aa381058.aspx Signed-off-by: James Almer <jamrial@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2013-12-04swresample: use the internal buffer for resampling the last few samplesMichael Niedermayer
Fixes out of array read Fixes Ticket3193 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2013-11-03lswr: fix assert failure on unknown layouts.Nicolas George
2013-10-17lswr/swresample: convert ocl and icl options to AV_OPT_TYPE_CHANNEL_LAYOUTStefano Sabatini
Improve interface flexibility. In particular makes it possible to set channel layout through symbolic names using the av_opt_set() interface.
2013-10-08x86: Fix compilation with nasm on PPC & OS/2Ronald S. Bultje
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2013-09-30swr: fix example code and doxy indent.Clément Bœsch
2013-09-17swresample: replace 2 av_free() by av_freep()Michael Niedermayer
avoids leaving stale pointers in memory Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2013-08-20swr/rematrix: Fix handling of AV_CH_LAYOUT_STEREO_DOWNMIX outputMichael Niedermayer
Fixes Ticket2859 Note, testcases related to the downmix channels are welcome. (id like to make sure this is working correctly now, as obviously it didnt work before ...) Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2013-08-20swr: clean layouts before checking sanityMichael Niedermayer
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2013-07-22swresample: fix negative rematrix volumnsMichael Niedermayer
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2013-07-22swresample: Make rematrix maxvalue user settableMichael Niedermayer
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>