1
0
mirror of https://github.com/mpv-player/mpv synced 2025-04-01 23:00:41 +00:00
Commit Graph

134 Commits

Author SHA1 Message Date
Uoti Urpala
0a39709c15 Move screen_size_xy to options struct 2008-04-25 03:34:28 +03:00
Uoti Urpala
b14909a955 Move opt_screen_size_[x|y] to options struct 2008-04-25 03:34:27 +03:00
Uoti Urpala
0e757bf9da Remove _s/_st suffix from some struct names
Since the names are always used after the keyword "struct" having a
suffix as in "struct demuxer_st" is almost completely pointless.
2008-04-25 03:34:22 +03:00
reimar
b95c80ca86 Make all vf_info_t structs const
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25249 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-12-02 14:57:15 +00:00
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
arpi
409f2f0ada move some verbose msg to dbg2
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9277 b3059339-0415-0410-9bf9-f77b7e298cf2
2003-02-04 17:51:39 +00:00
michael
49a3af8585 fixing rgb4 & bgr4 (2 pixels per byte)
adding bg4b & rg4b (1 pixel per byte)


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9172 b3059339-0415-0410-9bf9-f77b7e298cf2
2003-01-30 09:15:09 +00:00
michael
9c3153404f UYVY input
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9072 b3059339-0415-0410-9bf9-f77b7e298cf2
2003-01-23 09:35:22 +00:00
arpi
e635c0d02d exporting palette for 4/8bpp modes
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7784 b3059339-0415-0410-9bf9-f77b7e298cf2
2002-10-17 21:53:30 +00:00
michael
c7c35d3208 yuy2 output support
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7721 b3059339-0415-0410-9bf9-f77b7e298cf2
2002-10-13 00:30:38 +00:00
arpi
1c014d0cfb out formats reordered, quality order
(we should prefer 422P to YV12 if available...)


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7404 b3059339-0415-0410-9bf9-f77b7e298cf2
2002-09-15 13:36:37 +00:00
arpi
c7944423a3 changing return type of put_image void->int
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7369 b3059339-0415-0410-9bf9-f77b7e298cf2
2002-09-10 22:18:32 +00:00
michael
788451afa7 typo fix, patch by (Eric Lammerts <eric at lammerts dot org>)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7045 b3059339-0415-0410-9bf9-f77b7e298cf2
2002-08-18 22:46:03 +00:00
arpi
d3374e2065 imho swscale also likes aligned stride :)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6877 b3059339-0415-0410-9bf9-f77b7e298cf2
2002-08-02 22:57:58 +00:00
michael
bfe5d4d4b4 planar yuv 444 422 411 support
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6864 b3059339-0415-0410-9bf9-f77b7e298cf2
2002-08-01 12:39:08 +00:00
kmkaplan
1909c80216 Put back the ordering of the if as requested by Arpi.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6751 b3059339-0415-0410-9bf9-f77b7e298cf2
2002-07-18 16:14:27 +00:00
kmkaplan
e2e5f63009 Round height or width to valid values when doing automatic calculation.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6747 b3059339-0415-0410-9bf9-f77b7e298cf2
2002-07-18 14:06:32 +00:00
alex
3f457aa9b7 support for external pp by divx4. some fixes/cosmetics?
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6709 b3059339-0415-0410-9bf9-f77b7e298cf2
2002-07-11 19:16:30 +00:00
michael
de90a774d9 more scaling algos
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6638 b3059339-0415-0410-9bf9-f77b7e298cf2
2002-07-04 13:08:37 +00:00
michael
ecff630554 support dropping some chroma src lines for a bit extra speed
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6543 b3059339-0415-0410-9bf9-f77b7e298cf2
2002-06-24 01:05:41 +00:00
arpi
a72a759aba IF09 added
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6537 b3059339-0415-0410-9bf9-f77b7e298cf2
2002-06-23 19:31:31 +00:00
michael
10456fb947 yvu9 & y8
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6534 b3059339-0415-0410-9bf9-f77b7e298cf2
2002-06-23 18:53:46 +00:00
arpi
086c324692 warning fixes, patch by Ulrich Hecht <uli@suse.de>
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6189 b3059339-0415-0410-9bf9-f77b7e298cf2
2002-05-25 13:22:28 +00:00
arpi
c835270280 big cosmetics patch, cleanup of messages printed by mplayer and libs.
some printf->mp_msg conversion, and some debug messages moved from warn/info to v/dbg2
mplayer's output is now shorter, readable and consistent


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6139 b3059339-0415-0410-9bf9-f77b7e298cf2
2002-05-20 03:25:26 +00:00
arpi
4cb6458382 new special w/h values: -2 and -3. based on proposal by Bohdan Horst <nexus@hoth.amu.edu.pl>
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6127 b3059339-0415-0410-9bf9-f77b7e298cf2
2002-05-19 23:39:42 +00:00
arpi
6ab0d987ad keep aspect ratio - based on Fredrik Kuivinen's idea
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6061 b3059339-0415-0410-9bf9-f77b7e298cf2
2002-05-12 19:06:15 +00:00
arpi
24a34ce613 w/h=0 means d_w/h instead of original
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6004 b3059339-0415-0410-9bf9-f77b7e298cf2
2002-05-06 22:50:02 +00:00
arpi
af898e75d3 swscaler yv12 vs i420 workaround
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5713 b3059339-0415-0410-9bf9-f77b7e298cf2
2002-04-19 23:29:41 +00:00
arpi
2bea9b36a7 mp_image.h and img_format.h moved to libmpcodecs
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5608 b3059339-0415-0410-9bf9-f77b7e298cf2
2002-04-13 19:14:34 +00:00
arpi
39e3a780ce capabilities support -> automatic insertion of scale, expand, pp
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5566 b3059339-0415-0410-9bf9-f77b7e298cf2
2002-04-11 20:56:17 +00:00
arpi
647b4aa808 pp passtrough
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5528 b3059339-0415-0410-9bf9-f77b7e298cf2
2002-04-08 00:06:03 +00:00
arpi
dd031af91c free old context, really use query_format
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5527 b3059339-0415-0410-9bf9-f77b7e298cf2
2002-04-07 23:30:59 +00:00
arpi
f8e40dfce6 10l
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5526 b3059339-0415-0410-9bf9-f77b7e298cf2
2002-04-07 22:45:07 +00:00
arpi
5679435133 colorspace conversion support
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5524 b3059339-0415-0410-9bf9-f77b7e298cf2
2002-04-07 21:33:42 +00:00
arpi
abd870166d swscale filter
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5523 b3059339-0415-0410-9bf9-f77b7e298cf2
2002-04-07 20:21:37 +00:00