summaryrefslogtreecommitdiffstats
path: root/libswscale
Commit message (Collapse)AuthorAgeFilesLines
* 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-24/+12
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29445 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix assembly comments for x86 fast_bilinear so they match the C code.ramiro2009-07-271-16/+16
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29444 b3059339-0415-0410-9bf9-f77b7e298cf2
* Replace WORDS_BIGENDIAN with HAVE_BIGENDIANmru2009-07-264-16/+15
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29439 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove unnecessary #include <unistd.h>mru2009-07-231-1/+0
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29437 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove unused variables.ramiro2009-07-212-4/+0
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29435 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove dependency from swscale_internal.h to lavu/internal.h, it is no longerramiro2009-07-092-7/+10
| | | | | | | | | | | | needed for DECLARE_ALIGNED. Remove dependency from swscale-example.c to swscale_internal.h by duplicating the necessary code. The duplicated code is a hack and should be removed once a cleaner pixel format information system exists. swscale-example.c is example code on how to use the library and therefore shouldn't rely on internal headers. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29415 b3059339-0415-0410-9bf9-f77b7e298cf2
* The AltiVec code in libswscale no longer is under GPL.diego2009-07-051-1/+1
| | | | | | | Remove one erroneous preprocessor check for CONFIG_GPL in the AltiVec code. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29412 b3059339-0415-0410-9bf9-f77b7e298cf2
* Use enum PixelFormat in sws_format_name() prototypemru2009-07-011-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29409 b3059339-0415-0410-9bf9-f77b7e298cf2
* AltiVec code and runtime cpudetect do not require CONFIG_GPL.diego2009-06-251-5/+5
| | | | | | | Make sure the latter is only checked for x86 optimizations, which are GPL. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29390 b3059339-0415-0410-9bf9-f77b7e298cf2
* The AltiVec optimizations of libswscale are no longer under GPL.diego2009-06-251-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29389 b3059339-0415-0410-9bf9-f77b7e298cf2
* PPC: Make sure that COMPILE_C is not deactivated if RUNTIME_CPUDETECT is set.diego2009-06-251-2/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29388 b3059339-0415-0410-9bf9-f77b7e298cf2
* Do not call rgb2rgbWrapper() for rgb48*, there is no special converter vitor2009-06-171-0/+2
| | | | | | | yet for those formats git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29371 b3059339-0415-0410-9bf9-f77b7e298cf2
* Kill warnings of possibly unused variables by using av_unused.ramiro2009-06-111-8/+8
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29355 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix compilation: #undef standard library functions that arediego2009-06-111-0/+6
| | | | | | | forbidden within FFmpeg, but allowed in example code. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29354 b3059339-0415-0410-9bf9-f77b7e298cf2
* Add libavutil/internal.h #include, required for the DECLARE_ALIGNED macro.diego2009-06-111-0/+1
| | | | | | | This fixes swscale-example compilation. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29353 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove '\p' doxygen markup, as it should improve plain text doxystefano2009-06-061-16/+15
| | | | | | | readability. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29351 b3059339-0415-0410-9bf9-f77b7e298cf2
* Use DECLARE_ALIGNED macro instead of __attribute__((aligned)) for ppc code.ramiro2009-06-042-6/+6
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29350 b3059339-0415-0410-9bf9-f77b7e298cf2
* Replace more uses of __attribute__((aligned)) by DECLARE_ALIGNED.ramiro2009-06-041-2/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29349 b3059339-0415-0410-9bf9-f77b7e298cf2
* Use DECLARE_ALIGNED macro instead of gcc __attribute__.ramiro2009-06-042-39/+39
| | | | | | Patch by Pavel Pavlov <pavel at summit-tech dot ca> git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29348 b3059339-0415-0410-9bf9-f77b7e298cf2
* Testing RGB48 variants requires bigger stride in swscale-example.ckostya2009-06-021-0/+4
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29343 b3059339-0415-0410-9bf9-f77b7e298cf2
* YUV into RGB48 BE/LE conversion supportkostya2009-06-022-0/+57
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29342 b3059339-0415-0410-9bf9-f77b7e298cf2
* Partial (low bits ignored, no direct transcoding into other RGB formats) supportkostya2009-06-023-1/+61
| | | | | | | | for inputting RGB48BE/LE. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29341 b3059339-0415-0410-9bf9-f77b7e298cf2
* Move colorspace conversion functions implemented in pure C from templatekostya2009-05-252-137/+138
| | | | | | | | into swscale.c git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29320 b3059339-0415-0410-9bf9-f77b7e298cf2
* Let SwScaler know that RGB48 BE/LE is 16-bits per component format.kostya2009-05-191-0/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29317 b3059339-0415-0410-9bf9-f77b7e298cf2
* Make SwScaler recognize RGB48 BE/LE colourspaces (not support though).kostya2009-05-192-0/+7
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29316 b3059339-0415-0410-9bf9-f77b7e298cf2
* Add const qualifier to param argument of sws_getContext() anddiego2009-05-102-4/+5
| | | | | |