[Mplayer-cvslog] CVS: main/libmpcodecs vf_scale.c,1.40,1.41
Alex Beregszaszi
alex at mplayerhq.hu
Tue Apr 29 19:17:43 CEST 2003
Update of /cvsroot/mplayer/main/libmpcodecs
In directory mail:/var/tmp.root/cvs-serv12935
Modified Files:
vf_scale.c
Log Message:
not needed anymore (vo_jpeg.c and vo_dga.c were depending on it some time ago)
Index: vf_scale.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpcodecs/vf_scale.c,v
retrieving revision 1.40
retrieving revision 1.41
diff -u -r1.40 -r1.41
--- vf_scale.c 27 Apr 2003 10:04:39 -0000 1.40
+++ vf_scale.c 29 Apr 2003 17:17:38 -0000 1.41
@@ -412,32 +412,6 @@
| (gCpuCaps.has3DNow ? SWS_CPU_CAPS_3DNOW : 0);
}
-// old global scaler, dont use for new code
-// will use sws_flags from the command line
-void SwScale_YV12slice(unsigned char* src[], int srcStride[], int srcSliceY ,
- int srcSliceH, uint8_t* dst[], int dstStride, int dstbpp,
- int srcW, int srcH, int dstW, int dstH){
-
- static struct SwsContext *context=NULL;
- int dstFormat;
- int dstStride3[3]= {dstStride, dstStride>>1, dstStride>>1};
-
- switch(dstbpp)
- {
- case 8 : dstFormat= IMGFMT_Y8; break;
- case 12: dstFormat= IMGFMT_YV12; break;
- case 15: dstFormat= IMGFMT_BGR15; break;
- case 16: dstFormat= IMGFMT_BGR16; break;
- case 24: dstFormat= IMGFMT_BGR24; break;
- case 32: dstFormat= IMGFMT_BGR32; break;
- default: return;
- }
-
- if(!context) context=sws_getContextFromCmdLine(srcW, srcH, IMGFMT_YV12, dstW, dstH, dstFormat);
-
- sws_scale(context, src, srcStride, srcSliceY, srcSliceH, dst, dstStride3);
-}
-
void sws_getFlagsAndFilterFromCmdLine(int *flags, SwsFilter **srcFilterParam, SwsFilter **dstFilterParam)
{
static int firstTime=1;
More information about the MPlayer-cvslog
mailing list