aboutsummaryrefslogtreecommitdiffstats
path: root/libswscale/utils.c
Commit message (Collapse)AuthorAgeFilesLines
...
| * 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.
* | Merge commit '2b677ffca54a5fbef9c8860841c32f28ecd68f70'Michael Niedermayer2013-05-051-8/+9
|\| | | | | | | | | | | | | | | | | | | * commit '2b677ffca54a5fbef9c8860841c32f28ecd68f70': swscale: Add av_cold attributes to init functions missing them Conflicts: libswscale/utils.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * swscale: Add av_cold attributes to init functions missing themDiego Biurrun2013-05-041-8/+9
| |
| * swscale: Disallow conversion to GBRP16Martin Storsjö2013-02-111-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | This reverts parts of d6d5ef5534d582, that didn't work right. (The tests that were added failed on big endian, and the output looked garbled on little endian as well.) This is due to the fact that the intermediate scaling values (from e.g. hScale8To19_c or hScale16To19_c) are stored as int32_t and thus requires a separate output function, while yuv2gbrp_full_X_c only interprets it as int16_t. Signed-off-by: Martin Storsjö <martin@martin.st>
* | Avoid incorrect deprecated pixel format warning.Reimar Döffinger2013-05-051-1/+2
| | | | | | | | | | | | | | Should only be printed if a "JPEG" format was used, not for e.g. XYZ. Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
* | lavu: add planar 16 bit and 8 bit rgb with alphaPaul B Mahol2013-05-031-0/+3
| | | | | | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* | sws: share xyzgamma tables.Michael Niedermayer2013-05-011-3/+10
| | | | | | | | | | | | | | | | They are currently always constant and thus theres no point to store them in the context. This makes the context 16kb smaller Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | sws: support xyz inputMichael Niedermayer2013-04-281-0/+37
| | | | | | | | | | The implementation is heavily based on Matthias Buerchers and Nicolas Bertrands vf_xyz2rgb.c Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | sws: remove hack to support partial convert / xyz bswapingMichael Niedermayer2013-04-281-2/+0
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | sws: enable xyz12, this for now is just for swaping between le and beMichael Niedermayer2013-04-281-0/+2
| | | | | | | | | | | | Needed for fixing fate Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | sws: Skip ff_yuv2rgb_c_init_tables() when the output is YUVMichael Niedermayer2013-04-161-0/+2
| | | | | | | | | | | | Fixes "20bpp not supported by yuv2rgb" warning Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | sws/fill_rgb2yuv_table: use ROUNDED_DIVMichael Niedermayer2013-04-161-14/+14
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | sws/fill_rgb2yuv_table: increase precission to 32bitMichael Niedermayer2013-04-161-13/+17
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | sws/fill_rgb2yuv_table: avoid 2 divisionsMichael Niedermayer2013-04-161-2/+2
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | sws/x86: update RENAME(rgb24toyv12)() to using the user provided rgb2yuv tableMichael Niedermayer2013-04-151-2/+12
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | sws/x86: update rgba->yuv to use user supplied tableMichael Niedermayer2013-04-151-0/+12
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | sws/x86: update rgb/bgr->yuv code to use provided coefficient tableMichael Niedermayer2013-04-151-0/+19
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | sws: init input_rgb2yuv_table depending on yuv colorspaceMichael Niedermayer2013-04-151-1/+53
| | | | | | | | | | | | | | | | For the default table we keep using the exact previous coefficients, this way individual functions can be updated seperately without breaking fate Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge commit '7b41c24c5fa221b55a9302efaf1a9eeb38b12551'Michael Niedermayer2013-02-101-0/+1
|\| | | | | | | | | | | | | | | | | | | * commit '7b41c24c5fa221b55a9302efaf1a9eeb38b12551': sws: dont enable chrSrcHSubSample for planar RGB Conflicts: libswscale/utils.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * sws: dont enable chrSrcHSubSample for planar RGBMichael Niedermayer2013-02-091-0/+3
| | | | | | | | | | | | | | | | This code path is not implemented and makes not much sense to implement either. Signed-off-by: Michael Niedermayer <michaelni@gmx.at> Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>