vf_palette: Fix compilation after libswscale API changes
authoruau <uau@b3059339-0415-0410-9bf9-f77b7e298cf2>
Sat, 25 Oct 2008 00:07:59 +0000 (00:07 +0000)
committeruau <uau@b3059339-0415-0410-9bf9-f77b7e298cf2>
Sat, 25 Oct 2008 00:07:59 +0000 (00:07 +0000)
Patch from Guillaume Poirier. I didn't test the functionality of the
filter but at least it fixes compilation.

git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@27822 b3059339-0415-0410-9bf9-f77b7e298cf2

libmpcodecs/vf_palette.c

index 70b4379..ece59b2 100644 (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;
            }
        }