summaryrefslogtreecommitdiffstats
path: root/libswscale
Commit message (Collapse)AuthorAgeFilesLines
* Remove stray '\' at the end of macro definitions.stefano2010-01-171-15/+14
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30362 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove duplicated or pointless newlines.stefano2010-01-171-12/+0
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30361 b3059339-0415-0410-9bf9-f77b7e298cf2
* Factorize error message logging, log it if the converter cannot bestefano2010-01-171-7/+6
| | | | | | | set. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30360 b3059339-0415-0410-9bf9-f77b7e298cf2
* Reindent after the last commit.stefano2010-01-171-15/+15
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30359 b3059339-0415-0410-9bf9-f77b7e298cf2
* Make the pal2rgbWrapper set and use the converter in pal2rgbWrapperstefano2010-01-171-2/+3
| | | | | | | | | only if the input format is paletted. Fix potential crashes/weirdness if the input format is non-paletted. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30358 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove double constmru2010-01-171-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30357 b3059339-0415-0410-9bf9-f77b7e298cf2
* Factorize error message logging in rgb2rgbWrapper().stefano2010-01-171-8/+4
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30356 b3059339-0415-0410-9bf9-f77b7e298cf2
* Reindentmru2010-01-171-2/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30350 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove inline from initFilter()mru2010-01-171-1/+1
| | | | | | It makes no sense having that function inlined. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30349 b3059339-0415-0410-9bf9-f77b7e298cf2
* Add a const qualifier in a cast, fix the gcc warning:stefano2010-01-171-1/+1
| | | | | | | | swscale.c: In function ‘sws_scale’: swscale.c:2968: warning: cast discards qualifiers from pointer target type git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30341 b3059339-0415-0410-9bf9-f77b7e298cf2
* Add a const qualifier in a cast, fix the gcc warning:stefano2010-01-171-1/+1
| | | | | | | | swscale.c: In function ‘planarCopy’: swscale.c:2256: warning: cast discards qualifiers from pointer target type git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30340 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix typo, "get rid off" -> "get rid of".stefano2010-01-161-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30338 b3059339-0415-0410-9bf9-f77b7e298cf2
* Revert r30331, which broke compilation.stefano2010-01-161-3/+12
| | | | | | | | swScale_C is not templated if any optimization is to be used and !runtime_cpudetect. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30334 b3059339-0415-0410-9bf9-f77b7e298cf2
* Prefer enum PixelFormat to int as the parameter type ofstefano2010-01-161-1/+1
| | | | | | | fmt_depth(fmt). git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30333 b3059339-0415-0410-9bf9-f77b7e298cf2
* Declare with av_unused the variable alpMmxFilter, fix the gcc warning:stefano2010-01-161-1/+1
| | | | | | | | | swscale_template.c: In function ‘swScale_C’: swscale_template.c:2580: warning: unused variable ‘alpMmxFilter’ swscale_template.c: In function ‘sws_init_swScale_C’: git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30332 b3059339-0415-0410-9bf9-f77b7e298cf2
* Factorize the code which calls the non optimized C functions instefano2010-01-161-12/+3
| | | | | | | getSwsFunc(). git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30331 b3059339-0415-0410-9bf9-f77b7e298cf2
* Prefer "to %s%s" over "to%s %s", slightly more readable.stefano2010-01-161-2/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30330 b3059339-0415-0410-9bf9-f77b7e298cf2
* Simplify code in sws_getContext() which logs if the destination formatstefano2010-01-161-6/+5
| | | | | | | | support dithering, remove the const char *dither variable and use a literal string instead. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30329 b3059339-0415-0410-9bf9-f77b7e298cf2
* Document some of SwsContext.ramiro2010-01-161-11/+18
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30328 b3059339-0415-0410-9bf9-f77b7e298cf2
* Reuse h{lum,chr}Filter{,Pos} variables for MMX2 fast_bilinear horizontal scaler.ramiro2010-01-163-20/+12
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30327 b3059339-0415-0410-9bf9-f77b7e298cf2
* Factorize code which logs the source and destination formats instefano2010-01-161-6/+4
| | | | | | | sws_getContext(). git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30326 b3059339-0415-0410-9bf9-f77b7e298cf2
* Simplify reset_ptr(): employ usePal() macro rather than enumeratingstefano2010-01-161-6/+2
| | | | | | | all the paletted formats. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30317 b3059339-0415-0410-9bf9-f77b7e298cf2
* Add symbol versioning for shared librariesmru2010-01-161-0/+4
| | | | | | Based on patch by Reinhard Tartler <siretart tauware de> git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30315 b3059339-0415-0410-9bf9-f77b7e298cf2
* Don't initialize normal horizontal filter if MMX2 filter is used.ramiro2010-01-151-17/+18
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30313 b3059339-0415-0410-9bf9-f77b7e298cf2
* Const correctness for src pointer. Remove all constness related warnings inzuxy2010-01-159-69/+69
| | | | | | | libswscale. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30306 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix typo.stefano2010-01-151-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30304 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove unused clip_table code.ramiro2010-01-141-14/+0
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30303 b3059339-0415-0410-9bf9-f77b7e298cf2
* Add const qualifier to rgb48 to YV12 functions' src.ramiro2010-01-141-4/+4
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30301 b3059339-0415-0410-9bf9-f77b7e298cf2
* Add missing parameter to rgb48 to YV12 functions.ramiro2010-01-141-3/+6
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30300 b3059339-0415-0410-9bf9-f77b7e298cf2
* /nop is illegal with Apple's older version of gas, this was fixed elsewhereconrad2010-01-121-1/+1
| | | | | | | but not here since it was unused before now. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30289 b3059339-0415-0410-9bf9-f77b7e298cf2
* Make sure that sfence is used after any non temporal stores.zuxy2010-01-121-2/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30287 b3059339-0415-0410-9bf9-f77b7e298cf2
* Avoid redefinition of RGB_PLANAR2PACKED24 as the template is included forzuxy2010-01-111-0/+1
| | | | | | | multiple times. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30273 b3059339-0415-0410-9bf9-f77b7e298cf2
* cosmetics: {} placement.ramiro2010-01-111-4/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30272 b3059339-0415-0410-9bf9-f77b7e298cf2
* MMX(2) accelerated yuv420->rgb24 routine, trivial as essentially as it justzuxy2010-01-092-98/+118
| | | | | | | swaps R and B inputs for the existing yuv420->bgr24 routine. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30254 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove unused PREFETCHW macrozuxy2010-01-092-8/+0
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30253 b3059339-0415-0410-9bf9-f77b7e298cf2
* Ignore 0-height slice in sws_scale, otherwise a final 0-height slice willreimar2010-01-081-0/+4
| | | | | | | | cause libswscale to assume the incorrect slice order and complain about slices starting in the middle. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30246 b3059339-0415-0410-9bf9-f77b7e298cf2
* Implement sws_isSupportedInput() and sws_isSupportedOutput().stefano2010-01-072-2/+26
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30236 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove const to avoid a bunch of GCC warnings against discarded qualifiers andzuxy2010-01-071-2/+2
| | | | | | | incompatible pointer type. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30234 b3059339-0415-0410-9bf9-f77b7e298cf2
* Prefer enum PixelFormat over int for the type of the format parameterstefano2010-01-031-1/+1
| | | | | | | of getSubSampleFactors(). git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30184 b3059339-0415-0410-9bf9-f77b7e298cf2
* Prefer "*FUNC_NAME(" over "* FUNC_NAME(" for thestefano2010-01-032-4/+4
| | | | | | | | swscale_configuration() and swscale_license() functions, consistent with the rest of FFmpeg. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30180 b3059339-0415-0410-9bf9-f77b7e298cf2
* Simplify usePal() macro, make it use av_pix_fmt_descriptors.stefano2010-01-031-7/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30172 b3059339-0415-0410-9bf9-f77b7e298cf2
* Simplify getSubSampleFactors(), make it use the values provided bystefano2010-01-031-47/+2
| | | | | | | av_pix_fmt_descriptors(). git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30171 b3059339-0415-0410-9bf9-f77b7e298cf2
* Do not needlessly use the BP register in x86_64-specific code, there arereimar2010-01-011-4/+4
| | | | | | | enough other registers available that are less likely to cause issues. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30160 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove unused variable, fixes the warning:diego2009-12-281-1/+0
| | | | | | | libswscale/swscale_template.c:2575: warning: unused variable ‘srcFormat’ git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30132 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove parameters no longer used in h[yc]scale().ramiro2009-12-211-10/+10
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30099 b3059339-0415-0410-9bf9-f77b7e298cf2
* Move fast bilinear scaler code to the existing h[yc]scale_fast() functions.ramiro2009-12-212-196/+196
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30098 b3059339-0415-0410-9bf9-f77b7e298cf2
* Rename function pointers used to convert from the input pixel format to theramiro2009-12-212-55/+55
| | | | | | | intermediate YV12 to a more descriptive name. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30097 b3059339-0415-0410-9bf9-f77b7e298cf2
* Check if chroma horizontal scaler is needed in sws_init_swScale().ramiro2009-12-212-4/+7
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30096 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove unused fields from SwsContext.ramiro2009-12-211-1/+0
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30095 b3059339-0415-0410-9bf9-f77b7e298cf2
* Indentation.ramiro2009-12-202-14/+14
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30087 b3059339-0415-0410-9bf9-f77b7e298cf2
* Indent.ramiro2009-12-201-2/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30086 b3059339-0415-0410-9bf9-f77b7e298cf2
* Set fast_bilinear functions in sws_init_swScale().ramiro2009-12-201-12/+10
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30085 b3059339-0415-0410-9bf9-f77b7e298cf2
* Set horizontal scaler's range conversion in context in sws_init_swScale().ramiro2009-12-202-28/+50
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30082 b3059339-0415-0410-9bf9-f77b7e298cf2
* Set horizontal scaler's src offsets in context in sws_init_swScale().ramiro2009-12-202-19/+24
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30081 b3059339-0415-0410-9bf9-f77b7e298cf2
* Document the differences between the two asm fragments in initMMX2HScaler().ramiro2009-12-071-0/+6
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29978 b3059339-0415-0410-9bf9-f77b7e298cf2
* Start using intermediate buffers at index 0.ramiro2009-12-061-2/+2
| | | | | | | | These index variables are incremented before each use, so they should be initialized to -1. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29977 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix compilation with runtime cpu detection.ramiro2009-12-051-8/+8
| | | | | | | All functions in swscale_template.c should be declared with the RENAME macro. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29976 b3059339-0415-0410-9bf9-f77b7e298cf2
* Add support for nv12/nv21 input.ramiro2009-12-032-0/+52
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29974 b3059339-0415-0410-9bf9-f77b7e298cf2
* Make sws_format_name() use av_pix_fmt_descriptors.stefano2009-11-262-110/+5
| | | | | | | This also introduces a dependency of libswscale on libavutil. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29968 b3059339-0415-0410-9bf9-f77b7e298cf2
* Add functions to return library license and library configuration.diego2009-11-182-0/+21
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29932 b3059339-0415-0410-9bf9-f77b7e298cf2
* Support VDPAU hardware accelerated decoding of MPEG-4 ASP on capablecehoyos2009-11-101-0/+2
| | | | | | | | | hardware. Original patch by NVIDIA corporation. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29885 b3059339-0415-0410-9bf9-f77b7e298cf2
* Use enum PixelFormat instead of int for srcFormat and dstFormat.cehoyos2009-11-081-8/+8
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29857 b3059339-0415-0410-9bf9-f77b7e298cf2
* Document sws_freeContext().stefano2009-11-071-0/+4
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29844 b3059339-0415-0410-9bf9-f77b7e298cf2
* Document slice ordering assumption done by sws_scale().stefano2009-10-301-1/+5
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29804 b3059339-0415-0410-9bf9-f77b7e298cf2
* Replace manual gcc version check by AV_GCC_VERSION_AT_LEAST macro.diego2009-09-221-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29701 b3059339-0415-0410-9bf9-f77b7e298cf2
* Cleanup buffer debugs in swScale().ramiro2009-09-161-14/+19
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29686 b3059339-0415-0410-9bf9-f77b7e298cf2
* Use correct buffers in vertical scaler in unscaled YV12 case.ramiro2009-09-161-3/+3
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29685 b3059339-0415-0410-9bf9-f77b7e298cf2
* Reset slice direction at end of each frame.ramiro2009-09-131-0/+8
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29675 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove ; after while(0) in macros.ramiro2009-09-121-3/+3
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29674 b3059339-0415-0410-9bf9-f77b7e298cf2
* Document that slices can be bottom to top or top to bottom.ramiro2009-09-091-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29665 b3059339-0415-0410-9bf9-f77b7e298cf2
* Indent.ramiro2009-09-072-53/+53
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29654 b3059339-0415-0410-9bf9-f77b7e298cf2
* Rename CHECKED_ALLOC(Z) to FF_ALLOC(Z)_OR_GOTO and add context and labelramiro2009-09-061-20/+20
| | | | | | | parameters. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29652 b3059339-0415-0410-9bf9-f77b7e298cf2
* Indent.ramiro2009-09-051-6/+6
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29651 b3059339-0415-0410-9bf9-f77b7e298cf2
* Make 16bit YUV formats compatible with NE avcodec_get_pix_fmt().ramiro2009-09-053-54/+54
| | | | | | Patch by Lars Täuber <lars <dot> taeuber <at> gmx <dot> net>. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29650 b3059339-0415-0410-9bf9-f77b7e298cf2
* Curly brackets cosmetics for previous commit.ramiro2009-08-291-6/+3
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29587 b3059339-0415-0410-9bf9-f77b7e298cf2
* Check for return value of initFilter().ramiro2009-08-291-8/+12
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29586 b3059339-0415-0410-9bf9-f77b7e298cf2
* Revert mistakenly commited hunk.ramiro2009-08-291-3/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29585 b3059339-0415-0410-9bf9-f77b7e298cf2
* swscale: Check for return values of malloc.ramiro2009-08-293-24/+47
| |