summaryrefslogtreecommitdiff
path: root/libswscale
Commit message (Collapse)AuthorAgeFilesLines
* swscale/swscale: add av_warn_unused_result to sws_init_contextGanesh Ajjanagadde2015-10-161-0/+1
| | | | | | | This should not trigger any warnings; but adds robustness. Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
* swscale: fix ticket #4881Pedro Arthur2015-10-133-19/+22
| | | | | When scaling only a slice of a frame the output was written always in the first lines leaving the rest of the frame black.
* doc/scaler, swscale/options: use proper capitalizationGanesh Ajjanagadde2015-10-101-2/+2
| | | | | | | | | | | | | Proper names should be capitalized in all user facing API as far as possible. The option names themselves have not been changed since: 1. We consistently keep option names in lower case. 2. Changing them would break existing scripts. The converse is also true: improper names should not be capitalized generally. Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* all: add _DEFAULT_SOURCE locally wherever neededGanesh Ajjanagadde2015-10-041-0/+1
| | | | | | | | | 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: fix ticket #4877Pedro Arthur2015-09-251-11/+12
|
* swscale: fix ticket 4850Pedro Arthur2015-09-201-4/+4
|
* swscale/output: fix undefined left shifts of negative numbersGanesh Ajjanagadde2015-09-201-16/+16
| | | | | | | | This fixes -Wshift-negative-value reported with clang 3.7+, e.g http://fate.ffmpeg.org/log.cgi?time=20150918181527&log=compile&slot=x86_64-darwin-clang-polly-vectorize-stripmine-3.7. Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* libswscale/swscale: fix -Wunused-functionGanesh Ajjanagadde2015-09-181-0/+2
| | | | | | | | hyscale, hcscale are only used in old filter code, hence place header guard to silence -Wunused-function. Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* swscale/swscale: silence unused function warningGanesh Ajjanagadde2015-09-161-0/+2
| | | | | | | | gamma_convert is only used with the old code. Thus, it is placed under a header guard. This patch silences a -Wunused-function observed on GCC 5.2. Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
* swscale/swscale: Fix "unused variable" warningMichael Niedermayer2015-09-111-1/+1
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* swscale: Forward colorspace updates to the 2nd cascaded context in case of ↵Michael Niedermayer2015-09-102-2/+4
| | | | | | | | 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-101-3/+10
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* swscale/utils: handle gray+alpha formats like gray for luma rangesMichael Niedermayer2015-09-101-0/+3
| | | | | | 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-101-0/+4
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* swscale: use AV_OPT_TYPE_BOOLClément Bœsch2015-09-081-3/+1
|
* Replace all remaining occurances of step/depth_minus1 and offset_plus1Hendrik Leppkes2015-09-086-17/+17
|
* Merge commit '2268db2cd052674fde55c7d48b7a5098ce89b4ba'Hendrik Leppkes2015-09-085-15/+15
|\ | | | | | | | | | | | | * 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-075-16/+15
| | | | | | | | | | | | The new fields can be accessed directly and are more intelligible. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* | Merge commit 'e88103a7f92cf27a2868b50acc8a9912f6088249'Hendrik Leppkes2015-09-051-3/+3
|\ \ | |/ | | | | | | | | | | * commit 'e88103a7f92cf27a2868b50acc8a9912f6088249': Bump major versions of all libraries Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
| * Bump major versions of all librariesVittorio Giovara2015-08-281-1/+1
| | | | | | | | Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* | Merge commit '9d58639e270f7612874681e0ca30fa461e2667b7'n2.9-devHendrik Leppkes2015-09-052-23/+0
|\ \ | |/ | | | | | | | | | | * commit '9d58639e270f7612874681e0ca30fa461e2667b7': sws: Drop deprecated SWS_CPU_CAPS defines Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
| * sws: Drop deprecated SWS_CPU_CAPS definesVittorio Giovara2015-08-282-23/+0
| | | | | | | | Deprecated in 07/2012.
| * ppc: Restrict some Altivec implementations to Big EndianLuca Barbato2015-05-311-1/+1
| | | | | | | | | | In Little Endian the vec_ld/vec_st operations work as expected only for byte-vectors.
* | swscale: re-enable gammaPedro Arthur2015-09-047-10/+109
| | | | | | | | +added gamma conversion to refactored code
* | swscale: added proper error check for ff_init_filtersPedro Arthur2015-09-041-6/+11
| |
* | swscale/utils: If cascaded contexts are used forward ↵Michael Niedermayer2015-08-311-3/+6
| | | | | | | | | | | | 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-311-1/+66
| | | | | | | | | | | | | | | | | | | | | | 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: Silence an unused variable warningTimothy Gu2015-08-251-2/+2
| | | | | | | | Also remove a pair of extraneous ifdeffery.
* | swscale/alphablend: fix pointer castGanesh Ajjanagadde2015-08-221-1/+1
| | | | | | | | | | | | Commit 7c72a4bbd3a0ca421c7419abad2fb65aa713dd8b was slightly wrong Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
* | swscale/alphablend: Fix pointer type warningsMichael Niedermayer2015-08-211-9/+9
| | | | | | | | | | Found-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | swscale: refactor vertical scalerPedro Arthur2015-08-196-42/+380
| |
* | swscale: Fixed typosPedro Arthur2015-08-181-2/+2
| | | | | | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | swscale: fixed compiler warningsPedro Arthur2015-08-183-16/+25
| | | | | | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | swscale: add license headers and copyrightsPedro Arthur2015-08-182-0/+40
| | | | | | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | swscale: process horizontal lines in batchesPedro Arthur2015-08-183-16/+49
| | | | | | | | | | | | Process more lines in a single pass to improve performance Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | swscale: refactor horizontal scalingPedro Arthur2015-08-187-11/+751
| | | | | | | | | | | | | | + split color conversion from scaling - disabled gamma correction, until it's refactored too Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | swscale/swscale-test: Fix slice height in random reference data creation.Michael Niedermayer2015-08-171-1/+1
| | | | | | | | | | Found-by: Pedro Arthur <bygrandao@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | swscale/alphablend: Support chroma subsamplingMichael Niedermayer2015-08-092-15/+62
| | | | | | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | swscale/alphablend: Support SWS_ALPHA_BLEND_CHECKERBOARDMichael Niedermayer2015-08-093-11/+18
| | | | | | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | swscale/alphablend: Factor target computation out of the loopsMichael Niedermayer2015-08-091-8/+9
| | | | | | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | swscale/alphablend: Fix big endian formats on LEMichael Niedermayer2015-08-091-1/+1
| | | | | | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | swscale/alphablend: support packed pixel formatsMichael Niedermayer2015-08-092-11/+53
| | | | | | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | swscale/swscale: Document param[0..1]Michael Niedermayer2015-08-091-0/+6
| | | | | | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | swscale: Implement alphablendaway for planar 4:4:4 formatsMichael Niedermayer2015-08-085-1/+192
| | | | | | | | | | | | Fixes Ticket4746 Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | swscale: Add sws_alloc_set_opts()Michael Niedermayer2015-08-082-4/+30
| | | | | | | | | | | | | | 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/output: Fix "warning: assignment from incompatible pointer type"Michael Niedermayer2015-07-251-4/+8
| | | | | | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | swscale: ayuv64le output supportPaul B Mahol2015-07-242-1/+49
| | | | | | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* | swscale: ayuv64le input supportPaul B Mahol2015-07-244-0/+40
| | | | | | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* | swscale/ppc/yuv2rgb_altivec: POWER LE support in the macros vec_unh() and ↵Rong Yan2015-07-161-0/+5
| | | | | | | | | | | | vec_unl() Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | swscale/utils: Clear pix buffersMichael Niedermayer2015-07-151-3/+3
| | | | | | | | | | | | | | | | 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>