add some debug code that checks the returned pixel format

Change-Id: I44a1a8d97fecb7d371c4daa9888c56766087ec82