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
15 years ago
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
15 years ago
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
15 years ago
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
15 years ago
Ramiro Polla
5d4d503fd0
Document some more of SwsContext.
...
Originally committed as revision 30380 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
15 years ago
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
15 years ago
Ramiro Polla
9556124c97
Document some of SwsContext.
...
Originally committed as revision 30328 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
15 years ago
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
15 years ago
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
15 years ago
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
15 years ago
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
15 years ago
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
15 years ago
Ramiro Polla
6f9771d7a6
Remove unused fields from SwsContext.
...
Originally committed as revision 30095 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
15 years ago
Ramiro Polla
d3243d1431
Indentation.
...
Originally committed as revision 30087 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
15 years ago
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
15 years ago
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
15 years ago
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
15 years ago
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
15 years ago
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
15 years ago
Ramiro Polla
48f4c61252
MMX2 horizontal scaler: Determine code size at runtime.
...
Originally committed as revision 29510 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
15 years ago
Ramiro Polla
bcdedf675f
Rename "funny" code to "mmx2 filter" code.
...
Originally committed as revision 29507 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
15 years ago
Måns Rullgård
a898cdc995
Replace WORDS_BIGENDIAN with HAVE_BIGENDIAN
...
Originally committed as revision 29439 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
16 years ago
Ramiro Polla
804db4466d
Remove unused variables.
...
Originally committed as revision 29435 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
16 years ago
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
16 years ago
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
16 years ago
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
16 years ago
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
16 years ago
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
16 years ago
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
16 years ago
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
16 years ago
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
16 years ago
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
16 years ago
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
16 years ago
Michael Niedermayer
714f32bf15
Add macro to check for 16bit per sample.
...
Originally committed as revision 29215 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
16 years ago
Michael Niedermayer
c3dc6c5a6b
add isBE()
...
Originally committed as revision 29212 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
16 years ago
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
16 years ago
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
16 years ago
Ramiro Polla
40fa514033
swscale: Use function pointers for swScale functions.
...
Originally committed as revision 29145 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
16 years ago
Ramiro Polla
d5e9bc0636
Move bfin specific code to its subdir.
...
Originally committed as revision 29079 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
16 years ago
Ramiro Polla
befa8e665c
Move yuv2rgb code to subdirs.
...
Originally committed as revision 29063 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
16 years ago
Cédric Schieli
6858492e6c
Add alpha channel scaling
...
Originally committed as revision 29011 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
16 years ago
Diego Biurrun
780daf2b09
Consistently use ff_ prefixes for internal symbols.
...
Originally committed as revision 28988 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
16 years ago
Cédric Schieli
9621f2f540
YUVA420P is a planar YUV format
...
Originally committed as revision 28867 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
16 years ago
Cédric Schieli
c27516003f
Add an isALPHA macro to check if pixel format has alpha channel
...
Originally committed as revision 28747 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
16 years ago
Diego Biurrun
43175f5010
Drop DECLARE_ALIGNED from extern declarations. It creates trouble when
...
swscale_internal.h is #included without HAVE_AV_CONFIG_H defined.
Originally committed as revision 28498 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
16 years ago
Kostya Shishkov
e2a004ad4e
Prefix visible YUV2RGB functions with sws_
...
Originally committed as revision 28496 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
16 years ago
Diego Biurrun
1615fb91a1
Declare struct SwsContext before using it, fixes the checkheaders warning:
...
libswscale/swscale_internal.h:58: warning: `struct SwsContext' declared inside parameter list
libswscale/swscale_internal.h:58: warning: its scope is only this definition or declaration, which is probably not what you want
Originally committed as revision 28353 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
16 years ago
Aurelien Jacobs
b63f641e9b
Change semantic of CONFIG_*, HAVE_* and ARCH_*.
...
They are now always defined to either 0 or 1.
Originally committed as revision 28311 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
16 years ago
Vitor Sessak
4900461742
Add a new unscaled PAL8 -> RGB converter.
...
Originally committed as revision 27730 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
16 years ago
Carl Eugen Hoyos
58e4b706c5
Change variable types from int to enum PixelFormat.
...
Fixes icc warning #188 : enumerated type mixed with another type
Originally committed as revision 27727 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
16 years ago