aboutsummaryrefslogtreecommitdiffhomepage
path: root/libmpcodecs/vf_scale.c
Commit message (Collapse)AuthorAge
* One more fix for -vf scale with alpha.Gravatar reimar2010-01-01
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30159 b3059339-0415-0410-9bf9-f77b7e298cf2
* Also pass alpha plane to swscale, avoids crashes when converting betweenGravatar reimar2010-01-01
| | | | | | | YUV with alpha and some other format supporting alpha. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30158 b3059339-0415-0410-9bf9-f77b7e298cf2
* Add support for YUV format with alpha and fix the codecs.conf entry for vp6aGravatar reimar2009-12-31
| | | | | | | | to use it. Fixes playback of samples in http://samples.mplayerhq.hu/FLV/flash_with_alpha/ git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30157 b3059339-0415-0410-9bf9-f77b7e298cf2
* Try to put the list of output formats for vf_scale in a more sensibleGravatar reimar2009-12-31
| | | | | | | | | order. While the 16-bit yuv formats should not be preferred over the 8-bit ones, it seems reasonable to probe them directly after the equivalent 8-bit formats. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30155 b3059339-0415-0410-9bf9-f77b7e298cf2
* Add support for 16-bit per component YUV formats.Gravatar reimar2009-12-31
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30152 b3059339-0415-0410-9bf9-f77b7e298cf2
* Support 440P in scale filter.Gravatar reimar2009-12-30
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30142 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove unreachable parsing code: for filters that use the option parser,Gravatar reimar2009-11-21
| | | | | | | | the args argument to open will always be NULL and vf->priv will always be != NULL. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29945 b3059339-0415-0410-9bf9-f77b7e298cf2
* Allow vf_scale to output to RGB48, though still prefer the 24 and 32 bit ↵Gravatar reimar2009-11-21
| | | | | | formats. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29943 b3059339-0415-0410-9bf9-f77b7e298cf2
* Add IMGFMT_RGB48LE and IMGFMT_RGB48BE.Gravatar cehoyos2009-08-11
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29486 b3059339-0415-0410-9bf9-f77b7e298cf2
* Replace WORDS_BIGENDIAN by HAVE_BIGENDIAN in all internal code.Gravatar diego2009-07-26
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29443 b3059339-0415-0410-9bf9-f77b7e298cf2
* whitespace cosmetics: Remove all trailing whitespace.Gravatar diego2009-05-13
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29305 b3059339-0415-0410-9bf9-f77b7e298cf2
* Consistently use MP_MAX_PLANES as size for plane pointer/stride arrays in ↵Gravatar reimar2009-03-29
| | | | | | | | | | libmpcodecs. This might avoid some issues since sws_scale in some cases assumes these have at least 4 valid entries. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29103 b3059339-0415-0410-9bf9-f77b7e298cf2
* revert #ifdef WORDS_BIGENDIAN => #if WORDS_BIGENDIAN changes from r28331Gravatar gpoirier2009-01-16
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28334 b3059339-0415-0410-9bf9-f77b7e298cf2
* fix compilation on non x86 machines (PPC here)Gravatar gpoirier2009-01-16
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28331 b3059339-0415-0410-9bf9-f77b7e298cf2
* Lots and lots of #ifdef ARCH_... -> #if ARCH_...Gravatar reimar2009-01-16
| | | | | | | | and #ifdef HAVE_MMX etc -> #if HAVE_MMX. There might be still more that need to be fixed. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28325 b3059339-0415-0410-9bf9-f77b7e298cf2
* Change all occurrences of asm and __asm to __asm__, same as was done for FFmpeg.Gravatar diego2008-10-16
| | | | | | | Neither variant is valid C99 syntax, but __asm__ is the most portable variant. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27788 b3059339-0415-0410-9bf9-f77b7e298cf2
* Factorize "int i".Gravatar michael2008-05-11
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26735 b3059339-0415-0410-9bf9-f77b7e298cf2
* Consistently #include mpbswap.h instead of bswap.h everywhere.Gravatar diego2008-04-28
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26574 b3059339-0415-0410-9bf9-f77b7e298cf2
* Make all vf_info_t structs constGravatar reimar2007-12-02
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25249 b3059339-0415-0410-9bf9-f77b7e298cf2
* warning fix:Gravatar diego2007-08-28
| | | | | | | 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
* 100l, fix compile error in r23498 due to bad copy in pasteGravatar reimar2007-06-07
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23499 b3059339-0415-0410-9bf9-f77b7e298cf2
* RGB8/BGR8 IMGFMTs are paletted in case of swscale input.Gravatar reimar2007-06-07
| | | | | | | 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
* Remove useless fastmemcpy.h include for filters that do not even do any memcpy.Gravatar reimar2007-05-27
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23391 b3059339-0415-0410-9bf9-f77b7e298cf2
* swap palette on big endianGravatar michael2007-02-17
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22246 b3059339-0415-0410-9bf9-f77b7e298cf2
* palette init code for IMGFMT_RGB4 and IMGFMT_RG4BGravatar michael2007-02-17
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22245 b3059339-0415-0410-9bf9-f77b7e298cf2
* add IMGFMT_RGB8 palette init code what moron actually added init code just ↵Gravatar michael2007-02-17
| | | | | | for half of the formats?! git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22243 b3059339-0415-0410-9bf9-f77b7e298cf2
* another ridiculous palette bug which has nothing to do with the new palete ↵Gravatar michael2007-02-17
| | | | | | support in sws git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22242 b3059339-0415-0410-9bf9-f77b7e298cf2
* PAL8 ...Gravatar michael2007-02-16
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22237 b3059339-0415-0410-9bf9-f77b7e298cf2
* Mark m_struct_t defaults as constGravatar reimar2007-01-28
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22045 b3059339-0415-0410-9bf9-f77b7e298cf2
* Use PIX_FMT_* instead of IMGFMT_* when calling sws_getContext()Gravatar lucabe2006-09-17
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19876 b3059339-0415-0410-9bf9-f77b7e298cf2
* A value of 2 is valid for noup, tooGravatar reimar2006-08-24
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19526 b3059339-0415-0410-9bf9-f77b7e298cf2
* vertical scaler with accurate rounding, some people on doom9 can see +-1 errorsGravatar michael2006-07-24
| | | | | | | | 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
* Move postproc ---> libswscaleGravatar lucabe2006-06-30
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18866 b3059339-0415-0410-9bf9-f77b7e298cf2
* Convert all if(verbose>X) to mp_msg_test calls.Gravatar diego2006-03-24
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17933 b3059339-0415-0410-9bf9-f77b7e298cf2
* passing pts through the filter layer (lets see if pts or cola comes out at ↵Gravatar michael2006-03-21
| | | | | | the end) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17907 b3059339-0415-0410-9bf9-f77b7e298cf2
* 10l (dont limit dimension components independantly if noup)Gravatar michael2006-02-24
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17675 b3059339-0415-0410-9bf9-f77b7e298cf2
* no upscale flag so automatic downscaling is possible in mencoderGravatar michael2006-02-18
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17647 b3059339-0415-0410-9bf9-f77b7e298cf2
* Patch by Stefan Huehner / stefan % huehner ! org \Gravatar rathann2006-02-09
| | | | | | | | | | | | | | | | | | | | | | 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
* deobfuscate some very simple code...Gravatar ods152005-12-17
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17216 b3059339-0415-0410-9bf9-f77b7e298cf2
* Unify include path handling, -I.. is in CFLAGS.Gravatar diego2005-11-18
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17013 b3059339-0415-0410-9bf9-f77b7e298cf2
* 10lGravatar alex2005-05-21
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15538 b3059339-0415-0410-9bf9-f77b7e298cf2
* subtracting 8 from negative w and h rounds the dimension to the closest ↵Gravatar nicodvb2005-03-06
| | | | | | multiple of 16 git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14925 b3059339-0415-0410-9bf9-f77b7e298cf2
* Improved NV12/NV21 support.Gravatar syrjala2005-02-16
| | | | | | | | | | | - 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
* fix for negative values for width and height (aspect-preserving scaling).Gravatar reimar2004-11-12
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@13926 b3059339-0415-0410-9bf9-f77b7e298cf2
* passing an array or double precission parameters for the scaling function, ↵Gravatar michael2004-09-18
| | | | | | | | | 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
* do not modify d_width and d_height when -xy option was given, otherwise -xy ↵Gravatar reimar2004-09-06
| | | | | | has no effect with e.g. vo_gl git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@13269 b3059339-0415-0410-9bf9-f77b7e298cf2
* give Y8 and Y800 lower conversion priority to avoid grayscaled videoGravatar reimar2004-05-14
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12476 b3059339-0415-0410-9bf9-f77b7e298cf2
* prefer yuv formats over rgb in case both are supported by hwGravatar faust32004-04-23
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12261 b3059339-0415-0410-9bf9-f77b7e298cf2
* AltiVec support in postproc/ + altivec optimizations for yuv2yuvX patch by ↵Gravatar michael2004-03-11
| | | | | | (Romain Dolbeau <dolbeau at irisa dot fr>) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12018 b3059339-0415-0410-9bf9-f77b7e298cf2
* interlaced scalingGravatar michael2003-12-29
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@11701 b3059339-0415-0410-9bf9-f77b7e298cf2