summaryrefslogtreecommitdiff
path: root/libswscale/utils.c
Commit message (Collapse)AuthorAge
...
* | swscale: rename sws_rgb2rgb_init to ff_sws_rgb2rgb_initAndreas Cadhalpun2015-10-29
| | | | | | | | | | | | | | It is an internal swscale function and thus should not be exported. Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
* | swscale: rename sws_context_class to ff_sws_context_classAndreas Cadhalpun2015-10-29
| | | | | | | | | | | | | | It is an internal swscale symbol and thus should not be exported. Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
* | all: add _DEFAULT_SOURCE locally wherever neededGanesh Ajjanagadde2015-10-04
| | | | | | | | | | | | | | | | | | Glibc 2.20 onwards generates a deprecation warning for usage of _BSD_SOURCE and _SVID_SOURCE. The solution from man feature_test_macros is to define both _DEFAULT_SOURCE and the old macros. This solution is on the lines of the one in commit af1818276ef271af98e2e2bbabb4dc875b4fa7d8. Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com> Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* | swscale: Forward colorspace updates to the 2nd cascaded context in case of ↵Michael Niedermayer2015-09-10
| | | | | | | | | | | | | | | | alphablend The first just does the blending and wouldnt do anything with the colorspace values Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | swscale/utils: Forward luma range to the cascaded context for alphablendingMichael Niedermayer2015-09-10
| | | | | | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | swscale/utils: handle gray+alpha formats like gray for luma rangesMichael Niedermayer2015-09-10
| | | | | | | | | | | | Its illogic to handle gray differently depending on the existence of an alpha channel Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | swscale/utils: If the source has no alpha then disable alpha blendawayMichael Niedermayer2015-09-10
| | | | | | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | Replace all remaining occurances of step/depth_minus1 and offset_plus1Hendrik Leppkes2015-09-08
| |
* | Merge commit '2268db2cd052674fde55c7d48b7a5098ce89b4ba'Hendrik Leppkes2015-09-08
|\| | | | | | | | | | | | | * commit '2268db2cd052674fde55c7d48b7a5098ce89b4ba': lavu: Drop the {minus,plus}1 suffix from AVComponentDescriptor fields Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
| * lavu: Drop the {minus,plus}1 suffix from AVComponentDescriptor fieldsVittorio Giovara2015-09-07
| | | | | | | | | | | | The new fields can be accessed directly and are more intelligible. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* | swscale: re-enable gammaPedro Arthur2015-09-04
| | | | | | | | +added gamma conversion to refactored code
* | swscale/utils: If cascaded contexts are used forward ↵Michael Niedermayer2015-08-31
| | | | | | | | | | | | sws_setColorspaceDetails() to the first context Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | swscale/utils: Split scaling if possible and yuv->yuv with different ↵Michael Niedermayer2015-08-31
| | | | | | | | | | | | | | | | | | | | | | matrixes is requested This uses a RGB intermediate, a more optimal solution would be to perform the rematrixing directly in subsampled YUV, this is quite a bit more complicated though Fixes Ticket4805 Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | swscale: refactor horizontal scalingPedro Arthur2015-08-18
| | | | | | | | | | | | | | + split color conversion from scaling - disabled gamma correction, until it's refactored too Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | swscale/alphablend: Support chroma subsamplingMichael Niedermayer2015-08-09
| | | | | | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | swscale/alphablend: support packed pixel formatsMichael Niedermayer2015-08-09
| | | | | | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | swscale: Implement alphablendaway for planar 4:4:4 formatsMichael Niedermayer2015-08-08
| | | | | | | | | | | | Fixes Ticket4746 Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | swscale: Add sws_alloc_set_opts()Michael Niedermayer2015-08-08
| | | | | | | | | | | | | | This simplifies allocating and initializing swscale contexts with custom options. The function is internal currently but could be moved into the public header Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | swscale: ayuv64le output supportPaul B Mahol2015-07-24
| | | | | | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* | swscale: ayuv64le input supportPaul B Mahol2015-07-24
| | | | | | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* | swscale/utils: Clear pix buffersMichael Niedermayer2015-07-15
| | | | | | | | | | | | | | | | Fixes use of uninitialized memory Fixes: a96874b9466b6edc660a519c7ad47977_signal_sigsegv_7ffff713351a_744_nc_sample.avi with memlimit 2147483648 Found-by: Samuel Groß, Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | swscale: implement YA8 outputPaul B Mahol2015-07-02
| | | | | | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* | swscale/output: Add rgba64/rgb48/bgra64/bgr48 output functions with full ↵Michael Niedermayer2015-06-17
| | | | | | | | | | | | chroma interpolation Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Mark vectors as NAN instead of dereferencing NULL pointers on malloc failureMichael Niedermayer2015-06-12
| | | | | | | | | | Found-by: Daemon404 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | swscale: Assert that pixel format descriptor is not NULLMichael Niedermayer2015-06-12
| | | | | | | | | | | | | | This may help static analyzers, the pixel format is checked during initialization Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | swscale: add yuv440p10/12 pixfmts.Ronald S. Bultje2015-05-06
| |
* | swscale/swscale: Get rid of the SWS_GAMMA_CORRECT flagMichael Niedermayer2015-04-23
| | | | | | | | | | | | This avoids using up a bit of the public flags Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Add gamma encodign/decoding before/after scaling in libswscalePedro Arthur2015-04-23
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge commit '7ebb3022297aa00afda6800105684b8303f2608e'Michael Niedermayer2015-03-22
|\| | | | | | | | | | | | | * commit '7ebb3022297aa00afda6800105684b8303f2608e': swscale: Check memory allocation Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * swscale: Check memory allocationFederico Tomassetti2015-03-21
| | | | | | | | | | | | | | Bug-Id: CID 1267890 CC: libav-stable@libav.org Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* | swscale/utils: Fix undefined shift in initFilter()Michael Niedermayer2015-03-11
| | | | | | | | | | | | Found-by: Clang -fsanitize=shift Reported-by: Thierry Foucu <tfoucu@google.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | swscale/utils: clear formatConvBuffer on allocationMichael Niedermayer2015-02-27
| | | | | | | | | | | | | | | | Fixes use of uninitialized memory Fixes: asan_heap-oob_35ca682_1474_cov_3230122439_aletrek_tga_16bit.mov Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | swscale/utils: add asserts to check filterposMichael Niedermayer2015-02-24
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | swscale/utils: More carefully merge and clear coefficients outside the inputMichael Niedermayer2015-02-24
| | | | | | | | | | | | | | | | Fixes out of array read Fixes: asan_heap-oob_35ca682_1474_cov_3230122439_aletrek_tga_16bit.mov Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge commit 'e51f22122d23589e93ac4f0b3e570bb925755915'Michael Niedermayer2015-02-17
|\| | | | | | | | | | | | | * commit 'e51f22122d23589e93ac4f0b3e570bb925755915': swscale: Check memory allocations Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * swscale: Check memory allocationsFederico Tomassetti2015-02-17
| | | | | | | | | | | | CC: libav-stable@libav.org Bug-Id: CID 1267888 / CID 1267890 Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* | swscale/utils: Limit filter shifting so as not to read from prior the arrayMichael Niedermayer2015-02-05
| | | | | | | | | | | | | | | | Fixes out of array read Fixes: asan_heap-oob_1fb2f9b_3780_cov_3984375136_usf.mkv Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge commit '928061670e873e816daa14827853b7e11221ff5f'Michael Niedermayer2015-01-15
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '928061670e873e816daa14827853b7e11221ff5f': libswscale: GBRAP input & output and GBRAP16 input support Conflicts: libswscale/input.c libswscale/swscale_internal.h libswscale/swscale_unscaled.c libswscale/utils.c tests/ref/fate/filter-pixdesc-gbrap tests/ref/fate/filter-pixfmts-copy tests/ref/fate/filter-pixfmts-null tests/ref/fate/filter-pixfmts-scale tests/ref/fate/filter-pixfmts-vflip See: 5c057433ccd32f37ddc828d3f82c5b1ad7d3e3db Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * libswscale: GBRAP input & output and GBRAP16 input supportPaul B Mahol2015-01-14
| | | | | | | | Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* | swscale: Pass through chroma positions in sws_getCachedContextKieran Kunhya2014-12-26
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | swscale/utils: support bayer input + scaling, and bayer input + any ↵Michael Niedermayer2014-11-12
| | | | | | | | | | | | | | | | supported output Fixes Ticket4053 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | swscale: support internal scaler cascadesMichael Niedermayer2014-10-11
| | | | | | | | | | | | Fixes Ticket3170 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | swscale: remove obsolete FF_API_SWS_FORMAT_NAME cruftJames Almer2014-10-05
| | | | | | | | Signed-off-by: James Almer <jamrial@gmail.com>
* | swscale: Allow chroma samples to be above and to the left of luma samplesMichael Niedermayer2014-09-21
| | | | | | | | | | Found-by: Kierank Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge commit 'bb789016d423d2cfacd2904ac66257bdf7f0964e'Michael Niedermayer2014-08-07
|\| | | | | | | | | | | | | | | | | | | * commit 'bb789016d423d2cfacd2904ac66257bdf7f0964e': swscale: Undeprecate sws_getContext() Conflicts: libswscale/version.h Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * swscale: Undeprecate sws_getContext()Diego Biurrun2014-08-07
| | | | | | | | sws_getCachedContext is not a full replacement for the function.
* | Merge commit 'f84a1b597c29dc035b8d5529ef88c2d7ff057820'Michael Niedermayer2014-08-04
|\| | | | | | | | | | | | | | | | | | | * commit 'f84a1b597c29dc035b8d5529ef88c2d7ff057820': swscale: support AV_PIX_FMT_YA16 as input Conflicts: libswscale/swscale_unscaled.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * swscale: support AV_PIX_FMT_YA16 as inputVittorio Giovara2014-08-04
| | | | | | | | Based on a long debug session with Kostya.
* | Merge commit 'e96c3b81cadd0ba84d43b1f3a54980df3785d9a5'Michael Niedermayer2014-08-04
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'e96c3b81cadd0ba84d43b1f3a54980df3785d9a5': avutil: rename AV_PIX_FMT_Y400A to AV_PIX_FMT_YA8 Conflicts: libavcodec/libopenjpegdec.c libavcodec/libopenjpegenc.c libavcodec/raw.c libavutil/pixdesc.c libavutil/pixfmt.h libavutil/version.h libswscale/swscale_internal.h libswscale/swscale_unscaled.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * avutil: rename AV_PIX_FMT_Y400A to AV_PIX_FMT_YA8Vittorio Giovara2014-08-04
| | | | | | | | | | | | | | The rationale is that you have a packed format in form <greyscale sample> <alpha sample> <greyscale sample> <alpha sample> and shortening greyscale to 'G' might make one thing about Greenscale instead. An alias pixel format and color space name are provided for compatibility.