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
2010-05-12 20:47:32 +00:00
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
2010-05-11 00:36:34 +00:00
Stefano Sabatini
3de42635bd
Avoid duplication of usePal() macro.
...
Originally committed as revision 30856 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2010-03-06 11:50:54 +00:00
Janusz Krzysztofik
a4e441301d
Add support to BGR444/RGB444 foreign endian output in libswscale.
...
Patch by Janusz Krzysztofik |jkrzyszt ^ tis icnet pl|.
Originally committed as revision 30855 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2010-03-06 11:27:31 +00:00
Janusz Krzysztofik
601949b898
libswscale: Extend the unaccelerated path of the unscaled yuv2rgb special
...
converter with support for rgb444 output format.
Patch by Janusz Krzysztofik jkrzyszt chez tis icnet pl
Originally committed as revision 30841 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2010-03-05 08:32:54 +00:00
Alexis Ballier
1379b58482
Support BGR555, BGR565, RGB555 and RGB565 foreign endian output in
...
libswscale.
Patch by Alexis Ballier, alexis D ballier A gmail
Originally committed as revision 30840 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2010-03-04 16:57:04 +00:00
Michael Niedermayer
81858371d9
Add 3 more RGB makros that allow specifying RGB in bytes and any rgb/bgr.
...
Originally committed as revision 30434 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2010-01-26 08:01:50 +00:00
Michael Niedermayer
3b1ee70312
Rename isRGB() and isBGR() as their meaning is confusing.
...
Originally committed as revision 30433 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2010-01-26 07:40:14 +00:00
Stefano Sabatini
30b6147521
Use av_get_bits_per_pixel() for computing the bits per pixel of the
...
source and destination format, cache those values in the newly added
SwsContext:srcFormatBpp and SwsContext:dstFormatBpp fields, and remove
the fmt_depth() function.
Originally committed as revision 30419 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2010-01-24 12:55:05 +00:00
Ramiro Polla
a4388ebd37
Split swscale.c into scaler code (swscale.c) and utility code (utils.c).
...
Originally committed as revision 30411 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2010-01-24 02:08:22 +00:00
Måns Rullgård
4a88852623
Move array specifiers outside DECLARE_ALIGNED() invocations
...
Originally committed as revision 30385 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2010-01-22 03:26:30 +00:00
Ramiro Polla
5d4d503fd0
Document some more of SwsContext.
...
Originally committed as revision 30380 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2010-01-20 03:26:12 +00:00
Stefano Sabatini
73cadb4f13
Prefer enum PixelFormat to int as the parameter type of
...
fmt_depth(fmt).
Originally committed as revision 30333 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2010-01-16 19:32:58 +00:00
Ramiro Polla
9556124c97
Document some of SwsContext.
...
Originally committed as revision 30328 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2010-01-16 19:04:55 +00:00
Ramiro Polla
0cc854e377
Reuse h{lum,chr}Filter{,Pos} variables for MMX2 fast_bilinear horizontal scaler.
...
Originally committed as revision 30327 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2010-01-16 18:39:06 +00:00
Zuxy Meng
a959e24780
Const correctness for src pointer. Remove all constness related warnings in
...
libswscale.
Originally committed as revision 30306 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2010-01-15 08:51:51 +00:00
Ramiro Polla
a1f4b4bb6e
Move fast bilinear scaler code to the existing h[yc]scale_fast() functions.
...
Originally committed as revision 30098 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2009-12-21 01:54:59 +00:00
Ramiro Polla
bb53e1d188
Rename function pointers used to convert from the input pixel format to the
...
intermediate YV12 to a more descriptive name.
Originally committed as revision 30097 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2009-12-21 01:41:29 +00:00
Ramiro Polla
e7a47515ab
Check if chroma horizontal scaler is needed in sws_init_swScale().
...
Originally committed as revision 30096 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2009-12-21 01:34:45 +00:00
Ramiro Polla
6f9771d7a6
Remove unused fields from SwsContext.
...
Originally committed as revision 30095 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2009-12-21 01:30:55 +00:00
Ramiro Polla
d3243d1431
Indentation.
...
Originally committed as revision 30087 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2009-12-20 17:42:35 +00:00
Ramiro Polla
bae76dc3eb
Set horizontal scaler's range conversion in context in sws_init_swScale().
...
Originally committed as revision 30082 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2009-12-20 16:32:58 +00:00
Ramiro Polla
84011f10d5
Set horizontal scaler's src offsets in context in sws_init_swScale().
...
Originally committed as revision 30081 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2009-12-20 16:21:25 +00:00
Lars Täuber
991e579cae
Make 16bit YUV formats compatible with NE avcodec_get_pix_fmt().
...
Patch by Lars Täuber <lars <dot> taeuber <at> gmx <dot> net>.
Originally committed as revision 29650 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2009-09-05 23:33:11 +00:00
Ramiro Polla
c255994b29
More indentation changes leftover from r29522:
...
- Align asm code to the column 4 spaces after the call to __asm__();
- Align cases in switch statements to the same column as "switch".
Originally committed as revision 29524 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2009-08-16 21:37:07 +00:00
Ramiro Polla
dd68318cee
Cosmetics:
...
- Place curly brackets in the same line as while/for/if/switch/else/do;
- Place curly brackets at column 0 in the next line starting a function.
Originally committed as revision 29523 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2009-08-16 21:11:28 +00:00
Ramiro Polla
48f4c61252
MMX2 horizontal scaler: Determine code size at runtime.
...
Originally committed as revision 29510 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2009-08-13 18:31:07 +00:00
Ramiro Polla
bcdedf675f
Rename "funny" code to "mmx2 filter" code.
...
Originally committed as revision 29507 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2009-08-13 18:28:17 +00:00
Måns Rullgård
a898cdc995
Replace WORDS_BIGENDIAN with HAVE_BIGENDIAN
...
Originally committed as revision 29439 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2009-07-26 12:26:32 +00:00
Ramiro Polla
804db4466d
Remove unused variables.
...
Originally committed as revision 29435 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2009-07-21 20:17:15 +00:00
Ramiro Polla
71ed6c8f06
Remove dependency from swscale_internal.h to lavu/internal.h, it is no longer
...
needed for DECLARE_ALIGNED.
Remove dependency from swscale-example.c to swscale_internal.h by duplicating
the necessary code. The duplicated code is a hack and should be removed once a
cleaner pixel format information system exists. swscale-example.c is example
code on how to use the library and therefore shouldn't rely on internal
headers.
Originally committed as revision 29415 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2009-07-09 02:27:39 +00:00
Måns Rullgård
b4b9170234
Use enum PixelFormat in sws_format_name() prototype
...
Originally committed as revision 29409 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2009-07-01 12:40:28 +00:00
Diego Biurrun
02163b799d
Add libavutil/internal.h #include, required for the DECLARE_ALIGNED macro.
...
This fixes swscale-example compilation.
Originally committed as revision 29353 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2009-06-11 10:19:04 +00:00
Pavel Pavlov
92db623584
Use DECLARE_ALIGNED macro instead of gcc __attribute__.
...
Patch by Pavel Pavlov <pavel at summit-tech dot ca>
Originally committed as revision 29348 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2009-06-04 21:55:52 +00:00
Kostya Shishkov
e8417235d0
Partial (low bits ignored, no direct transcoding into other RGB formats) support
...
for inputting RGB48BE/LE.
Originally committed as revision 29341 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2009-06-02 12:28:49 +00:00
Kostya Shishkov
5b21719ea2
Let SwScaler know that RGB48 BE/LE is 16-bits per component format.
...
Originally committed as revision 29317 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2009-05-19 17:37:58 +00:00
Kostya Shishkov
075ec82c54
Make SwScaler recognize RGB48 BE/LE colourspaces (not support though).
...
Originally committed as revision 29316 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2009-05-19 17:26:22 +00:00
Diego Biurrun
f1933e436c
Add missing const qualifiers to AltiVec function parameters where appropriate.
...
Fixes a couple of 'discards qualifiers from pointer target type' warnings.
Originally committed as revision 29281 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2009-05-09 10:56:37 +00:00
Michael Niedermayer
9507d91150
Change VOFW for x86 to 5120, it allows larger images to be scaled and was
...
not slower. Other archs are not changed as the larger VOFW was slower on PPC.
Originally committed as revision 29256 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2009-05-05 01:34:16 +00:00
Michael Niedermayer
de1275d5e8
Planar 16bit 420 422 444 YUV support (output is only supported in some
...
unscaled convertions).
This, like gray16 converts down to 8bit, which is a big FIXME & patch welcome,
we should preserve more bits.
Originally committed as revision 29217 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2009-04-21 01:08:03 +00:00
Michael Niedermayer
714f32bf15
Add macro to check for 16bit per sample.
...
Originally committed as revision 29215 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2009-04-21 00:03:00 +00:00
Michael Niedermayer
c3dc6c5a6b
add isBE()
...
Originally committed as revision 29212 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2009-04-20 21:04:55 +00:00
Cédric Schieli
39e5f87b1a
Do not use abgrToA for both luma and alpha channel in hyscale.
...
This fixes RGB32 (et al.) scaling.
Originally committed as revision 29179 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2009-04-14 14:11:57 +00:00
Diego Biurrun
457eed7204
whitespace cosmetics: Reindent a few lines and break a few excessively long lines.
...
Originally committed as revision 29174 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2009-04-12 22:43:03 +00:00
Ramiro Polla
40fa514033
swscale: Use function pointers for swScale functions.
...
Originally committed as revision 29145 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2009-04-04 22:45:02 +00:00
Ramiro Polla
d5e9bc0636
Move bfin specific code to its subdir.
...
Originally committed as revision 29079 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2009-03-27 22:56:56 +00:00
Ramiro Polla
befa8e665c
Move yuv2rgb code to subdirs.
...
Originally committed as revision 29063 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2009-03-26 01:30:10 +00:00
Cédric Schieli
6858492e6c
Add alpha channel scaling
...
Originally committed as revision 29011 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2009-03-20 14:15:14 +00:00
Diego Biurrun
780daf2b09
Consistently use ff_ prefixes for internal symbols.
...
Originally committed as revision 28988 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2009-03-18 08:06:08 +00:00
Cédric Schieli
9621f2f540
YUVA420P is a planar YUV format
...
Originally committed as revision 28867 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2009-03-07 09:37:25 +00:00