1
mirror of https://github.com/mpv-player/mpv synced 2024-07-31 16:29:58 +02:00

vf_palette: Fix compilation after libswscale API changes

Patch from Guillaume Poirier. I didn't test the functionality of the
filter but at least it fixes compilation.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27822 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
uau 2008-10-25 00:07:59 +00:00
parent e313dd3b4d
commit 1a089681fc

View File

@ -108,15 +108,15 @@ static int put_image(struct vf_instance_s* vf, mp_image_t *mpi, double pts){
break;
case 24:
if (IMGFMT_IS_BGR(dmpi->imgfmt))
palette8tobgr24(mpi->planes[0],dmpi->planes[0],mpi->h*mpi->w,mpi->planes[1]);
palette8topacked24(mpi->planes[0],dmpi->planes[0],mpi->h*mpi->w,mpi->planes[1]);
else
palette8torgb24(mpi->planes[0],dmpi->planes[0],mpi->h*mpi->w,mpi->planes[1]);
palette8topacked24(mpi->planes[0],dmpi->planes[0],mpi->h*mpi->w,mpi->planes[1]);
break;
case 32:
if (IMGFMT_IS_BGR(dmpi->imgfmt))
palette8tobgr32(mpi->planes[0],dmpi->planes[0],mpi->h*mpi->w,mpi->planes[1]);
palette8topacked32(mpi->planes[0],dmpi->planes[0],mpi->h*mpi->w,mpi->planes[1]);
else
palette8torgb32(mpi->planes[0],dmpi->planes[0],mpi->h*mpi->w,mpi->planes[1]);
palette8topacked32(mpi->planes[0],dmpi->planes[0],mpi->h*mpi->w,mpi->planes[1]);
break;
}
} else {
@ -139,15 +139,15 @@ static int put_image(struct vf_instance_s* vf, mp_image_t *mpi, double pts){
break;
case 24:
if (IMGFMT_IS_BGR(dmpi->imgfmt))
palette8tobgr24(src,dst,mpi->w,mpi->planes[1]);
palette8topacked24(src,dst,mpi->w,mpi->planes[1]);
else
palette8torgb24(src,dst,mpi->w,mpi->planes[1]);
palette8topacked24(src,dst,mpi->w,mpi->planes[1]);
break;
case 32:
if (IMGFMT_IS_BGR(dmpi->imgfmt))
palette8tobgr32(src,dst,mpi->w,mpi->planes[1]);
palette8topacked32(src,dst,mpi->w,mpi->planes[1]);
else
palette8torgb32(src,dst,mpi->w,mpi->planes[1]);
palette8topacked32(src,dst,mpi->w,mpi->planes[1]);
break;
}
}