# HG changeset patch # User michael # Date 1046126808 0 # Node ID 4930b82dbf02ed9bc41f9298ca7bda4a184e6f0b # Parent bc5b87370cd1a031278aa8202350b91b3924d22c forgot ... diff -r bc5b87370cd1 -r 4930b82dbf02 TOOLS/mwallp/jpeg.c --- a/TOOLS/mwallp/jpeg.c Mon Feb 24 00:12:30 2003 +0000 +++ b/TOOLS/mwallp/jpeg.c Mon Feb 24 22:46:48 2003 +0000 @@ -16,7 +16,7 @@ #include "swscale.h" #include "rgb2rgb.h" -static SwsContext *swsContext=NULL; +static struct SwsContext *swsContext=NULL; typedef struct { @@ -134,12 +134,12 @@ jpeg_finish_decompress(&cinfo); jpeg_destroy_decompress(&cinfo); - swsContext= getSwsContextFromCmdLine(width,height, in_fmt, + swsContext= sws_getContextFromCmdLine(width,height, in_fmt, dwidth,dheight, IMGFMT_BGR|dbpp); - swsContext->swScale(swsContext,&img,&row_stride,0,height,&dbuffer, &dstride); + sws_scale(swsContext,&img,&row_stride,0,height,&dbuffer, &dstride); - freeSwsContext(swsContext); + sws_freeContext(swsContext); free(img);