Commit Graph

53 Commits

Author SHA1 Message Date
michael 17b0917069 Make C code in yuv2yuv1() do accurate rounding, this could be split
depending on SWS_ACCURATE as well if someone wants.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27323 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-07-18 00:09:09 +00:00
michael 3076d107cf indent
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27322 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-07-17 23:43:48 +00:00
michael 8db6dab345 Forgotten accurate rounding function YSCALEYUV2YV121_ACCURATE.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27321 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-07-17 23:42:06 +00:00
michael e96aa16d0c simplify yuv2yuv1()
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27320 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-07-17 23:35:36 +00:00
lu_zero d34eccfec3 Remove ASSERT() macro. SoC Patch from Keiji Costantini
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27214 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-07-06 03:32:47 +00:00
diego 1e95d9f4ef spelling/grammar/wording overhaul
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27190 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-07-04 13:49:45 +00:00
bcoudurier 76b6861d77 cast to correct type, suppress warnings
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26946 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-06-01 03:28:15 +00:00
diego cf09f76844 cosmetics: comment typo fixes
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26269 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-03-22 17:35:32 +00:00
bcoudurier 7bda4c32f1 remove redundant SwScaler text since av_log uses AVClass context
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26182 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-03-06 09:51:25 +00:00
michael 5022909fa8 Turn ancient V offset numerical constants into named ones.
Add a check that checks that the width is within the chosen constant.
This might have been exploitable.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26165 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-03-05 03:00:25 +00:00
reimar 4825a2ee81 __asm __volatile -> asm volatile part 3
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26091 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-02-24 14:59:16 +00:00
cehoyos 50899e9083 Discard two symbols from libswscale.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26060 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-02-22 08:08:19 +00:00
reimar da8ab92c7d Make some assembler constants global instead of declaring them multiple times.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25910 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-01-29 14:58:10 +00:00
benoit 024ccaccf7 Change (a == NULL) condition to (!a) and (a != NULL) condition to (a).
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25780 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-01-17 15:49:31 +00:00
benoit 821d1ccea5 Remove non cosmetic spaces inside parentheses.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25777 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-01-17 08:57:15 +00:00
diego 4548f6964e Comment some #endif directives.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25211 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-30 13:21:20 +00:00
diego a6682b3a81 The function names of [rgb|bgr]1[56]to[UV|Y] had rgb<->bgr flipped.
Rename them to match the actual implementation. Fixes issue 162.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24965 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-04 12:34:46 +00:00
diego b3d59ea908 license header consistency cosmetics
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23722 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-07-05 10:18:58 +00:00
diego 78fb17276c comment grammar fixes
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23685 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-06-28 11:18:16 +00:00
ivo fba7257f2d remove the need of one extra shift in rgb16ToUV
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23281 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-05-09 21:34:05 +00:00
ivo 4d9f279a66 Fix rgb15ToUV. Correct order of components and use one shift less.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23279 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-05-09 17:29:20 +00:00
diego 8caae48738 cosmetics attack, part IV: Remove all tabs and prettyprint/reindent the code.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23179 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-04-30 08:05:29 +00:00
diego 95000b0ca7 cosmetics: Remove trailing whitespace.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23147 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-04-26 23:07:11 +00:00
michael a381e71128 improve horizontal chroma resolution with pal
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22994 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-04-15 01:27:34 +00:00
michael 31be965950 convert palette to yuv instead of converting each pixel after pal->rgb
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22993 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-04-15 00:53:32 +00:00
diego 2a39682956 typo
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22932 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-04-07 14:07:51 +00:00
reimar 0f2246a083 Fix a possible crash on 64 bit systems when the lumSrcPtr or chrSrcPtr
does not fit in 32 bits. The SWS_ACCURATE_RND is still broken though.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22401 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-03-01 19:48:40 +00:00
reimar 0b7929b8ad Add av_ prefix to clip functions
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22339 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-02-25 10:27:43 +00:00
michael 2a0c4363cf BGR/RGB4 byte formats as input
fixing isRGB/BGR() for the byte formats


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22244 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-02-17 11:36:02 +00:00
michael db9d35b669 pal8 input
this is not optimized or anything (that is easy to add just use the existing unscaled converters if possible ...)


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22236 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-02-16 21:17:15 +00:00
lucabe aaac7f6eaf Pass a context to av_log(), when possible
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21999 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-01-23 13:41:45 +00:00
lucabe 43aa3a1b7e change all the occurrences of "FFMIN(FFMAX())" to clip_uint8() or clip()
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21776 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-12-26 18:08:40 +00:00
lucabe c5c0e11eeb Add some explicit casts to avoid some warnings
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21772 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-12-26 16:21:13 +00:00
lucabe 774b22c0d1 Fix compilation of non-MMX code with gcc 2.95
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21702 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-12-20 15:58:15 +00:00
reimar 6157b0b3ea Change "p" asm constraints to "g", since "p" was a no longer necessary hack to
make AMD64 compilation work and ICC can not handle "p".


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21341 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-11-27 21:59:13 +00:00
lucabe 9913060a98 Clarify that some of the non-SIMD code is now LGPLed.
All the authours of such code agreed.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21045 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-11-19 10:38:12 +00:00
michael ed3b9da081 forgotten 2 converters (yeah svn up, svn di svn ci isnt enough i should actually look at the code after svn up not just the diff ...)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20962 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-11-16 14:49:04 +00:00
michael 5a4d8d1411 fixing the lamest bug in swscale, all the rgb/bgr->* code did 2x2 downsampling for chroma, it should just be 2x1 (the rest of the code also belived its 2x1 ...)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20961 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-11-16 14:44:00 +00:00
gpoirier 1bade46a88 Fix MacIntel build: "/nop" is illegal on Apple's older version of GAS
Patch by Nigel Pearson % nigel A ind P tansu P com P au %
Original thread:
Date: Nov 6, 2006 10:43 PM
Subject: [Ffmpeg-devel] [PATCH] swscale uses /nop, illegal for old versions of GAS


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20740 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-11-07 07:07:05 +00:00
lucabe c28ed102ea Add support for conversions from the rgb565 and rgb555 formats
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20605 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-11-02 09:01:01 +00:00
diego 3570f31873 Use common define for x86_32 and x86_64.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20592 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-11-01 18:36:20 +00:00
kostya 3feb0ebd68 16-bit grayscale support
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20427 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-10-24 05:02:33 +00:00
diego 3ace93a9a6 Change license headers to say 'FFmpeg' instead of 'this program'.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20100 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-10-07 15:33:14 +00:00
diego 098bfe9f95 Fix unused variable warning when compiling with MMX disabled.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20021 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-10-03 17:11:43 +00:00
lucabe 51cd63eb1c Remove the dependency of libswscale on img_format.h
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19878 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-09-17 15:15:13 +00:00
michael d0d900423c make the C code of the swscaler which i wrote LGPL
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19600 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-08-30 10:50:20 +00:00
uau 37790bdbc4 Fix compilation with -no-PIC and without -fomit-frame-pointer (used by
--enable-debug).
Fix from Jason Tackaberry for his previous -fPIC patch.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19406 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-08-15 14:50:24 +00:00
diego 069a521627 -fPIC support for libswscale
patch by Jason Tackaberry, tack /at/ urandom /dot/ ca


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19402 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-08-15 08:47:03 +00:00
diego b89020afc8 Replace asmalign.h hack by ASMALIGN cpp macros from config.h.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19378 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-08-13 00:21:14 +00:00
lucabe 134140b1c2 Replace MIN() and MAX() with FFMIN() and FFMAX()
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19186 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-07-26 13:19:02 +00:00