Mercurial > mplayer.hg
diff libswscale/yuv2rgb_mlib.c @ 19872:8e50cba9fe03
Remove the dependency of libswscale on img_format.h
author | lucabe |
---|---|
date | Sun, 17 Sep 2006 15:15:13 +0000 |
parents | ac69ba536915 |
children | 8aac0a59f9c7 |
line wrap: on
line diff
--- a/libswscale/yuv2rgb_mlib.c Sun Sep 17 15:06:28 2006 +0000 +++ b/libswscale/yuv2rgb_mlib.c Sun Sep 17 15:15:13 2006 +0000 @@ -30,12 +30,11 @@ #include <stdlib.h> #include <assert.h> -#include "libmpcodecs/img_format.h" //FIXME try to reduce dependency of such stuff #include "swscale.h" static int mlib_YUV2ARGB420_32(SwsContext *c, uint8_t* src[], int srcStride[], int srcSliceY, int srcSliceH, uint8_t* dst[], int dstStride[]){ - if(c->srcFormat == IMGFMT_422P){ + if(c->srcFormat == PIX_FMT_YUV422P){ srcStride[1] *= 2; srcStride[2] *= 2; } @@ -49,7 +48,7 @@ static int mlib_YUV2ABGR420_32(SwsContext *c, uint8_t* src[], int srcStride[], int srcSliceY, int srcSliceH, uint8_t* dst[], int dstStride[]){ - if(c->srcFormat == IMGFMT_422P){ + if(c->srcFormat == PIX_FMT_YUV422P){ srcStride[1] *= 2; srcStride[2] *= 2; } @@ -63,7 +62,7 @@ static int mlib_YUV2RGB420_24(SwsContext *c, uint8_t* src[], int srcStride[], int srcSliceY, int srcSliceH, uint8_t* dst[], int dstStride[]){ - if(c->srcFormat == IMGFMT_422P){ + if(c->srcFormat == PIX_FMT_YUV422P){ srcStride[1] *= 2; srcStride[2] *= 2; } @@ -79,9 +78,9 @@ SwsFunc yuv2rgb_init_mlib(SwsContext *c) { switch(c->dstFormat){ - case IMGFMT_RGB24: return mlib_YUV2RGB420_24; - case IMGFMT_RGB32: return mlib_YUV2ARGB420_32; - case IMGFMT_BGR32: return mlib_YUV2ABGR420_32; + case PIX_FMT_RGB24: return mlib_YUV2RGB420_24; + case PIX_FMT_BGR32: return mlib_YUV2ARGB420_32; + case PIX_FMT_RGB32: return mlib_YUV2ABGR420_32; default: return NULL; } }