Mercurial > mplayer.hg
changeset 11037:77ed12a4f0b1
Fixed the brokeness and also bgr32 should work now. Patch by Ken Mandelberg <km@mathcs.emory.edu>
author | alex |
---|---|
date | Tue, 07 Oct 2003 22:41:56 +0000 |
parents | 8e55228b6102 |
children | 3bac281db5a1 |
files | postproc/yuv2rgb_mlib.c |
diffstat | 1 files changed, 7 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/postproc/yuv2rgb_mlib.c Tue Oct 07 22:29:37 2003 +0000 +++ b/postproc/yuv2rgb_mlib.c Tue Oct 07 22:41:56 2003 +0000 @@ -42,8 +42,8 @@ assert(srcStride[1] == srcStride[2]); - mlib_VideoColorYUV2ARGB420(dst[0], src[0], src[1], src[2], c->dstW, - c->dstH, dstStride[0], srcStride[0], srcStride[1]); + mlib_VideoColorYUV2ARGB420(dst[0]+srcSliceY*dstStride[0], src[0], src[1], src[2], c->dstW, + srcSliceH, dstStride[0], srcStride[0], srcStride[1]); return srcSliceH; } @@ -56,8 +56,8 @@ assert(srcStride[1] == srcStride[2]); - mlib_VideoColorYUV2ABGR420(dst[0], src[0], src[1], src[2], c->dstW, - c->dstH, dstStride[0], srcStride[0], srcStride[1]); + mlib_VideoColorYUV2ABGR420(dst[0]+srcSliceY*dstStride[0], src[0], src[1], src[2], c->dstW, + srcSliceH, dstStride[0], srcStride[0], srcStride[1]); return srcSliceH; } @@ -70,8 +70,8 @@ assert(srcStride[1] == srcStride[2]); - mlib_VideoColorYUV2RGB420(dst[0], src[0], src[1], src[2], c->dstW, - c->dstH, dstStride[0], srcStride[0], srcStride[1]); + mlib_VideoColorYUV2RGB420(dst[0]+srcSliceY*dstStride[0], src[0], src[1], src[2], c->dstW, + srcSliceH, dstStride[0], srcStride[0], srcStride[1]); return srcSliceH; } @@ -81,7 +81,7 @@ switch(c->dstFormat){ case IMGFMT_RGB24: return mlib_YUV2RGB420_24; case IMGFMT_RGB32: return mlib_YUV2ARGB420_32; - case IMGFMT_BGR32: return mlib_YUV2ARGB420_32; + case IMGFMT_BGR32: return mlib_YUV2ABGR420_32; default: return NULL; } }