changeset 27788:0f190fe6aeb4

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.
author uau
date Sat, 25 Oct 2008 00:07:59 +0000
parents b9cbb6a5d5a3
children b33d80671293
files libmpcodecs/vf_palette.c
diffstat 1 files changed, 8 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/libmpcodecs/vf_palette.c	Fri Oct 24 09:18:28 2008 +0000
+++ b/libmpcodecs/vf_palette.c	Sat Oct 25 00:07:59 2008 +0000
@@ -108,15 +108,15 @@
 	    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 @@
 		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;
 	    }
 	}