summaryrefslogtreecommitdiffstats
path: root/libswscale
Commit message (Collapse)AuthorAgeFilesLines
* 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
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29584 b3059339-0415-0410-9bf9-f77b7e298cf2
* swscale-example: Free memory used by input data.ramiro2009-08-291-0/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29583 b3059339-0415-0410-9bf9-f77b7e298cf2
* Restore comment that was partially removed.ramiro2009-08-291-0/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29582 b3059339-0415-0410-9bf9-f77b7e298cf2
* swscale-example: Rename src->ref so as to not confuse with src being used in ↵ramiro2009-08-231-2/+2
| | | | | | doTest(). git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29548 b3059339-0415-0410-9bf9-f77b7e298cf2
* swscale-example: Use SWS_BILINEAR instead of hardcoded value.ramiro2009-08-231-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29547 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix inconsistent indentation.ramiro2009-08-221-2/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29545 b3059339-0415-0410-9bf9-f77b7e298cf2
* Check return values of sws_allocVec() and sws_getConstVec().ramiro2009-08-201-0/+21
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29543 b3059339-0415-0410-9bf9-f77b7e298cf2
* Free initial swscale context, too. Avoids a valgrind warning.reimar2009-08-191-0/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29538 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove useless casts of malloc return value.reimar2009-08-191-3/+3
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29537 b3059339-0415-0410-9bf9-f77b7e298cf2
* Introduce and use sws_allocVec().ramiro2009-08-192-18/+23
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29536 b3059339-0415-0410-9bf9-f77b7e298cf2
* Reuse sws_getConstVec() where possible.ramiro2009-08-191-34/+10
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29535 b3059339-0415-0410-9bf9-f77b7e298cf2
* swscale-example: Make selection of dstW, dstH, and flags more clear.ramiro2009-08-171-8/+12
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29527 b3059339-0415-0410-9bf9-f77b7e298cf2
* More indentation changes leftover from r29522:ramiro2009-08-162-693/+693
| | | | | | | | - Align asm code to the column 4 spaces after the call to __asm__(); - Align cases in switch statements to the same column as "switch". git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29524 b3059339-0415-0410-9bf9-f77b7e298cf2
* Cosmetics:ramiro2009-08-1615-766/+579
| | | | | | | - Place curly brackets in the same line as while/for/if/switch/else/do; - Place curly brackets at column 0 in the next line starting a function. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29523 b3059339-0415-0410-9bf9-f77b7e298cf2
* Indent libswscale:ramiro2009-08-168-1756/+1756
| | | | | | | | | | | | - Use 4 spaces throughout for indentation; - Fix inconsistent indentation; - Indent function calls and declarations aligning arguments on multiple lines to the column after the opening parentheses; - Align asm code to the column 4 spaces after the call to __asm__(); - Align cases in switch statements to the same column as "switch". git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29522 b3059339-0415-0410-9bf9-f77b7e298cf2
* Indent.ramiro2009-08-151-4/+4
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29518 b3059339-0415-0410-9bf9-f77b7e298cf2
* Vertical yuv -> yuv16 scaler.ramiro2009-08-142-0/+101
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29517 b3059339-0415-0410-9bf9-f77b7e298cf2
* BGR32 MMX special convertor.ramiro2009-08-142-21/+85
| | | | | | Patch by Peter Schlaile < peter at schlaile dot de > git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29515 b3059339-0415-0410-9bf9-f77b7e298cf2
* Indent.ramiro2009-08-131-20/+20
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29512 b3059339-0415-0410-9bf9-f77b7e298cf2
* swscale-example: Don't check for chroma planes in mono formats.ramiro2009-08-131-1/+6
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29511 b3059339-0415-0410-9bf9-f77b7e298cf2
* MMX2 horizontal scaler: Determine code size at runtime.ramiro2009-08-132-14/+24
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29510 b3059339-0415-0410-9bf9-f77b7e298cf2
* Protect mmx2 filter code buffers so they are not executable and writeable atramiro2009-08-131-2/+7
| | | | | | | the same time (only mmap for now). git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29509 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove duplicate define (it is the same in the lum code).ramiro2009-08-131-21/+0
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29508 b3059339-0415-0410-9bf9-f77b7e298cf2
* Rename "funny" code to "mmx2 filter" code.ramiro2009-08-133-50/+50
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29507 b3059339-0415-0410-9bf9-f77b7e298cf2
* Indent.ramiro2009-08-131-2/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29506 b3059339-0415-0410-9bf9-f77b7e298cf2
* swscale-example: Remove hack to end loop by setting variables to break.ramiro2009-08-131-13/+5
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29505 b3059339-0415-0410-9bf9-f77b7e298cf2
* swscale-example: Don't return random value from main().ramiro2009-08-131-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29504 b3059339-0415-0410-9bf9-f77b7e298cf2
* swscale-example: Check for Gray formats.ramiro2009-08-131-3/+9
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29503 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove disabled debug code.diego2009-08-101-9/+0
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29485 b3059339-0415-0410-9bf9-f77b7e298cf2
* Put some altivec code under COMPILE_ALTIVEC, and not HAVE_ALTIVEC.ramiro2009-08-091-2/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29484 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove 'offset' argument from PUTRGB* macros since it's unneeded and causedkostya2009-08-091-66/+66
| | | | | | | | pixel swapping during some YUV2RGB conversions. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29483 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove disabled crufty code.diego2009-08-083-42/+0
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29482 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix regression when converting to nv12/nv21.cehoyos2009-08-011-1/+3
| | | | | | | Patch by Guennadi Liakhovetski, g D liakhovetski A gmx D de git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29464 b3059339-0415-0410-9bf9-f77b7e298cf2
* MMX2 scaler: Remove {} block leftover from factorization in initMMX2Scaler().ramiro2009-07-281-19/+16
| | | | | | | Merge variable declarations to previous {} block and indent. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29454 b3059339-0415-0410-9bf9-f77b7e298cf2
* MMX2 scaler: factorize initMMX2Scaler().ramiro2009-07-281-30/+10
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29453 b3059339-0415-0410-9bf9-f77b7e298cf2
* MMX2 scaler: add variable to ease factorization of initMMX2Scaler().ramiro2009-07-281-3/+4
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29452 b3059339-0415-0410-9bf9-f77b7e298cf2
* Indent.ramiro2009-07-281-45/+45
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29451 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove duplicate horizontal scaling when there aren't enough lines in a sliceramiro2009-07-281-52/+15
| | | | | | to output the dstY line. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29450 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove useless code.ramiro2009-07-281-3/+1
| | | | | | flags can never be any other kind of scaling algorithm inside this if(). git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29449 b3059339-0415-0410-9bf9-f77b7e298cf2
* Do not misuse HAVE_ defines. Introduce COMPILE_TEMPLATE_ defines and use themramiro2009-07-272-85/+79
| | | | | | | instead. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29446 b3059339-0415-0410-9bf9-f77b7e298cf2
* Factorize x86 fast_bilinear assembly.ramiro2009-07-271