ramiro
7eaf60438b
swscale-example: Don't check for chroma planes in mono formats.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29511 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-08-13 18:39:39 +00:00
ramiro
301a0e4940
MMX2 horizontal scaler: Determine code size at runtime.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29510 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-08-13 18:31:07 +00:00
ramiro
a409c31dd1
Protect mmx2 filter code buffers so they are not executable and writeable at
...
the same time (only mmap for now).
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29509 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-08-13 18:29:54 +00:00
ramiro
6f79fc6ff9
Remove duplicate define (it is the same in the lum code).
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29508 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-08-13 18:28:55 +00:00
ramiro
054bb3016f
Rename "funny" code to "mmx2 filter" code.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29507 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-08-13 18:28:17 +00:00
ramiro
f4002b6be9
Indent.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29506 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-08-13 13:18:59 +00:00
ramiro
3c4aba428f
swscale-example: Remove hack to end loop by setting variables to break.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29505 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-08-13 11:48:06 +00:00
ramiro
fef358505e
swscale-example: Don't return random value from main().
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29504 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-08-13 11:34:27 +00:00
ramiro
4f3fd1c7ea
swscale-example: Check for Gray formats.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29503 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-08-13 11:33:18 +00:00
diego
180b6a88e4
Remove disabled debug code.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29485 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-08-10 10:53:32 +00:00
ramiro
80c0fb98ba
Put some altivec code under COMPILE_ALTIVEC, and not HAVE_ALTIVEC.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29484 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-08-09 15:34:57 +00:00
kostya
1e1a332bbf
Remove 'offset' argument from PUTRGB* macros since it's unneeded and caused
...
pixel swapping during some YUV2RGB conversions.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29483 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-08-09 15:04:17 +00:00
diego
1407950a2f
Remove disabled crufty code.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29482 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-08-08 15:18:48 +00:00
cehoyos
fa7e2d8f5c
Fix regression when converting to nv12/nv21.
...
Patch by Guennadi Liakhovetski, g D liakhovetski A gmx D de
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29464 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-08-01 21:30:36 +00:00
ramiro
7c240e0268
MMX2 scaler: Remove {} block leftover from factorization in initMMX2Scaler().
...
Merge variable declarations to previous {} block and indent.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29454 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-07-28 05:45:47 +00:00
ramiro
878623ad28
MMX2 scaler: factorize initMMX2Scaler().
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29453 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-07-28 05:42:46 +00:00
ramiro
7b6fecc8b3
MMX2 scaler: add variable to ease factorization of initMMX2Scaler().
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29452 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-07-28 05:41:22 +00:00
ramiro
e0af29f2c3
Indent.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29451 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-07-28 05:14:47 +00:00
ramiro
ddbb0bc0db
Remove duplicate horizontal scaling when there aren't enough lines in a slice
...
to output the dstY line.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29450 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-07-28 05:13:36 +00:00
ramiro
deb168fc34
Remove useless code.
...
flags can never be any other kind of scaling algorithm inside this if().
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29449 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-07-28 04:46:39 +00:00
ramiro
53d5120152
Do not misuse HAVE_ defines. Introduce COMPILE_TEMPLATE_ defines and use them
...
instead.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29446 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-07-27 06:47:41 +00:00
ramiro
d7a50940f7
Factorize x86 fast_bilinear assembly.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29445 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-07-27 06:22:00 +00:00
ramiro
a7c8120418
Fix assembly comments for x86 fast_bilinear so they match the C code.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29444 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-07-27 06:20:17 +00:00
mru
b3186ed071
Replace WORDS_BIGENDIAN with HAVE_BIGENDIAN
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29439 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-07-26 12:26:32 +00:00
mru
623a2c32b9
Remove unnecessary #include <unistd.h>
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29437 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-07-23 15:23:03 +00:00
ramiro
3490d7cbfa
Remove unused variables.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29435 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-07-21 20:17:15 +00:00
ramiro
1351150b15
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.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29415 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-07-09 02:27:39 +00:00
diego
cd6a9ea77a
The AltiVec code in libswscale no longer is under GPL.
...
Remove one erroneous preprocessor check for CONFIG_GPL in the AltiVec code.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29412 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-07-05 20:10:59 +00:00
mru
ea03c9b95a
Use enum PixelFormat in sws_format_name() prototype
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29409 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-07-01 12:40:28 +00:00
diego
114b73816f
AltiVec code and runtime cpudetect do not require CONFIG_GPL.
...
Make sure the latter is only checked for x86 optimizations, which are GPL.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29390 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-06-25 20:06:03 +00:00
diego
e4ac99c4db
The AltiVec optimizations of libswscale are no longer under GPL.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29389 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-06-25 11:27:36 +00:00
diego
052fee1295
PPC: Make sure that COMPILE_C is not deactivated if RUNTIME_CPUDETECT is set.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29388 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-06-25 10:14:05 +00:00
vitor
990a1eb471
Do not call rgb2rgbWrapper() for rgb48*, there is no special converter
...
yet for those formats
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29371 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-06-17 18:40:19 +00:00
ramiro
79cbf2cc39
Kill warnings of possibly unused variables by using av_unused.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29355 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-06-11 17:10:54 +00:00
diego
3971067764
Fix compilation: #undef standard library functions that are
...
forbidden within FFmpeg, but allowed in example code.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29354 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-06-11 15:15:43 +00:00
diego
0fa66fd738
Add libavutil/internal.h #include, required for the DECLARE_ALIGNED macro.
...
This fixes swscale-example compilation.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29353 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-06-11 10:19:04 +00:00
stefano
825adf684d
Remove '\p' doxygen markup, as it should improve plain text doxy
...
readability.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29351 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-06-06 09:37:46 +00:00
ramiro
594de0a0dd
Use DECLARE_ALIGNED macro instead of __attribute__((aligned)) for ppc code.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29350 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-06-04 22:50:38 +00:00
ramiro
0318aa32cf
Replace more uses of __attribute__((aligned)) by DECLARE_ALIGNED.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29349 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-06-04 22:10:52 +00:00
ramiro
b12a88e01d
Use DECLARE_ALIGNED macro instead of gcc __attribute__.
...
Patch by Pavel Pavlov <pavel at summit-tech dot ca>
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29348 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-06-04 21:55:52 +00:00
kostya
570d0b83bd
Testing RGB48 variants requires bigger stride in swscale-example.c
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29343 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-06-02 15:35:58 +00:00
kostya
615d3ead23
YUV into RGB48 BE/LE conversion support
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29342 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-06-02 12:30:11 +00:00
kostya
071cdc07aa
Partial (low bits ignored, no direct transcoding into other RGB formats) support
...
for inputting RGB48BE/LE.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29341 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-06-02 12:28:49 +00:00
kostya
f7d2053641
Move colorspace conversion functions implemented in pure C from template
...
into swscale.c
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29320 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-05-25 16:42:54 +00:00
kostya
5b29003e0c
Let SwScaler know that RGB48 BE/LE is 16-bits per component format.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29317 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-05-19 17:37:58 +00:00
kostya
3da99d2524
Make SwScaler recognize RGB48 BE/LE colourspaces (not support though).
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29316 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-05-19 17:26:22 +00:00
diego
f46dc0b514
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
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29288 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-05-10 14:00:00 +00:00
diego
859c7ee1e3
Move preprocessor condition before variable declaration, fixes the warning:
...
libswscale/swscale.c:1795: warning: unused variable 'flags'
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29287 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-05-10 11:37:04 +00:00
diego
e4c9161560
Add missing const qualifiers to AltiVec function parameters where appropriate.
...
Fixes a couple of 'discards qualifiers from pointer target type' warnings.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29281 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-05-09 10:56:37 +00:00
vitor
19c12794ad
Fix sliced yuv410 -> yuv420 conversion
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29272 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-05-07 20:41:04 +00:00