Commit Graph

80 Commits

Author SHA1 Message Date
diego 2c74f01a5f warning fix:
vf_scale.c:359:92: warning: trigraph ??) ignored, use -trigraphs to enable


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24269 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-08-28 17:06:00 +00:00
reimar 6b7e82c9eb 100l, fix compile error in r23498 due to bad copy in paste
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23499 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-06-07 20:01:05 +00:00
reimar 34af64d86b RGB8/BGR8 IMGFMTs are paletted in case of swscale input.
Actually they are also for output, but swscale does not support PIX_FMT_PAL8 output.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23498 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-06-07 19:11:25 +00:00
reimar 13fa313b55 Remove useless fastmemcpy.h include for filters that do not even do any memcpy.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23391 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-05-27 20:36:04 +00:00
michael 28f35b52f6 swap palette on big endian
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22246 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-02-17 12:58:35 +00:00
michael 8fd50571b0 palette init code for IMGFMT_RGB4 and IMGFMT_RG4B
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22245 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-02-17 11:40:01 +00:00
michael 6b328af8eb add IMGFMT_RGB8 palette init code what moron actually added init code just for half of the formats?!
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22243 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-02-17 11:34:25 +00:00
michael 29aefa57b4 another ridiculous palette bug which has nothing to do with the new palete support in sws
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22242 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-02-17 11:04:13 +00:00
michael 40bbdc2358 PAL8 ...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22237 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-02-16 21:17:41 +00:00
reimar 6d32d91eca Mark m_struct_t defaults as const
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22045 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-01-28 16:48:01 +00:00
lucabe 1f88518638 Use PIX_FMT_* instead of IMGFMT_* when calling sws_getContext()
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19876 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-09-17 15:02:13 +00:00
reimar fa94660a60 A value of 2 is valid for noup, too
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19526 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-08-24 17:21:03 +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
lucabe cc30aae17b Move postproc ---> libswscale
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18866 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-06-30 12:00:31 +00:00
diego eebf08b978 Convert all if(verbose>X) to mp_msg_test calls.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17933 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-03-24 08:12:03 +00:00
michael 02b199e5e9 passing pts through the filter layer (lets see if pts or cola comes out at the end)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17907 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-03-21 21:26:42 +00:00
michael 593dda77e9 10l (dont limit dimension components independantly if noup)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17675 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-02-24 15:22:59 +00:00
michael 8f51734daf no upscale flag so automatic downscaling is possible in mencoder
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17647 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-02-18 21:12:56 +00:00
rathann e7db4ccf1a Patch by Stefan Huehner / stefan % huehner ! org \
patch replaces '()' for the correct '(void)' in function
declarations/prototypes which have no parameters. The '()' syntax tell
thats there is a variable list of arguments, so that the compiler cannot
check this. The extra CFLAG '-Wstrict-declarations' shows those cases.

Comments about a similar patch applied to ffmpeg:

That in C++ these mean the same, but in ANSI C the semantics are
different; function() is an (obsolete) K&R C style forward declaration,
it basically means that the function can have any number and any types
of parameters, effectively completely preventing the compiler from doing
any sort of type checking. -- Erik Slagter

Defining functions with unspecified arguments is allowed but bad.
With arguments unspecified the compiler can't report an error/warning
if the function is called with incorrect arguments. -- Måns Rullgård


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17567 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-02-09 14:08:03 +00:00
ods15 87b66affe9 deobfuscate some very simple code...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17216 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-12-17 20:00:16 +00:00
diego 36e1974be0 Unify include path handling, -I.. is in CFLAGS.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17013 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-11-18 14:39:25 +00:00
alex 6ee561dbc4 10l
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15538 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-05-21 15:00:27 +00:00
nicodvb 0cde424897 subtracting 8 from negative w and h rounds the dimension to the closest multiple of 16
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14925 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-03-06 21:15:24 +00:00
syrjala c260a1139d Improved NV12/NV21 support.
- Fixed PlanarToNV12Wrapper() and made it handle NV21.
- Added yuv2nv12XinC() to handle software scaling.
- Added NV12/NV21 handling to various places.
- Removed NV12 from vf_hue and vf_spp as they don't look like they can
  actually handle it.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14716 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-02-16 23:47:00 +00:00
reimar e006508ab8 fix for negative values for width and height (aspect-preserving scaling).
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@13926 b3059339-0415-0410-9bf9-f77b7e298cf2
2004-11-12 11:15:26 +00:00
michael 54df7e4a3e passing an array or double precission parameters for the scaling function, instead of missusing a few bits of the flags
fixing the naming of the scaling functions a little


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@13374 b3059339-0415-0410-9bf9-f77b7e298cf2
2004-09-18 00:08:17 +00:00
reimar 2fa8fe4ad3 do not modify d_width and d_height when -xy option was given, otherwise -xy has no effect with e.g. vo_gl
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@13269 b3059339-0415-0410-9bf9-f77b7e298cf2
2004-09-06 21:26:46 +00:00
reimar 7c496e41ee give Y8 and Y800 lower conversion priority to avoid grayscaled video
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12476 b3059339-0415-0410-9bf9-f77b7e298cf2
2004-05-14 21:08:53 +00:00
faust3 571b28ad1a prefer yuv formats over rgb in case both are supported by hw
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12261 b3059339-0415-0410-9bf9-f77b7e298cf2
2004-04-23 15:24:24 +00:00
michael e61fb5349a AltiVec support in postproc/ + altivec optimizations for yuv2yuvX patch by (Romain Dolbeau <dolbeau at irisa dot fr>)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12018 b3059339-0415-0410-9bf9-f77b7e298cf2
2004-03-11 17:58:11 +00:00
michael 184852b051 interlaced scaling
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@11701 b3059339-0415-0410-9bf9-f77b7e298cf2
2003-12-29 14:16:07 +00:00
alex 4739e551fb uninit support
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@11538 b3059339-0415-0410-9bf9-f77b7e298cf2
2003-11-29 19:40:30 +00:00
michael 0334cc4729 another lame workaround for the g1 filter layer ...
now filter chains with >8 scale filters initalize before u fall asleep


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@11374 b3059339-0415-0410-9bf9-f77b7e298cf2
2003-11-03 12:15:32 +00:00
alex a31340614b some missing formats
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@11070 b3059339-0415-0410-9bf9-f77b7e298cf2
2003-10-09 22:32:30 +00:00
alex 697d692f4c uyvy output support in swscaler
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@11069 b3059339-0415-0410-9bf9-f77b7e298cf2
2003-10-09 22:25:53 +00:00
alex 112e0a35f1 size presets: added the standard resolutions as proposed by Fabrice (ffmpeg)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10815 b3059339-0415-0410-9bf9-f77b7e298cf2
2003-09-05 15:30:46 +00:00
michael 2bff57da7f -brightness && -vf scale fix
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10633 b3059339-0415-0410-9bf9-f77b7e298cf2
2003-08-16 19:22:11 +00:00
michael 5b882e5130 vf_scale.h & related cleanup & some small warning fix by dominik
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10234 b3059339-0415-0410-9bf9-f77b7e298cf2
2003-06-01 21:59:29 +00:00
rfelker 8b0fe12840 fix segfaults with slices. support slice rendering into a filter even
when the following filter/vo doesn't support slices. also use unified
vf->dmpi rather than having vf->priv->dmpi duplicated in every filter.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10141 b3059339-0415-0410-9bf9-f77b7e298cf2
2003-05-20 17:42:33 +00:00
alex d918952db8 not needed anymore (vo_jpeg.c and vo_dga.c were depending on it some time ago)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10023 b3059339-0415-0410-9bf9-f77b7e298cf2
2003-04-29 17:17:38 +00:00
rfelker 70d3248840 generate meaningful d_width & d_height when scaling, rather than useless nonsense.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10003 b3059339-0415-0410-9bf9-f77b7e298cf2
2003-04-27 10:04:39 +00:00
michael 6c662cfb25 moving getFilter stuff back (vf_scale.c -> swscale.c)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9986 b3059339-0415-0410-9bf9-f77b7e298cf2
2003-04-25 11:26:34 +00:00
michael 0f929103ed removing sws - global verbose var dependancy
removing sws - cpudetect dependancy (note rgb2rgb still needs it)
moving mplayer specific stuff from swscale.c -> vf_scale.c


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9976 b3059339-0415-0410-9bf9-f77b7e298cf2
2003-04-24 17:04:20 +00:00
michael f0626e2f8d vf_clone_mpi_attributes()
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9935 b3059339-0415-0410-9bf9-f77b7e298cf2
2003-04-19 02:48:53 +00:00
michael 20faf3dc0d 10000l (YUV vs. YVU swscale fix/cleanup)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9698 b3059339-0415-0410-9bf9-f77b7e298cf2
2003-03-27 16:04:53 +00:00
albeu 72cd49c5f2 10L the scale filter accpet w and h to -3
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9599 b3059339-0415-0410-9bf9-f77b7e298cf2
2003-03-15 20:39:05 +00:00
albeu 33b62af947 Add the new -vf option wich is the same as vop in reverse order.
Syntax is we decided, so you can give the nomes or not with both
vop and vf. vf take precedence over vop.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9594 b3059339-0415-0410-9bf9-f77b7e298cf2
2003-03-15 18:01:02 +00:00
michael 41b847f6a8 sws_ prefix, more seperation between internal & external swscaler API
sws_scale() returns the number of outputed lines


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9495 b3059339-0415-0410-9bf9-f77b7e298cf2
2003-02-23 22:05:55 +00:00
arpi 2074da4092 draw_slice support
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9492 b3059339-0415-0410-9bf9-f77b7e298cf2
2003-02-23 20:40:46 +00:00
michael 274db98899 yuv2rgb brightness/contrast/saturation/different colorspaces support finished
yuv2rgb deglobalize
yuv2rgb optimizations / cleanup
bugs?


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9477 b3059339-0415-0410-9bf9-f77b7e298cf2
2003-02-21 20:35:18 +00:00