Michael Niedermayer
42c9bd313f
swscale: Support dither in is16BPS(c->srcFormat) && !is16BPS(c->dstFormat)
...
This is done by just letting the Nbit code handle it, which now can do it.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Michael Niedermayer
c4f7050bb1
swscale: support unscaled planar Nbit->8bit with non native endian source.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Michael Niedermayer
09ff3cc77b
swscale: fix unscaled yuv422p16be -> yuv422p10le
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Michael Niedermayer
eb8aa13b54
swscale: make DITHER_COPY() support non native endian source
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Michael Niedermayer
9c49ca0f19
swscale: factor shift out of DITHER_COPY().
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Michael Niedermayer
300e497b5f
swscale: factorize DITHER_COPY()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Michael Niedermayer
3dd779eb0a
swscale: implement Nbit->non native endian 16bit. Fixes v210.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Baptiste Coudurier
b9e608492a
swscale: 9,10 bits pixel format output support
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Michael Niedermayer
95f163b33b
swscale: Dither for unscaled 10->8bit per channel
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Michael Niedermayer
7915e038c6
swscale: dont reshuffle bytes
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Peter Ross
1afbae100b
libswcale: PIX_FMT_BGR48LE and PIX_FMT_BGR48BE scaler implementation
...
Signed-off-by: Anton Khirnov <anton@khirnov.net>
14 years ago
Baptiste Coudurier
624a7e005c
Correctly support pal8 with alpha in libswscale, fix png pal8 with alpha.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Baptiste Coudurier
dbfdb288c1
Set alpha of palettes to 0xff.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Baptiste Coudurier
e91946ed23
Rename y400a to gray8a.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
tateu
93c28a55fd
Fix runtime CPU detection in libswscale.
14 years ago
Anton Khirnov
7dfe244fbd
sws: remove disabled cruft.
14 years ago
Janne Grunau
f668afd489
swscale: fix "ISO C90 forbids mixed declarations and code" warning
...
only hit with --enable-runtime-cpudetect
14 years ago
Josh Allmann
33a0421bba
swscale: simplify initialization code
...
Simplify the fallthrough case when no accelerated functions
can be initialized.
14 years ago
Josh Allmann
735bf19511
swscale: further cleanup swscale.c
...
Move x86-specific constants out of swscale.c
14 years ago
Luca Barbato
86330b4c92
swscale: partially move the arch specific code left
...
PPC and x86 code is split off from swscale_template.c. Lots of code is
still duplicated and should be removed later.
Again uniformize the init system to be more similar to the dsputil one.
Unset h*scale_fast in the x86 init in order to make the output
consistent with the previous status. Thanks to Josh for spotting it.
14 years ago
Luca Barbato
0e1a5434e2
swscale: Factorize FAST_BGR2YV12 definition.
...
It is used only for x86 so it will eventually be moved with that code
into the x86 arch subdirectory.
14 years ago
Oskar Arvidsson
d4497f6dfb
Add pixel formats for 9- and 10-bit yuv420p.
...
Also add support for these formats in libswscale.
Needed for high bit depth h264 decoding.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Darren Horrocks
30c6fefd01
fix runtime-cpu-detect bug in swscale
...
swscale doesnt ever actually do any runtime detection at all when
runtime cpu detection is enabled, it simply passes whatever is passed
to -sws_flags, which could be nothing at all making swscale default to
the C implementation.
14 years ago
Michael Niedermayer
95c8bb03ed
Fix compilation failure with runtime cpudetect (Ticket #22 )
14 years ago
Peter Ross
3e2523db20
libswcale: PIX_FMT_BGR48LE and PIX_FMT_BGR48BE scaler implementation
14 years ago
Mans Rullgard
2912e87a6c
Replace FFmpeg with Libav in licence headers
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Baptiste Coudurier
bd8154d0b3
100l fix if condition
...
Originally committed as revision 32395 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
14 years ago
Baptiste Coudurier
df0743e01e
Y400A (gray alpha) input support in libswscale
...
Originally committed as revision 32394 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
14 years ago
Ramiro Polla
5a90173751
swscale: remove useless temporary variable
...
Originally committed as revision 32258 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
14 years ago
Ramiro Polla
cf1cd520c6
swscale: factorize plane copying code out of 2 functions
...
Originally committed as revision 32257 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
14 years ago
Ramiro Polla
0132ab80a8
indent
...
Originally committed as revision 32157 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
14 years ago
Ramiro Polla
4d8617496f
swscale: remove unused code
...
yvu9ToYv12Wrapper() used to support yv12 with the chroma planes either in the
uv order or the vu order. FFmpeg no longer has a pixel format in vu order.
Originally committed as revision 32156 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
14 years ago
Ramiro Polla
a1899e0adc
swscale: fix internal rgb->yv12 chroma conversion used by the main scaler path
...
The shift must be applied before the masking.
Originally committed as revision 32051 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
14 years ago
Ramiro Polla
0fc29f2708
swscale: simplify selection of optimizations to compile.
...
Originally committed as revision 32013 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
14 years ago
Ramiro Polla
8f02861636
swscale: Always define COMPILE_xxx to either 0 or 1.
...
Originally committed as revision 32012 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
14 years ago
Måns Rullgård
66842fe874
swscale: fix unaligned accesses in (RGB|BGR)32_1 to YUV conversion
...
Originally committed as revision 32011 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
14 years ago
Måns Rullgård
83761d5b58
swscale: remove unused macro parameter in BGR2UV template
...
Originally committed as revision 32010 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
14 years ago
Ramiro Polla
a42c29febc
validate input data and linesizes
...
Originally committed as revision 31976 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
14 years ago
Stefano Sabatini
04f6ab1cef
Add missing comma, fix rgb2yuv_table[SWS_CS_SMPTE240M] coefficients.
...
Originally committed as revision 31779 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
15 years ago
Stefano Sabatini
24911613a5
Add some comments to the rgb2yuv_table, clarifying the standard where
...
are defined.
Originally committed as revision 31778 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
15 years ago
Martin Storsjö
e593826b93
Cosmetics: reindent and unify whitespace
...
Originally committed as revision 31757 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
15 years ago
Martin Storsjö
72ae5049e1
Do planar copy with a single memcpy only if the stride is equal to the length
...
This avoids writing outside of the designated rectangle.
Originally committed as revision 31756 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
15 years ago
Martin Storsjö
c4e2b8268f
In planarCopyWrapper, Only copy length, not stride of the last line in the plane
...
If the destination planes are offset within the destination buffer,
writing the extra bytes at the end may write outside of the destination
buffer.
Originally committed as revision 31746 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
15 years ago
Måns Rullgård
6a01eab73c
Add av_ prefix to bswap macros
...
Originally committed as revision 31679 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
15 years ago
Eli Friedman
3483d87752
Fix 'assignment from incompatible pointer type' warning.
...
Patch by Eli Friedman, eli d friedman a gmail
Originally committed as revision 31628 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
15 years ago
Reinhard Tartler
2b991422f8
deprecate palette8topacked32 in favor of public API functions sws_convertPalette8ToPacked32 and -24
...
additionallym deprecate palette8torgb16 and its bgr variant without
replacement. These functions are not meant to be used by applications.
Discussed at: http://comments.gmane.org/gmane.comp.video.ffmpeg.devel/109340
Originally committed as revision 31301 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
15 years ago
Stefano Sabatini
4e74187db2
Remove PI definition and use M_PI instead.
...
M_PI is defined by the included file libavutil/mathematics.h.
Originally committed as revision 31185 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
15 years ago
Ramiro Polla
c3ab0004ae
Revert r31153. It failed to build on:
...
x86_64 / Mac OS X gcc 4.0.1
x86_64 / Linux icc (all)
x86_64 / Linux gcc 4.0.4
x86_64 / OpenBSD gcc 3.3.5
x86_64 / Linux suncc 5.10
and there are some reports of crashes.
Originally committed as revision 31170 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
15 years ago
Ramiro Polla
d9d14dc607
Use int instead of long to pass width parameters in non-public functions.
...
long was being incorrectly used as an x86-sized register, both for 32 and 64
bits, but this is not the case in win64.
Originally committed as revision 31153 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
15 years ago
Diego Biurrun
819ee683d8
libswscale: Relicense almost all x86 assembler optimizations as LGPL.
...
This is of course done with permissions from the authors. The only GPL
component left are MMX optimizations for YUV to RGB conversion.
Originally committed as revision 30965 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
15 years ago