changeset 4946:a55d56509a2c

using new cinepak codec api
author arpi
date Wed, 06 Mar 2002 14:29:27 +0000
parents b0e1dc1bba4b
children 2cc47599b571
files libmpcodecs/vd_cinepak.c
diffstat 1 files changed, 6 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/libmpcodecs/vd_cinepak.c	Wed Mar 06 14:27:36 2002 +0000
+++ b/libmpcodecs/vd_cinepak.c	Wed Mar 06 14:29:27 2002 +0000
@@ -47,7 +47,8 @@
 
 //mp_image_t* mpcodecs_get_image(sh_video_t *sh, int mp_imgtype, int mp_imgflag, int w, int h);
 
-void decode_cinepak(void *context, unsigned char *buf, int size, unsigned char *frame, int width, int height, int bit_per_pixel, int stride_);
+//void decode_cinepak(void *context, unsigned char *buf, int size, unsigned char *frame, int width, int height, int bit_per_pixel, int stride_);
+void decode_cinepak(void *context, unsigned char *buf, int size, mp_image_t* mpi);
 
 // decode a frame
 static mp_image_t* decode(sh_video_t *sh,void* data,int len,int flags){
@@ -61,8 +62,10 @@
 	return NULL;
     }
     
-    decode_cinepak(sh->context, data, len, mpi->planes[0], sh->disp_w, sh->disp_h,
-	(mpi->flags&MP_IMGFLAG_YUV)?16:(mpi->imgfmt&255), mpi->stride[0]);
+//    decode_cinepak(sh->context, data, len, mpi->planes[0], sh->disp_w, sh->disp_h,
+//	(mpi->flags&MP_IMGFLAG_YUV)?16:(mpi->imgfmt&255), mpi->stride[0]);
+
+    decode_cinepak(sh->context, data, len, mpi);
     
     return mpi;
 }