aboutsummaryrefslogtreecommitdiffstats
path: root/libswscale
Commit message (Collapse)AuthorAgeFilesLines
* lsws/utils: fix typoStefano Sabatini2013-11-051-1/+1
|
* Optimize pure C unscaled yuv2rgb.Reimar Döffinger2013-10-301-1/+3
| | | | | | | | | | | Aligning the tables reduces the amount of code generated on e.g. ARM as the offset constant then has few enough set bits so it can be encoded inside a single instruction instead of 2. Ideally all should be declared aligned, but the DECLARE_ALIGNED macros does not work with pointer tables, thus also reordered the tables. Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
* lsws: use av_pix_fmt_get_chroma_sub_sample()Stefano Sabatini2013-10-241-9/+2
| | | | Remove duplicated getSubSampleFactors() function. Simplify.
* swscale/utils: check mprotect() return codeMichael Niedermayer2013-10-231-2/+5
| | | | | Found-by: wm4 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* swscale/yuv2rgb: clip cy, avoid division by 0 with 0 contrastMichael Niedermayer2013-10-171-4/+4
| | | | | Found-by: durandal_1707 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* swscale/utils/sws_setColorspaceDetails(): fix indentionMichael Niedermayer2013-10-171-6/+6
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* swsscale/swscale_unscaled: add GBRAP16Paul B Mahol2013-10-161-6/+40
| | | | | Signed-off-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* swscale/swscale_unscaled: fix alpha pointer & stride for ↵Michael Niedermayer2013-10-161-4/+4
| | | | | | planarRgb16ToRgb16Wrapper() Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* swscale: Use full resolution chroma for yuv2rgb when the input has full chromaMichael Niedermayer2013-10-101-0/+10
| | | | | | See Ticket3028 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* Merge commit '6b3ff6f91a535d6383f41ca7bdf760165dcb6015'Michael Niedermayer2013-10-061-2/+13
|\ | | | | | | | | | | | | | | | | | | | | | | | | * commit '6b3ff6f91a535d6383f41ca7bdf760165dcb6015': swscale: provide a default scaler if none is set Conflicts: libswscale/utils.c The default is left at bicubic until someone has compared the scalers properly speed and quality wise. Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * swscale: provide a default scaler if none is setVittorio Giovara2013-10-051-1/+11
| | | | | | | | | | | | | | | | | | | | Lanczos for general case, sinc for upscaling, Gaussian for downscaling. According to current literature these scalers should be the best quality-wise algorithms for each case. Inspired from a patch by wm4 <nfxjfg@googlemail.com> Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* | swscale/options: switch default to bicubicMichael Niedermayer2013-10-062-2/+2
| | | | | | | | | | Suggested-by: Ronald S. Bultje Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | swscale/utils: dont divide by zero with zero vectorsMichael Niedermayer2013-10-011-0/+4
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | swscale: make bilinear scaling the defaultwm42013-09-301-1/+1
| | | | | | | | | | | | | | | | | | Before this commit, sws_init_context() failed with an error if no scaler was explicitly set. Defaulting to something reasonable is better behavior. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | swscale/swscale_unscaled: fix alpha values for rgb/bgr -> RGB32_1 / BGR32_1Michael Niedermayer2013-09-191-1/+6
| | | | | | | | | | Found-by: Justin Ruggles Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | swscale/utils: remove redundant NULL checks before sws_freeVec()Michael Niedermayer2013-09-171-8/+4
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | swscale/utils: simplify cpu caps printing codeMichael Niedermayer2013-09-171-6/+8
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | swscale/utils: Simplify scaler name printing codeMichael Niedermayer2013-09-171-13/+15
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | swscale/utils: Allow sws_setColorspaceDetails() to use the tables from ↵Michael Niedermayer2013-09-171-2/+2
| | | | | | | | | | | | | | | | | | sws_getColorspaceDetails() Previously this would have lead to a memcpy(a,a) which violates the requirement of non overlapping src and dst. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | swscale/yuv2rgb: make sure yuvTable is set to NULL after deallocationMichael Niedermayer2013-09-161-2/+1
| | | | | | | | | | | | ensures no stale pointers remain Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge remote-tracking branch 'qatar/master'Michael Niedermayer2013-09-111-1/+1
|\| | | | | | | | | | | | | * qatar/master: Drop pointless directory name prefixes from #includes in the current dir Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * Drop pointless directory name prefixes from #includes in the current dirDiego Biurrun2013-09-101-1/+1
| |
| * ppc: don't return a value from a function declared voidSean McGovern2013-08-301-1/+1
| | | | | | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* | swscale/utils: use memcpy instead of loop in sws_cloneVec()Michael Niedermayer2013-09-081-3/+1
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Reinstate proper FFmpeg license for all files.Thilo Borgmann2013-08-304-16/+16
| |
* | Merge commit '79aec43ce813a3e270743ca64fa3f31fa43df80b'Michael Niedermayer2013-08-301-6/+4
|\| | | | | | | | | | | | | * commit '79aec43ce813a3e270743ca64fa3f31fa43df80b': x86: Add and use more convenience macros to check CPU extension availability Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * x86: Add and use more convenience macros to check CPU extension availabilityDiego Biurrun2013-08-291-6/+4
| |
* | ppc: don't return a value from a function declared voidSean McGovern2013-08-301-1/+1
| | | | | | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* | Merge commit 'a6b650118543e1580e872896d8976042b7c32d01'Michael Niedermayer2013-08-301-2/+5
|\| | | | | | | | | | | | | * commit 'a6b650118543e1580e872896d8976042b7c32d01': ppc: cosmetics: Consistently format CPU flag detection invocations Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * ppc: cosmetics: Consistently format CPU flag detection invocationsDiego Biurrun2013-08-291-2/+5
| |
* | Merge remote-tracking branch 'qatar/master'Michael Niedermayer2013-08-291-6/+6
|\| | | | | | | | | | | | | * qatar/master: cosmetics: Place arch initialization calls in alphabetical order Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * cosmetics: Place arch initialization calls in alphabetical orderDiego Biurrun2013-08-291-6/+6
| |
* | Merge commit '1909f6b1b6da2db371c179bed5a19aaf979b7557'Michael Niedermayer2013-08-296-37/+37
|\| | | | | | | | | | | | | | | | | | | * commit '1909f6b1b6da2db371c179bed5a19aaf979b7557': swscale: cosmetics: Drop silly camelCase from swScale function pointer name Conflicts: libswscale/swscale_unscaled.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * swscale: cosmetics: Drop silly camelCase from swScale function pointer nameDiego Biurrun2013-08-296-35/+35
| |
* | Merge commit '4e0799a4d04404abfa8fbc072640be76465158cf'Michael Niedermayer2013-08-293-4/+7
|\| | | | | | | | | | | | | * commit '4e0799a4d04404abfa8fbc072640be76465158cf': swscale: Add some missing av_cold to arch-specific init functions Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * swscale: Add some missing av_cold to arch-specific init functionsDiego Biurrun2013-08-293-4/+7
| |
* | Merge commit '3aa682f25324d811ec284edc808eb71a46eae950'Michael Niedermayer2013-08-296-10/+9
|\| | | | | | | | | | | | | * commit '3aa682f25324d811ec284edc808eb71a46eae950': swscale: consistent names for arch-specific acceleration functions Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * swscale: consistent names for arch-specific acceleration functionsDiego Biurrun2013-08-296-10/+9
| |
* | Merge commit 'c2503d9c8ab42ea55922e9f5a10c8bfbbbfeaf19'Michael Niedermayer2013-08-299-25/+51
|\| | | | | | | | | | | | | | | | | | | * commit 'c2503d9c8ab42ea55922e9f5a10c8bfbbbfeaf19': swscale: ppc: Hide arch-specific initialization details Conflicts: libswscale/utils.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * swscale: ppc: Hide arch-specific initialization detailsDiego Biurrun2013-08-299-25/+51
| | | | | | | | Also give consistent names to init functions.
* | Merge commit 'a519583991c38d38503ab08357716513facc5725'Michael Niedermayer2013-08-298-19/+19
|\| | | | | | | | | | | | | | | | | | | | | * commit 'a519583991c38d38503ab08357716513facc5725': swscale: x86: Hide arch-specific initialization details Conflicts: libswscale/x86/Makefile libswscale/x86/swscale.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * swscale: x86: Hide arch-specific initialization detailsDiego Biurrun2013-08-288-19/+19
| | | | | | | | Also give consistent names to init functions.
* | Merge commit 'f61bece684d9685b07895508e6c1c733b5564ccf'Michael Niedermayer2013-08-291-7/+6
|\| | | | | | | | | | | | | | | | | | | * commit 'f61bece684d9685b07895508e6c1c733b5564ccf': ppc: Add and use convenience macro to check for AltiVec availability Conflicts: libavcodec/ppc/dsputil_ppc.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * ppc: Add and use convenience macro to check for AltiVec availabilityDiego Biurrun2013-08-281-7/+6
| |
* | swscale: improve dither checksMichael Niedermayer2013-08-192-12/+16
| | | | | | | | | | | | Bssed on patch by Øyvind Kolås <pippin@gimp.org> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | swscale: set dither to a specific value for rgb/bgr8 outputMichael Niedermayer2013-08-191-0/+2
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | swscale: change ff_dither_8x8_128 dimensions to be consistent with the othersMichael Niedermayer2013-08-162-2/+3
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge commit 'aa2ba8c99e5708884a56aea9c1d96e014866f8a3'Michael Niedermayer2013-08-165-59/+59
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'aa2ba8c99e5708884a56aea9c1d96e014866f8a3': swscale: Move extern declarations for tables to swscale_internal.h Conflicts: libswscale/output.c libswscale/swscale_internal.h libswscale/swscale_unscaled.c libswscale/utils.c libswscale/yuv2rgb.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * swscale: Move extern declarations for tables to swscale_internal.hDiego Biurrun2013-08-156-40/+40
| | | | | | | | Also add missing ff_ prefixes where necessary.
* | Merge commit 'd258531502b24cb653204fe4f003c8815755bdc4'Michael Niedermayer2013-08-163-4/+3
|\| | | | | | | | | | | | | | | | | | | * commit 'd258531502b24cb653204fe4f003c8815755bdc4': swscale: Mark a bunch of tables only used within one file static Conflicts: libswscale/swscale_unscaled.c Merged-by: Michael Niedermayer <michaelni@gmx.at>