diff libmpcodecs/mp_image.h @ 30115:ad61464d02a7

Add support for YUV format with alpha and fix the codecs.conf entry for vp6a to use it. Fixes playback of samples in http://samples.mplayerhq.hu/FLV/flash_with_alpha/
author reimar
date Thu, 31 Dec 2009 23:45:07 +0000
parents 19414a605695
children bbb6ebec87a0
line wrap: on
line diff
--- a/libmpcodecs/mp_image.h	Thu Dec 31 23:39:21 2009 +0000
+++ b/libmpcodecs/mp_image.h	Thu Dec 31 23:45:07 2009 +0000
@@ -145,6 +145,7 @@
 	mpi->flags|=MP_IMGFLAG_SWAPPED;
     case IMGFMT_YV12:
 	return;
+    case IMGFMT_420A:
     case IMGFMT_IF09:
 	mpi->num_planes=4;
     case IMGFMT_YVU9:
@@ -210,6 +211,7 @@
 }
 
 mp_image_t* alloc_mpi(int w, int h, unsigned long int fmt);
+void mp_image_alloc_planes(mp_image_t *mpi);
 void copy_mpi(mp_image_t *dmpi, mp_image_t *mpi);
 
 #endif /* MPLAYER_MP_IMAGE_H */