vtprotocolplugins/DisplaySink/src/CVtImageConverter.cpp
changeset 3 b1602a5ab0a3
parent 0 ed9695c8bcbe
child 24 f15ac8e65a02
--- a/vtprotocolplugins/DisplaySink/src/CVtImageConverter.cpp	Thu Jan 07 12:47:29 2010 +0200
+++ b/vtprotocolplugins/DisplaySink/src/CVtImageConverter.cpp	Mon Jan 18 20:21:33 2010 +0200
@@ -163,6 +163,19 @@
 	return rgb;
 	}
 
+// -----------------------------------------------------------------------------
+// VSReadColor16MAP( TAny*& aSource )
+// (other items were commented in a header).
+// -----------------------------------------------------------------------------
+//
+TRgb VSReadColor16MAP( TAny*& aSource )
+  {
+	TUint32* s = static_cast< TUint32* >( aSource );
+	TRgb rgb( TRgb::Color16MAP( *s++ ) );
+	aSource = s;
+	return rgb;
+  }
+
 // ============================ MEMBER FUNCTIONS ===============================
 
 /**
@@ -1766,6 +1779,10 @@
         case EColor16MA:
 			DoProcess( VSReadColor16MA );
 			break;
+			
+        case EColor16MAP:
+        	DoProcess( VSReadColor16MAP );
+        	break;
 
 		default:
 			User::Leave( KErrNotSupported );
@@ -1808,7 +1825,8 @@
 	    ( iSource->DisplayMode() != EColor64K ) &&
 	    ( iSource->DisplayMode() != EColor16M ) &&
 	    ( iSource->DisplayMode() != EColor16MU ) &&
-	    ( iSource->DisplayMode() != EColor16MA ) )
+	    ( iSource->DisplayMode() != EColor16MA ) &&
+	    ( iSource->DisplayMode() != EColor16MAP ) )
 		{
 		User::Leave( KErrNotSupported );
 		}