[MPlayer-cvslog] r31301 - in trunk: libmpcodecs/vf_palette.c libswscale/rgb2rgb.c libswscale/rgb2rgb.h libswscale/swscale.c libswscale/swscale.h
siretart
subversion at mplayerhq.hu
Tue Jun 1 21:35:16 CEST 2010
Author: siretart
Date: Tue Jun 1 21:35:16 2010
New Revision: 31301
Log:
deprecate palette8topacked32 in favor of public API functions sws_convertPalette8ToPacked32 and -24
additionallym deprecate palette8torgb16 and its bgr variant without
replacement. These functions are not meant to be used by applications.
Discussed at: http://comments.gmane.org/gmane.comp.video.ffmpeg.devel/109340
Modified:
trunk/libmpcodecs/vf_palette.c
Changes in other areas also in this revision:
Modified:
trunk/libswscale/rgb2rgb.c
trunk/libswscale/rgb2rgb.h
trunk/libswscale/swscale.c
trunk/libswscale/swscale.h
Modified: trunk/libmpcodecs/vf_palette.c
==============================================================================
--- trunk/libmpcodecs/vf_palette.c Tue Jun 1 13:30:07 2010 (r31300)
+++ trunk/libmpcodecs/vf_palette.c Tue Jun 1 21:35:16 2010 (r31301)
@@ -29,6 +29,7 @@
#include "mp_image.h"
#include "vf.h"
+#include "libswscale/swscale.h"
#include "libswscale/rgb2rgb.h"
//===========================================================================//
@@ -122,15 +123,15 @@ static int put_image(struct vf_instance
break;
case 24:
if (IMGFMT_IS_BGR(dmpi->imgfmt))
- palette8topacked24(mpi->planes[0],dmpi->planes[0],mpi->h*mpi->w,mpi->planes[1]);
+ sws_convertPalette8ToPacked24(mpi->planes[0],dmpi->planes[0],mpi->h*mpi->w,mpi->planes[1]);
else
- palette8topacked24(mpi->planes[0],dmpi->planes[0],mpi->h*mpi->w,mpi->planes[1]);
+ sws_convertPalette8ToPacked24(mpi->planes[0],dmpi->planes[0],mpi->h*mpi->w,mpi->planes[1]);
break;
case 32:
if (IMGFMT_IS_BGR(dmpi->imgfmt))
- palette8topacked32(mpi->planes[0],dmpi->planes[0],mpi->h*mpi->w,mpi->planes[1]);
+ sws_convertPalette8ToPacked32(mpi->planes[0],dmpi->planes[0],mpi->h*mpi->w,mpi->planes[1]);
else
- palette8topacked32(mpi->planes[0],dmpi->planes[0],mpi->h*mpi->w,mpi->planes[1]);
+ sws_convertPalette8ToPacked32(mpi->planes[0],dmpi->planes[0],mpi->h*mpi->w,mpi->planes[1]);
break;
}
} else {
@@ -148,15 +149,15 @@ static int put_image(struct vf_instance
break;
case 24:
if (IMGFMT_IS_BGR(dmpi->imgfmt))
- palette8topacked24(src,dst,mpi->w,mpi->planes[1]);
+ sws_convertPalette8ToPacked24(src,dst,mpi->w,mpi->planes[1]);
else
- palette8topacked24(src,dst,mpi->w,mpi->planes[1]);
+ sws_convertPalette8ToPacked24(src,dst,mpi->w,mpi->planes[1]);
break;
case 32:
if (IMGFMT_IS_BGR(dmpi->imgfmt))
- palette8topacked32(src,dst,mpi->w,mpi->planes[1]);
+ sws_convertPalette8ToPacked32(src,dst,mpi->w,mpi->planes[1]);
else
- palette8topacked32(src,dst,mpi->w,mpi->planes[1]);
+ sws_convertPalette8ToPacked32(src,dst,mpi->w,mpi->planes[1]);
break;
}
}
More information about the MPlayer-cvslog
mailing list