summaryrefslogtreecommitdiff
path: root/libswscale/utils.c
Commit message (Collapse)AuthorAge
* swscale: fix filter alignment reduction without inline asmHendrik Leppkes2013-06-21
| | | | | | | | 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-21
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* swscale: RGBA64 outputPaul B Mahol2013-05-12
| | | | | 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-12
| | | | | | This reverts commit 23f7b14f2851d1d1a969c12b7e337826f0c74a43. This commit broke fate
* sws: support endianness conversion for AV_PIX_FMT_RGBA64Paul B Mahol2013-05-12
| | | | 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-09
|
* libswscale: GBRAP input & output and GBRAP16 input supportPaul B Mahol2013-05-08
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* Merge commit '9cfa21c8c2b81146aab574f55c93f27e5c2d435c'Michael Niedermayer2013-05-07
|\ | | | | | | | | | | | | | | | | | | | | * 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-06
| |
* | Merge commit 'c1eb3e7fecdc270e03a700d61ef941600a6af491'Michael Niedermayer2013-05-07
|\| | | | | | | | | | | | | | | | | | | | | * 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-06
| | | | | | | | Use bitfields in FormatEntry array to avoid wasting an int for each flag.
* | Merge commit '2b677ffca54a5fbef9c8860841c32f28ecd68f70'Michael Niedermayer2013-05-05
|\| | | | | | | | | | | | | | | | | | | * 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-04
| |
| * swscale: Disallow conversion to GBRP16Martin Storsjö2013-02-11
| | | | | | | | | | | | | | | | | | | | | | | | | | 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-05
| | | | | | | | | | | | | | 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-03
| | | | | | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* | sws: share xyzgamma tables.Michael Niedermayer2013-05-01
| | | | | | | | | | | | | | | | 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-28
| | | | | | | | | | 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-28
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | sws: enable xyz12, this for now is just for swaping between le and beMichael Niedermayer2013-04-28
| | | | | | | | | | | | 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-16
| | | | | | | | | | | | Fixes "20bpp not supported by yuv2rgb" warning Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | sws/fill_rgb2yuv_table: use ROUNDED_DIVMichael Niedermayer2013-04-16
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | sws/fill_rgb2yuv_table: increase precission to 32bitMichael Niedermayer2013-04-16
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | sws/fill_rgb2yuv_table: avoid 2 divisionsMichael Niedermayer2013-04-16
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | sws/x86: update RENAME(rgb24toyv12)() to using the user provided rgb2yuv tableMichael Niedermayer2013-04-15
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | sws/x86: update rgba->yuv to use user supplied tableMichael Niedermayer2013-04-15
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | sws/x86: update rgb/bgr->yuv code to use provided coefficient tableMichael Niedermayer2013-04-15
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | sws: init input_rgb2yuv_table depending on yuv colorspaceMichael Niedermayer2013-04-15
| | | | | | | | | | | | | | | | 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-10
|\| | | | | | | | | | | | | | | | | | | * 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-09
| | | | | | | | | | | | | | | | 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>
* | Merge commit 'd6d5ef5534d582f9dbaf18ac2605cf5bb72cd821'Michael Niedermayer2013-02-10
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'd6d5ef5534d582f9dbaf18ac2605cf5bb72cd821': sws: GBRP9, GBRP10, and GBRP16 output support Conflicts: libswscale/output.c libswscale/utils.c tests/ref/lavfi/pixdesc tests/ref/lavfi/pixfmts_copy tests/ref/lavfi/pixfmts_null tests/ref/lavfi/pixfmts_scale tests/ref/lavfi/pixfmts_vflip Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * sws: GBRP9, GBRP10, and GBRP16 output supportMichael Niedermayer2013-02-09
| | | | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at> Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
* | Merge commit '05b0998f511ffa699407465d48c7d5805f746ad2'Michael Niedermayer2013-01-28
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '05b0998f511ffa699407465d48c7d5805f746ad2': dsputil: Fix error by not using redzone and register name swscale: GBRP output support Conflicts: libswscale/output.c libswscale/swscale.c libswscale/swscale_internal.h libswscale/utils.c tests/ref/lavfi/pixdesc tests/ref/lavfi/pixfmts_copy tests/ref/lavfi/pixfmts_null tests/ref/lavfi/pixfmts_scale tests/ref/lavfi/pixfmts_vflip Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * swscale: GBRP output supportMichael Niedermayer2013-01-27
| | | | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at> Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
* | sws: dont enable chrSrcHSubSample for planar RGBMichael Niedermayer2013-01-26
| | | | | | | | | | | | | | This code path is not implemented and makes not much sense to implement either. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | sws: GBRP9, GBRP10 GBRP12 GBRP14 output supportMichael Niedermayer2013-01-26
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | sws: GBRP output supportMichael Niedermayer2013-01-26
| | | | | | | | | | Reviewed-by: Derek Buitenhuis <derek.buitenhuis@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | sws: Check for unsupported combination of ED/FULL_CHR flagsMichael Niedermayer2013-01-19
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | sws: Enable full chroma resolution when needed for ED ditherMichael Niedermayer2013-01-19
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | sws: rgb/bgr 4/8 error diffusion ditherMichael Niedermayer2013-01-19
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | sws: Support error diffusion dither for mono outputMichael Niedermayer2013-01-18
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge remote-tracking branch 'qatar/master'Michael Niedermayer2013-01-05
|\| | | | | | | | | | | | | | | | | | | | | | | | | * qatar/master: swscale: fix NULL checking in sws_alloc_context() mxfdec: fix NULL checking in mxf_get_sorted_table_segments() finalize changelog for version 9 Conflicts: Changelog libavformat/mxfdec.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * swscale: fix NULL checking in sws_alloc_context()Xi Wang2013-01-04
| | | | | | | | | | | | | | | | | | | | | | | | | | sws_getCachedContext() and sws_getContext() expect sws_alloc_context() to return NULL when out of memory, as follows. if (!(context = sws_alloc_context())) return NULL; This patch fixes sws_alloc_context() to return NULL in that case. Signed-off-by: Xi Wang <xi.wang@gmail.com> Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
* | Merge commit 'fa8fcab1e0d31074c0644c4ac5194474c6c26415'Michael Niedermayer2012-11-01
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'fa8fcab1e0d31074c0644c4ac5194474c6c26415': x86: h264_chromamc_10bit: drop pointless PAVG %define x86: mmx2 ---> mmxext in function names swscale: do not forget to swap data in formats with different endianness Conflicts: libavcodec/x86/dsputil_mmx.c libavfilter/x86/gradfun.c libswscale/input.c libswscale/utils.c libswscale/x86/swscale.c tests/ref/lavfi/pixfmts_scale Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * x86: mmx2 ---> mmxext in function namesDiego Biurrun2012-10-31
| |
* | Merge commit 'a65bdceb060628881578afb29df4eb222421381f'Michael Niedermayer2012-10-31
|\| | | | | | | | | | | | | | | | | | | * commit 'a65bdceb060628881578afb29df4eb222421381f': x86: mmx2 ---> mmxext in variable names Conflicts: libswscale/utils.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * x86: mmx2 ---> mmxext in variable namesDiego Biurrun2012-10-31
| |
* | Merge commit '652f5185945c8405fc57aed353286858df8d066f'Michael Niedermayer2012-10-31
|\| | | | | | | | | | | | | | | | | | | * commit '652f5185945c8405fc57aed353286858df8d066f': x86: mmx2 ---> mmxext in comments and messages Conflicts: libswscale/x86/swscale_template.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * x86: mmx2 ---> mmxext in comments and messagesDiego Biurrun2012-10-31
| |
* | Merge remote-tracking branch 'qatar/master'Michael Niedermayer2012-10-30
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * qatar/master: pixfmt: support more yuva formats swscale: support gray to 9bit and 10bit formats configure: rewrite print_config() function using awk FATE: fix (AD)PCM test dependencies broken in e519990 Use ptrdiff_t instead of int for intra pred "stride" function parameter. x86: use PRED4x4/8x8/8x8L/16x16 macros to declare intrapred prototypes. Conflicts: libavcodec/h264pred.c libavcodec/h264pred_template.c libavutil/pixfmt.h libswscale/swscale_unscaled.c tests/ref/lavfi/pixdesc tests/ref/lavfi/pixfmts_copy tests/ref/lavfi/pixfmts_null tests/ref/lavfi/pixfmts_scale tests/ref/lavfi/pixfmts_vflip Merged-by: Michael Niedermayer <michaelni@gmx.at>