summaryrefslogtreecommitdiffstats
path: root/libswscale/yuv2rgb_mlib.c
diff options
context:
space:
mode:
authorlucabe <lucabe@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-09-17 15:15:13 +0000
committerlucabe <lucabe@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-09-17 15:15:13 +0000
commit51cd63eb1ce54742e942942e0604bbc974a4c0cb (patch)
tree731f5eb543ff4e6fbb6631cf15f769ecae180c8c /libswscale/yuv2rgb_mlib.c
parent212e625ee67fdb0a4e1992260986fea43063f24e (diff)
downloadmpv-51cd63eb1ce54742e942942e0604bbc974a4c0cb.tar.bz2
mpv-51cd63eb1ce54742e942942e0604bbc974a4c0cb.tar.xz
Remove the dependency of libswscale on img_format.h
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19878 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libswscale/yuv2rgb_mlib.c')
-rw-r--r--libswscale/yuv2rgb_mlib.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/libswscale/yuv2rgb_mlib.c b/libswscale/yuv2rgb_mlib.c
index 69c4ad303d..824ee39d1b 100644
--- a/libswscale/yuv2rgb_mlib.c
+++ b/libswscale/yuv2rgb_mlib.c
@@ -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_YUV2ARGB420_32(SwsContext *c, uint8_t* src[], int srcStride[], i
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_YUV2ABGR420_32(SwsContext *c, uint8_t* src[], int srcStride[], i
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 @@ static int mlib_YUV2RGB420_24(SwsContext *c, uint8_t* src[], int srcStride[], in
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;
}
}