comparison postproc/swscale.c @ 4295:67c56df76a44

copyright(swscaler) = GPL
author michael
date Mon, 21 Jan 2002 18:32:31 +0000
parents 21dbbbbd5479
children 29fef3982238
comparison
equal deleted inserted replaced
4294:21dbbbbd5479 4295:67c56df76a44
1 1 /*
2 // Software scaling and colorspace conversion routines for MPlayer 2 Copyright (C) 2001-2002 Michael Niedermayer <michaelni@gmx.at>
3 3
4 // Orginal C implementation by A'rpi/ESP-team <arpi@thot.banki.hu> 4 This program is free software; you can redistribute it and/or modify
5 // current version mostly by Michael Niedermayer (michaelni@gmx.at) 5 it under the terms of the GNU General Public License as published by
6 // the parts written by michael are under GNU GPL 6 the Free Software Foundation; either version 2 of the License, or
7 (at your option) any later version.
8
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
13
14 You should have received a copy of the GNU General Public License
15 along with this program; if not, write to the Free Software
16 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 */
7 18
8 /* 19 /*
9 supported Input formats: YV12 (grayscale soon too) 20 supported Input formats: YV12 (grayscale soon too)
10 supported output formats: YV12, BGR15, BGR16, BGR24, BGR32 (grayscale soon too) 21 supported output formats: YV12, BGR15, BGR16, BGR24, BGR32 (grayscale soon too)
11 */ 22 */
467 if(firstTime) 478 if(firstTime)
468 { 479 {
469 flags= SWS_PRINT_INFO; 480 flags= SWS_PRINT_INFO;
470 firstTime=0; 481 firstTime=0;
471 482
472 if(src_filter.lumH) free(src_filter.lumH); 483 if(src_filter.lumH) freeVec(src_filter.lumH);
473 if(src_filter.lumV) free(src_filter.lumV); 484 if(src_filter.lumV) freeVec(src_filter.lumV);
474 if(src_filter.chrH) free(src_filter.chrH); 485 if(src_filter.chrH) freeVec(src_filter.chrH);
475 if(src_filter.chrV) free(src_filter.chrV); 486 if(src_filter.chrV) freeVec(src_filter.chrV);
476 487
477 if(sws_lum_gblur!=0.0){ 488 if(sws_lum_gblur!=0.0){
478 src_filter.lumH= getGaussianVec(sws_lum_gblur, 3.0); 489 src_filter.lumH= getGaussianVec(sws_lum_gblur, 3.0);
479 src_filter.lumV= getGaussianVec(sws_lum_gblur, 3.0); 490 src_filter.lumV= getGaussianVec(sws_lum_gblur, 3.0);
480 }else{ 491 }else{