summaryrefslogtreecommitdiff
path: root/libswscale/swscale_unscaled.c
Commit message (Collapse)AuthorAge
* cosmetics: Fix spelling mistakesVittorio Giovara2016-05-04
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* lavu: add AV_CEIL_RSHIFT and use it in various placesClément Bœsch2016-01-11
| | | | Signed-off-by: Vittorio Giovara <vittorio.giovara@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>
* libswscale: fix compiler warnings enumerated type mixed with another typeHimangi Saraogi2015-03-15
| | | | Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* libswscale: GBRAP input & output and GBRAP16 input supportPaul B Mahol2015-01-14
| | | | Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* swscale: Properly scale YUVDerek Buitenhuis2014-12-05
| | | | | | | | | | Only shift limited range luma, and always only shift chroma for upconversion. Based off a patch by Michael Niedermayer. Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com> Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* swscale: support AV_PIX_FMT_YA16 as inputVittorio Giovara2014-08-04
| | | | Based on a long debug session with Kostya.
* 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.
* swscale: correctly pad destination buffer in rgb conversionKostya Shishkov2014-08-04
| | | | | | | Bug-Id: 772 CC: libav-stable@libav.org Found-By: Justin Ruggles <justin.ruggles@gmail.com> Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* Remove all Blackfin architecture optimizationsDiego Biurrun2014-06-02
| | | | | | Blackfin is a painful platform to work with, no test machines are available and the range of multimedia applications is dubious. Thus it only represents a maintenance burden.
* swscale: Set alpha to opaque for internal palettes.Justin Ruggles2014-04-12
| | | | | | | | | Fixes conversion of pal8 to rgb formats with alpha. Updated references for 2 FATE tests which previously encoded fully transparent images. Based on a patch by Baptiste Coudurier <baptiste.coudurier@gmail.com>
* swscale: fix some undefined signed left shiftsJustin Ruggles2014-04-12
| | | | Based on a patch by Michael Niedermayer <michaelni@gmx.at>
* swscale: fix an implementation-defined unsigned-to-signed conversionJustin Ruggles2014-04-12
|
* swscale: add endianness conversion for AV_PIX_FMT_BGRA64|RGBA64Janne Grunau2014-04-02
|
* swscale: add nv12/nv21->yuv420 converterMichael Niedermayer2014-01-21
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* swscale: fix stride used in planarToNv12Wrapper()Michael Niedermayer2014-01-21
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* swscale: cosmetics: Drop silly camelCase from swScale function pointer nameDiego Biurrun2013-08-29
|
* swscale: consistent names for arch-specific acceleration functionsDiego Biurrun2013-08-29
|
* swscale: ppc: Hide arch-specific initialization detailsDiego Biurrun2013-08-29
| | | | Also give consistent names to init functions.
* swscale: Move extern declarations for tables to swscale_internal.hDiego Biurrun2013-08-15
| | | | Also add missing ff_ prefixes where necessary.
* swscale: Mark a bunch of tables only used within one file staticDiego Biurrun2013-08-15
|
* pixdesc: rename PIX_FMT_* flags to AV_PIX_FMT_FLAG_*Anton Khirnov2013-05-15
|
* swscale: support endianness conversion for AV_PIX_FMT_XYZ12Janne Grunau2013-05-06
|
* Replace some forgotten instances of PIX_FMT_* with AV_PIX_FMT_*.Anton Khirnov2013-03-08
|
* swscale: Add support for unscaled 8-bit Packed RGB -> Planar RGBDerek Buitenhuis2013-02-27
| | | | Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
* sws: use planarRgbToRgbWrapper only for 8bit per componentMichael Niedermayer2013-02-09
| | | | | | | The function doesnt support >8bit currently Signed-off-by: Michael Niedermayer <michaelni@gmx.at> Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
* swscale: support gray to 9bit and 10bit formatsLuca Barbato2012-10-30
| | | | With the input of Kostya and Ronald.
* swscale: avoid pointless use of compound literalsMans Rullgard2012-10-23
| | | | | | Some compilers (e.g. old gcc) have trouble with these. Signed-off-by: Mans Rullgard <mans@mansr.com>
* sws: do not use av_pix_fmt_descriptors directly.Anton Khirnov2012-10-12
|
* Replace PIX_FMT_* -> AV_PIX_FMT_*, PixelFormat -> AVPixelFormatAnton Khirnov2012-10-08
|
* Unscaled Planar RGB -> RGB support in swscale.Hans-Kristian Arntzen2012-04-03
| | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at> Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
* rgb2rgb: rgb12to15()Paul B Mahol2012-01-12
| | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* swscale: fix invalid conversions and memory problems.Ronald S. Bultje2012-01-12
| | | | | | | | | | Fixes problems where rgbToRgbWrapper() is called even though it doesn't support this particular conversion (e.g. converting from RGB444 to anything). Thirdly, fixes issues where rgbToRgbWrapper() is called for non-native endiannness conversions (e.g. RGB555BE on a LE system). Fourthly, fixes crashes when converting from e.g. monowhite to monowhite, which calls planarCopyWrapper() and overwrites/reads because n_bytes != n_pixels.
* rgb2rgb: rgb12tobgr12()Paul B Mahol2012-01-11
| | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* rgb2rgb: allow conversion for <15 bppPaul B Mahol2012-01-09
| | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* swscale: prevent invalid writes in packed_16bpc_bswapJanne Grunau2011-12-26
| | | | | Writes past the end of the destination buffer were occuring when its stride was smaller than the stride of the source. Fixes Bug #183.
* swscale: fix formatting and indentation of unscaled conversion routines.Nathan Adil Maxson2011-12-18
| | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* swscale: add endian conversion for RGB555 and RGB444 pixel formatsJanne Grunau2011-12-17
| | | | Add a macro to shorten the if condition.
* swscale: add rgb565 endianess conversionJanne Grunau2011-12-17
|
* swscale: add unscaled packed 16 bit per component endianess conversionJanne Grunau2011-12-16
|
* swscale: add support for planar RGB input.Ronald S. Bultje2011-11-24
|
* swscale: Fix stack alignment for SSEJohn Stebbins2011-11-19
| | | | | | | | Although gcc guarantees 16 byte stack alignment, threads under WinXP don't appear to be guaranteed to start stack aligned. So fix the alignment. Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* Do not convert RGB buffer at once when stride does not fit exact samples.Kostya Shishkov2011-07-30
| | | | | | | | | | | When converting RGB format to RGB format with the same bits per sample, unscaled path performs conversion on the whole buffer at once. For non-multiple-of-16 BGR24 to RGB24 conversion it means that padding at the end of line will be converted too. Since it may be of arbitrary length (e.g. 8 bytes), operating on the whole buffer produces obviously wrong results. Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* swscale: clip unscaled colorspace conversion path.Ronald S. Bultje2011-07-14
| | | | | Prevents overflows on very bright scenes when adding dither, which may lead to black dots.
* doxygen: Make sure parameter names match between .c and .h files.Diego Biurrun2011-07-14
|
* swscale: implement error dithering in planarCopyWrapper.Ronald S. Bultje2011-07-08
| | | | Based on a somewhat similar idea in FFmpeg's swscale.
* swscale: split swscale.c in unscaled and generic conversion routines.Ronald S. Bultje2011-06-03
This duplicates the function fillPlane().