Ramiro Polla
67c2c5bb2e
Curly brackets cosmetics for previous commit.
...
Originally committed as revision 29587 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
15 years ago
Ramiro Polla
1ddb5747df
Check for return value of initFilter().
...
Originally committed as revision 29586 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
15 years ago
Ramiro Polla
7248797c03
swscale: Check for return values of malloc.
...
Originally committed as revision 29584 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
15 years ago
Ramiro Polla
0607b09069
Restore comment that was partially removed.
...
Originally committed as revision 29582 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
15 years ago
Ramiro Polla
1b03a9d607
Check return values of sws_allocVec() and sws_getConstVec().
...
Originally committed as revision 29543 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
15 years ago
Ramiro Polla
1aff375d41
Introduce and use sws_allocVec().
...
Originally committed as revision 29536 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
15 years ago
Ramiro Polla
20484b90ec
Reuse sws_getConstVec() where possible.
...
Originally committed as revision 29535 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
9b734d44ab
Indent libswscale:
...
- Use 4 spaces throughout for indentation;
- Fix inconsistent indentation;
- Indent function calls and declarations aligning arguments on multiple lines
to the column after the opening parentheses;
- 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 29522 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
15 years ago
Ramiro Polla
52154148f4
Vertical yuv -> yuv16 scaler.
...
Originally committed as revision 29517 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
15 years ago
Ramiro Polla
737cbcde08
Indent.
...
Originally committed as revision 29512 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
0728778885
Protect mmx2 filter code buffers so they are not executable and writeable at
...
the same time (only mmap for now).
Originally committed as revision 29509 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
Ramiro Polla
184410e60b
Put some altivec code under COMPILE_ALTIVEC, and not HAVE_ALTIVEC.
...
Originally committed as revision 29484 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
16 years ago
Diego Biurrun
0bf18ed32d
Remove disabled crufty code.
...
Originally committed as revision 29482 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
16 years ago
Guennadi Liakhovetski
062394e07c
Fix regression when converting to nv12/nv21.
...
Patch by Guennadi Liakhovetski, g D liakhovetski A gmx D de
Originally committed as revision 29464 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
16 years ago
Ramiro Polla
469fd9b0e1
MMX2 scaler: Remove {} block leftover from factorization in initMMX2Scaler().
...
Merge variable declarations to previous {} block and indent.
Originally committed as revision 29454 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
16 years ago
Ramiro Polla
f1c6dfa371
MMX2 scaler: factorize initMMX2Scaler().
...
Originally committed as revision 29453 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
16 years ago
Ramiro Polla
901775c714
MMX2 scaler: add variable to ease factorization of initMMX2Scaler().
...
Originally committed as revision 29452 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
16 years ago
Ramiro Polla
571d9587cf
Remove useless code.
...
flags can never be any other kind of scaling algorithm inside this if().
Originally committed as revision 29449 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
16 years ago
Ramiro Polla
94daf2e94c
Do not misuse HAVE_ defines. Introduce COMPILE_TEMPLATE_ defines and use them
...
instead.
Originally committed as revision 29446 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
16 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
Måns Rullgård
78d01adaa7
Remove unnecessary #include <unistd.h>
...
Originally committed as revision 29437 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
Diego Biurrun
8b1a644177
AltiVec code and runtime cpudetect do not require CONFIG_GPL.
...
Make sure the latter is only checked for x86 optimizations, which are GPL.
Originally committed as revision 29390 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
16 years ago
Diego Biurrun
57f6d52a22
The AltiVec optimizations of libswscale are no longer under GPL.
...
Originally committed as revision 29389 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
16 years ago
Diego Biurrun
e912c13ad7
PPC: Make sure that COMPILE_C is not deactivated if RUNTIME_CPUDETECT is set.
...
Originally committed as revision 29388 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
16 years ago
Vitor Sessak
fa8c408b26
Do not call rgb2rgbWrapper() for rgb48*, there is no special converter
...
yet for those formats
Originally committed as revision 29371 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
68e7f4828d
YUV into RGB48 BE/LE conversion support
...
Originally committed as revision 29342 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
80704c47c4
Move colorspace conversion functions implemented in pure C from template
...
into swscale.c
Originally committed as revision 29320 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
0020c54cb8
Add const qualifier to param argument of sws_getContext() and
...
sws_getCachedContext(). Fixes the warning:
swscale.c:3408: warning: assignment discards qualifiers from pointer target type
Originally committed as revision 29288 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
16 years ago
Diego Biurrun
465477e1fb
Move preprocessor condition before variable declaration, fixes the warning:
...
libswscale/swscale.c:1795: warning: unused variable 'flags'
Originally committed as revision 29287 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
16 years ago
Vitor Sessak
5f9ae1983d
Fix sliced yuv410 -> yuv420 conversion
...
Originally committed as revision 29272 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
16 years ago
Carl Eugen Hoyos
8e86dd1241
Make reset_ptr() void.
...
Originally committed as revision 29229 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
61a3f379e0
Merge gray->gray converters into planarCopy(), this should also make planarCopy()
...
useable for other 16bit formats once we support them.
Originally committed as revision 29216 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
16 years ago
Michael Niedermayer
b87fae9f56
Make sure src/dst are NULL when they arent used, some code uses this to
...
simpify checks.
Originally committed as revision 29214 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
16 years ago
Michael Niedermayer
081aa41db9
Use generic BE check instead of checking for gray16LE.
...
Originally committed as revision 29213 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
16 years ago
Stefano Sabatini
0c067dc34b
Make sws_setColorspaceDetails() return -1 if the destination format is
...
not supported.
Originally committed as revision 29187 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
16 years ago
Stefano Sabatini
2d26fa2822
Move sws_[gs]etColorspaceDetails() documentation from swscale.c to
...
swscale.h.
Originally committed as revision 29186 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
16 years ago
Ramiro Polla
10a7d21672
Rename RUNTIME_CPUDETECT to CONFIG_RUNTIME_CPUDETECT and always define it.
...
Originally committed as revision 29154 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
16 years ago
Ramiro Polla
dd4090256c
swscale: Remove X86 commented out code.
...
Originally committed as revision 29149 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
14d5c18c98
swscale: {}-related cosmetics.
...
Originally committed as revision 29144 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
16 years ago
Ramiro Polla
7ac4032784
swscale: Add const to some swScale functions' parameters.
...
Originally committed as revision 29143 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
16 years ago
Cédric Schieli
4626ee1a8c
Adds "YUYV422 to YUVA420P" and "UYVY422 to YUVA420P" unscaled convertion
...
Originally committed as revision 29048 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
16 years ago