aboutsummaryrefslogtreecommitdiffstats
path: root/libswscale/utils.c
Commit message (Collapse)AuthorAgeFilesLines
* lsws/utils: introduce scale_algorithms arrayStefano Sabatini2013-11-051-46/+40
| | | | Allow some dumb factorizations, slightly decrease spaghetti factor.
* lsws/utils: fix typoStefano Sabatini2013-11-051-1/+1
|
* 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/utils/sws_setColorspaceDetails(): fix indentionMichael Niedermayer2013-10-171-6/+6
| | | | 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/utils: dont divide by zero with zero vectorsMichael Niedermayer2013-10-011-0/+4
| | | | | | | | 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/utils: use memcpy instead of loop in sws_cloneVec()Michael Niedermayer2013-09-081-3/+1
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | 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
| |
* | Merge commit '1909f6b1b6da2db371c179bed5a19aaf979b7557'Michael Niedermayer2013-08-291-2/+2
|\| | | | | | | | | | | | | | | | | | | * 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-291-2/+2
| |
* | Merge commit 'c2503d9c8ab42ea55922e9f5a10c8bfbbbfeaf19'Michael Niedermayer2013-08-291-3/+3
|\| | | | | | | | | | | | | | | | | | | * 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-291-3/+3
| | | | | | | | 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-191-11/+15
| | | | | | | | | | | | 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>
* | Merge commit 'aa2ba8c99e5708884a56aea9c1d96e014866f8a3'Michael Niedermayer2013-08-161-2/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | * 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-151-2/+0
| | | | | | | | Also add missing ff_ prefixes where necessary.
* | sws: add dither enumMichael Niedermayer2013-08-151-4/+8
| | | | | | | | | | | | | | | | | | | | | | This allows specifying more dither algorithms without using up flags and without ambiguities. Also initialize the new field based on the flags and use it. Note, improving the logic of the checks is left to subsequent commits, this here only switches from flags to enum. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | swscale/utils: Fix potential overflow of srcPos*C before converting to 64bitMichael Niedermayer2013-08-081-3/+3
| | | | | | | | | | | | Fixes CID1061054 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | swscale/utils: Fix potential overflow of dstPos*xInc before converting to 64bitMichael Niedermayer2013-08-081-3/+3
| | | | | | | | | | | | Fixes CID1061053 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | swscale/fill_rgb2yuv_table: fix default detectionMichael Niedermayer2013-07-271-1/+1
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | swscale/sws_getColorspaceDetails: dont fail for non yuvMichael Niedermayer2013-07-251-1/+1
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | swscale: exchange src & dst chroma posMichael Niedermayer2013-07-241-3/+3
| | | | | | | | | | Found-by: wm4 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | libswscale: Adding RGB => XYZ supportclook2013-07-231-3/+14
| |
* | swscale: Add support to specify chroma positionMichael Niedermayer2013-07-171-9/+27
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | swscale: move default colorspace setup to sws_init_filter()Michael Niedermayer2013-07-161-13/+8
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | swscale: call handle_format() from the functions that need itMichael Niedermayer2013-07-141-17/+15
| | | | | | | | | | | | This should fix some hypothetical issues with alloc/init_context() usage Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | swscale: make handle_formats() safe to be called multiple timesMichael Niedermayer2013-07-141-4/+4
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | swscale: move format handling to its own functionMichael Niedermayer2013-07-141-8/+12
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | swscale: treat gray as a fullrage (0-255) formatMichael Niedermayer2013-07-081-0/+2
| | | | | | | | | | | | Fixes Ticket2684 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | swscale: fix filter alignment reduction without inline asmHendrik Leppkes2013-06-211-1/+1
| | | | | | | | | | | | | | | | Fixes scaling in MSVC/ICL, where inline asm is not present, but the YASM scaling code is. Reviewed-by: Derek Buitenhuis <derek.buitenhuis@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | add YUVJ411PMichael Niedermayer2013-05-211-0/+4
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | swscale: RGBA64 outputPaul B Mahol2013-05-121-2/+2
| | | | | | | | | | Signed-off-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Revert "sws: support endianness conversion for AV_PIX_FMT_RGBA64"Michael Niedermayer2013-05-121-2/+2
| | | | | | | | | | | | This reverts commit 23f7b14f2851d1d1a969c12b7e337826f0c74a43. This commit broke fate
* | sws: support endianness conversion for AV_PIX_FMT_RGBA64Paul B Mahol2013-05-121-2/+2
| | | | | | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* | lavu: add FF_CEIL_RSHIFT and use it in various places.Clément Bœsch2013-05-091-5/+5
| |
* | libswscale: GBRAP input & output and GBRAP16 input supportPaul B Mahol2013-05-081-3/+3
| | | | | | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* | Merge commit '9cfa21c8c2b81146aab574f55c93f27e5c2d435c'Michael Niedermayer2013-05-071-2/+2
|\| | | | | | | | | | | | | | | | | | | | | * commit '9cfa21c8c2b81146aab574f55c93f27e5c2d435c': swscale: support endianness conversion for AV_PIX_FMT_XYZ12 Conflicts: libswscale/swscale_unscaled.c libswscale/utils.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * swscale: support endianness conversion for AV_PIX_FMT_XYZ12Janne Grunau2013-05-061-0/+2
| |
* | Merge commit 'c1eb3e7fecdc270e03a700d61ef941600a6af491'Michael Niedermayer2013-05-071-1/+12
|\| | | | | | | | | | | | | | | | | | | | | * commit 'c1eb3e7fecdc270e03a700d61ef941600a6af491': swscale: add support for endianness only conversion Conflicts: libswscale/utils.c libswscale/version.h Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * swscale: add support for endianness only conversionJanne Grunau2013-05-061-1/+12
| | | | | | | | Use bitfields in FormatEntry array to avoid wasting an int for each flag.