summaryrefslogtreecommitdiff
path: root/libswscale/utils.c
Commit message (Collapse)AuthorAge
...
* | swscale/utils: fix rgb -> fullrange yuvMichael Niedermayer2014-07-19
| | | | | | | | | | | | Fixes part of Ticket3785 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | swscale/utils: remove unused defineMichael Niedermayer2014-07-19
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | sws/x86: split mmxext fast bilinear scaler outMichael Niedermayer2014-07-19
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | swscale: Allow the max filter size to be set at compile timeDerek Buitenhuis2014-06-13
| | | | | | | | | | | | This can help "extreme" resizes, e.g with some 4k stuff. Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
* | sws: document color range >8bit oddityMichael Niedermayer2014-05-21
| |
* | swscale/utils: Add check that ensures that the hardcoded struct offsets are ↵Michael Niedermayer2014-05-14
| | | | | | | | | | | | valid Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | swscale/utils: use FF_ALLOC(Z)_ARRAY_OR_GOTO() and av_malloc(z)_array()Michael Niedermayer2014-05-04
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge commit '3a177a9cca924e097265b32f9282814f6b653e08'Michael Niedermayer2014-05-03
|\| | | | | | | | | | | | | * commit '3a177a9cca924e097265b32f9282814f6b653e08': swscale: Fix an undefined behaviour Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * swscale: Fix an undefined behaviourLuca Barbato2014-05-03
| | | | | | | | | | | | | | | | Prevent a division by zero down the codepath. Sample-Id: 00001721-google Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
* | swscale/utils: fix changing src/dst range after initializing the contextMichael Niedermayer2014-04-15
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | swscale/utils: move handling of unscaled case to the end of init functionMichael Niedermayer2014-04-14
| | | | | | | | | | | | This way all context fields get initialized and can be used without needing to reinit the context Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge commit '92b099daf4b8ef93513e38b43899cb8458a2fde3'Michael Niedermayer2014-04-09
|\| | | | | | | | | | | | | | | | | | | * commit '92b099daf4b8ef93513e38b43899cb8458a2fde3': swscale: support converting YVYU422 pixel format Conflicts: libswscale/input.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * swscale: support converting YVYU422 pixel formatVittorio Giovara2014-04-07
| |
* | swscale/utils: scale filter_size in warning so that it can be used as max ↵Michael Niedermayer2014-04-09
| | | | | | | | | | | | for the compile time define Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | swscale/utils: dont print message about filter size when the cause is a ↵Michael Niedermayer2014-04-09
| | | | | | | | | | | | malloc failure Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | swscale: add full bgra64 supportMichael Niedermayer2014-04-02
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge commit '0ca0924c10d9617a5793964bf79655424ef32b68'Michael Niedermayer2014-04-02
|\| | | | | | | | | | | | | | | | | | | | | * commit '0ca0924c10d9617a5793964bf79655424ef32b68': swscale: add endianness conversion for AV_PIX_FMT_BGRA64|RGBA64 Conflicts: libswscale/swscale_unscaled.c libswscale/utils.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * swscale: add endianness conversion for AV_PIX_FMT_BGRA64|RGBA64Janne Grunau2014-04-02
| |
| * RGBA64 pixel formatsJean First2014-03-16
| | | | | | | | Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* | Do not set swscale sizeFactor to -1.Carl Eugen Hoyos2014-03-25
| | | | | | | | Fixes ticket #3495.
* | swscale: add two spatially stable dithering methodsØyvind Kolås2014-03-25
| | | | | | | | | | | | | | | | | | | | | | | | | | Both of these dithering methods are from http://pippin.gimp.org/a_dither/ for GIF they can be considered better than bayer (provides more gray-levels), and spatial stability - often more than twice as good compression and less visual flicker than error diffusion methods (the methods also avoids error-shadow artifacts of diffusion dithers). These methods are similar to blue/green noise type dither masks; but are simple enough to generate their mask on the fly. They are still research work in progress; though more expensive to generate masks (which can be used in a LUT) like 'void and cluster' and similar methods will yield superior results
* | swscale/utils: Fix color range of gray16Carl Eugen Hoyos2014-03-18
| | | | | | | | | | | | | | | | | | | | | | Improves rgb -> gray16 conversion Fixes Ticket3422 The pam and png output files look visually similar, in both cases the dynamics increase to 0x0 -> 0xfffb. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | libswscale: bayer to rgb24 & yv12 colorspace convertersPeter Ross2014-02-23
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | swscale/utils: fix wrong deprecated message with rgb0Michael Niedermayer2013-12-24
| | | | | | | | | | Fixes Ticket3242 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | swscale/utils: check chroma width for fast bilinear scalerMichael Niedermayer2013-12-15
| | | | | | | | | | | | Fixes artifacts where fast bilinear was used for downscaling chroma Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | swscale/utils: remove useless ()Michael Niedermayer2013-12-15
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | swscale/utils: factor (d + 1 < 4) outMichael Niedermayer2013-12-15
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | swscale/utils: fill xyz tables only when they will be usedMichael Niedermayer2013-12-07
| | | | | | | | | | | | makes the first call to sws_getContext() 1ms faster Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | lsws/utils: introduce scale_algorithms arrayStefano Sabatini2013-11-05
| | | | | | | | Allow some dumb factorizations, slightly decrease spaghetti factor.
* | lsws/utils: fix typoStefano Sabatini2013-11-05
| |
* | lsws: use av_pix_fmt_get_chroma_sub_sample()Stefano Sabatini2013-10-24
| | | | | | | | Remove duplicated getSubSampleFactors() function. Simplify.
* | swscale/utils: check mprotect() return codeMichael Niedermayer2013-10-23
| | | | | | | | | | Found-by: wm4 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | swscale/utils/sws_setColorspaceDetails(): fix indentionMichael Niedermayer2013-10-17
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | swscale: Use full resolution chroma for yuv2rgb when the input has full chromaMichael Niedermayer2013-10-10
| | | | | | | | | | | | See Ticket3028 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge commit '6b3ff6f91a535d6383f41ca7bdf760165dcb6015'Michael Niedermayer2013-10-06
|\| | | | | | | | | | | | | | | | | | | | | | | | | * 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-05
| | | | | | | | | | | | | | | | | | | | 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-01
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | swscale/utils: remove redundant NULL checks before sws_freeVec()Michael Niedermayer2013-09-17
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | swscale/utils: simplify cpu caps printing codeMichael Niedermayer2013-09-17
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | swscale/utils: Simplify scaler name printing codeMichael Niedermayer2013-09-17
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | swscale/utils: Allow sws_setColorspaceDetails() to use the tables from ↵Michael Niedermayer2013-09-17
| | | | | | | | | | | | | | | | | | 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-08
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge commit '79aec43ce813a3e270743ca64fa3f31fa43df80b'Michael Niedermayer2013-08-30
|\| | | | | | | | | | | | | * 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-29
| |
* | Merge commit '1909f6b1b6da2db371c179bed5a19aaf979b7557'Michael Niedermayer2013-08-29
|\| | | | | | | | | | | | | | | | | | | * 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-29
| |
* | Merge commit 'c2503d9c8ab42ea55922e9f5a10c8bfbbbfeaf19'Michael Niedermayer2013-08-29
|\| | | | | | | | | | | | | | | | | | | * 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-29
| | | | | | | | Also give consistent names to init functions.
* | Merge commit 'f61bece684d9685b07895508e6c1c733b5564ccf'Michael Niedermayer2013-08-29
|\| | | | | | | | | | | | | | | | | | | * 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-28
| |