diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2002-01-21 18:32:31 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2002-01-21 18:32:31 +0000 |
commit | fe8054c0ff4ef8fa626a701b759d80f38def5710 (patch) | |
tree | 96501bc4d56b0ce5f3812ad90ce4d0020949b449 /postproc | |
parent | c7997007be277ee5a6c9542b4b90e054568e41ad (diff) | |
download | ffmpeg-fe8054c0ff4ef8fa626a701b759d80f38def5710.tar.gz |
copyright(swscaler) = GPL
Originally committed as revision 4296 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc
Diffstat (limited to 'postproc')
-rw-r--r-- | postproc/swscale.c | 27 | ||||
-rw-r--r-- | postproc/swscale.h | 17 | ||||
-rw-r--r-- | postproc/swscale_template.c | 21 |
3 files changed, 52 insertions, 13 deletions
diff --git a/postproc/swscale.c b/postproc/swscale.c index 405e3f1af7..b52ff1ee7f 100644 --- a/postproc/swscale.c +++ b/postproc/swscale.c @@ -1,9 +1,20 @@ +/* + Copyright (C) 2001-2002 Michael Niedermayer <michaelni@gmx.at> + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. -// Software scaling and colorspace conversion routines for MPlayer + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. -// Orginal C implementation by A'rpi/ESP-team <arpi@thot.banki.hu> -// current version mostly by Michael Niedermayer (michaelni@gmx.at) -// the parts written by michael are under GNU GPL + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +*/ /* supported Input formats: YV12 (grayscale soon too) @@ -469,10 +480,10 @@ void SwScale_YV12slice(unsigned char* src[], int srcStride[], int srcSliceY , flags= SWS_PRINT_INFO; firstTime=0; - if(src_filter.lumH) free(src_filter.lumH); - if(src_filter.lumV) free(src_filter.lumV); - if(src_filter.chrH) free(src_filter.chrH); - if(src_filter.chrV) free(src_filter.chrV); + if(src_filter.lumH) freeVec(src_filter.lumH); + if(src_filter.lumV) freeVec(src_filter.lumV); + if(src_filter.chrH) freeVec(src_filter.chrH); + if(src_filter.chrV) freeVec(src_filter.chrV); if(sws_lum_gblur!=0.0){ src_filter.lumH= getGaussianVec(sws_lum_gblur, 3.0); diff --git a/postproc/swscale.h b/postproc/swscale.h index fd91ff052f..d28ebf1e4e 100644 --- a/postproc/swscale.h +++ b/postproc/swscale.h @@ -1,3 +1,20 @@ +/* + Copyright (C) 2001-2002 Michael Niedermayer <michaelni@gmx.at> + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +*/ /* values for the flags, the stuff on the command line is different */ #define SWS_FAST_BILINEAR 1 diff --git a/postproc/swscale_template.c b/postproc/swscale_template.c index 7894b5d290..ae533e3738 100644 --- a/postproc/swscale_template.c +++ b/postproc/swscale_template.c @@ -1,9 +1,20 @@ +/* + Copyright (C) 2001-2002 Michael Niedermayer <michaelni@gmx.at> + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. -// Software scaling and colorspace conversion routines for MPlayer + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. -// Orginal C implementation by A'rpi/ESP-team <arpi@thot.banki.hu> -// current version mostly by Michael Niedermayer (michaelni@gmx.at) -// the parts written by michael are under GNU GPL + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +*/ #undef MOVNTQ #undef PAVGB @@ -1885,7 +1896,7 @@ static void RENAME(swScale)(SwsContext *c, uint8_t* src[], int srcStride[], int const int chrDstW= c->chrDstW; const int lumXInc= c->lumXInc; const int chrXInc= c->chrXInc; - const int dstFormat= c->dstFormat; //FIXME serach for dstbpp; + const int dstFormat= c->dstFormat; const int flags= c->flags; const int canMMX2BeUsed= c->canMMX2BeUsed; int16_t *vLumFilterPos= c->vLumFilterPos; |