Commit Graph

51 Commits

Author SHA1 Message Date
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 fa58eb8846 Do not mix declarations and statements.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20600 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-11-01 19:44:35 +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
lucabe 239933c040 Properly set EXTRALIBS
(fixes compilation of shared libswscale on cygwin and other platforms)


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20413 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-10-23 14:03:49 +00:00
diego 4e9514a058 Rename ABS macro to FFABS.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20169 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-10-11 23:18:34 +00:00
diego ed967a434b Move CFLAGS handling to common.mak.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20154 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-10-11 08:30:22 +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 f9477d0581 Replace -I.. by -I$(BUILD_ROOT).
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20094 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-10-07 09:23:09 +00:00
diego e801f101df Simplify test program build.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20073 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-10-05 17:11:05 +00:00
diego 1240e6bde5 Test programs depend on $(LIB).
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20059 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-10-05 00:57:48 +00:00
diego 9c19753fcc FFmpeg uses -D_ISOC9X_SOURCE and not -D_GNU_SOURCE in CFLAGS.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20057 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-10-04 22:18:40 +00:00
diego 254a1757fa Remove cs_test and swscale-example on clean.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20040 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-10-04 14:02:42 +00:00
diego 767bf9402f Remove redundant EXTRALIBS declaration.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20039 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-10-04 14:00:14 +00:00
diego 17a374e14b Simplify compilation call by using $(EXTRALIBS).
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20038 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-10-04 13:56:24 +00:00
diego 8b9ca10a4d Fix warnings:
swscale-example.c:87: warning: implicit declaration of function 'sws_format_name'
swscale-example.c:214: warning: implicit declaration of function 'sws_rgb2rgb_init'


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20037 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-10-04 13:54:56 +00:00
diego 04acb4f27e Fix warnings:
cs_test.c:62: warning: return type defaults to 'int'
cs_test.c:64: warning: implicit declaration of function 'memalign'


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20036 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-10-04 13:51:12 +00:00
aurel ae22c7d3f7 make some global var static (fix a build failure with shared lib on x86_64)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20024 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-10-03 23:51:32 +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
diego da4223291d Remove unused variables.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20012 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-10-01 14:17:45 +00:00
lucabe 47cfa9e755 Add support for YUVJ formats
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19993 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-09-27 11:41:36 +00:00
lucabe abfb2f049a Improve swscale-example to test conversions between all the possible
pixel formats


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19965 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-09-24 09:55:18 +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
lucabe a9aca9d644 Fix the PIX_FMT_* ---> IMGFMT_* conversion (PIX_FMT_RGB32 is IMGFMT_BGR32)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19875 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-09-17 14:59:55 +00:00
diego af5a781e05 Add proper GPL headers.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19772 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-09-09 21:10:26 +00:00
diego 6370bb03d8 Add official GPL header to make license explicit as discussed on ffmpeg-devel.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19709 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-09-06 10:24:19 +00:00
gpoirier 268a7af2f4 Add sws_getCachedContext(), which checks if context is valid or reallocs a new one instead.
Patch by Victor Paesa <wzrlpy@arsystel.com>
Original thread:
Date: Aug 31, 2006 7:15 PM
Subject: [Ffmpeg-devel] [PATCH] Add sws_getCachedContext() to swscale library


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19667 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-09-04 09:38:24 +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
lucabe dc1959af89 Allow to compile swscale tests
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19476 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-08-21 12:15:29 +00:00
diego 77b4259600 Explicitly include libmpcodecs/img_format.h and libvo/fastmemcpy.h.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19437 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-08-18 13:58:03 +00:00
diego b02e7924b9 Move all internal -I parameters to the front of CFLAGS to avoid using external
header files that happen to have the same name as internal ones.
based on a patch by Vladislav Naumov, vladislav.naumov **at** gmail **dot** com


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19426 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-08-17 17:19:56 +00:00
lucabe b4d8744e68 Fix compilation as a win32 shared library (libavutil must be explicitly linked)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19416 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-08-16 20:09:47 +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
uau 2ed77686c7 Use COMPILE_MMX2 instead of HAVE_MMX2 to determine whether to compile
MMX2 code, because the HAVE_ defines do not have sane values here if
runtime cpudetection is used. Hopefully fixes runtime cpudetection
breakage from r19339.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19374 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-08-12 17:46:40 +00:00
diego 1ff914c6a9 Fix compilation with MMX disabled, the mmx_null and mmx_one constants don't need to
be protected by HAVE_MMX.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19367 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-08-11 12:50:14 +00:00
lucabe f5bb104820 Another PIX_FMT_ ---> IMGFMT_ conversion
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19342 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-08-05 13:14:34 +00:00
diego c869e5d1b1 Do not assemble MMX, MMX2 or 3DNOW code unconditionally on X86 and X86_64.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19339 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-08-05 10:00:54 +00:00
lucabe d3b998da64 Add support for ffmpeg's pixel format names in libswscale
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19276 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-07-31 12:35:04 +00:00
diego 66ee8ce70a Comment some #endif lines.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19211 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-07-28 09:07:09 +00:00
pacman 51b500634b Fix compile error due to extra "FF" at beginning of file in the FF{MIN,MAX}
update


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19205 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-07-27 19:35:30 +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
michael 838a64f308 a tiny bit of cleanup
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19178 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-07-24 10:48:54 +00:00
michael 14ddfdddf8 vertical scaler with accurate rounding, some people on doom9 can see +-1 errors
the +-1 issue is limited to >2tap vertical filters, so bilinear upscale was unaffected
the new code is sometime faster sometimes slower but the difference is significant (~20%) so its optional and enabled with arnd=1


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19177 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-07-24 10:36:06 +00:00
pacman ea0995d63d Fix typo introduced in the memalign->av_malloc conversion (there is no
mv_malloc)


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19174 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-07-23 21:16:11 +00:00
reimar b0821a7efc Missing part of the malloc -> av_malloc patch: memalign must be replaced as well!
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19173 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-07-23 18:07:26 +00:00
lucabe 0860745385 Use libavutil in libswscale, and allow it to be built out of the mplayer tree
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19148 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-07-20 12:13:57 +00:00
lucabe 1e56d3bf13 make libswscale build system similar to the libav* one
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18994 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-07-10 12:35:52 +00:00
lucabe 4e56b4f512 Remove unneeded code
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18880 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-07-01 14:39:14 +00:00