graphicscomposition/openwfcompositionengine/adaptation/src/Platform/Graphics/symbian/owfnativestreamstub.cpp
branchNewGraphicsArchitecture
changeset 35 3aa07f06a4b7
parent 0 5d03bc08d59c
child 49 0ee978e37eb7
equal deleted inserted replaced
34:76efc8f9f7b4 35:3aa07f06a4b7
    90                 b.iAlignment = max(4,format->rowPadding);
    90                 b.iAlignment = max(4,format->rowPadding);
    91                 break;
    91                 break;
    92             case OWF_IMAGE_L1 :
    92             case OWF_IMAGE_L1 :
    93                 b.iPixelFormat = EUidPixelFormatL_1;
    93                 b.iPixelFormat = EUidPixelFormatL_1;
    94                 bytesPerPixel = -8;
    94                 bytesPerPixel = -8;
       
    95                 b.iAlignment = max(4,format->rowPadding);
       
    96                 break;
       
    97             case OWF_IMAGE_UYVY:
       
    98                 b.iPixelFormat = EUidPixelFormatYUV_422Interleaved;
       
    99                 bytesPerPixel = 1;
    95                 b.iAlignment = max(4,format->rowPadding);
   100                 b.iAlignment = max(4,format->rowPadding);
    96                 break;
   101                 break;
    97             default:
   102             default:
    98                 return surface;
   103                 return surface;
    99             }   
   104             }   
   289                 aFormat.linear = OWF_FALSE;
   294                 aFormat.linear = OWF_FALSE;
   290                 aFormat.premultiplied = OWF_FALSE;
   295                 aFormat.premultiplied = OWF_FALSE;
   291                 aFormat.rowPadding = 4;
   296                 aFormat.rowPadding = 4;
   292                 aFormat.pixelFormat = OWF_IMAGE_L1;          
   297                 aFormat.pixelFormat = OWF_IMAGE_L1;          
   293                 break;
   298                 break;
       
   299 
       
   300             case EUidPixelFormatYUV_422Interleaved :
       
   301                 aFormat.linear = OWF_FALSE;
       
   302                 aFormat.premultiplied = OWF_FALSE;
       
   303                 aFormat.rowPadding = 1;
       
   304                 aFormat.pixelFormat = OWF_IMAGE_UYVY;          
       
   305                 break;
   294             default:
   306             default:
   295                 aFormat.linear = OWF_FALSE;
   307                 aFormat.linear = OWF_FALSE;
   296                 aFormat.premultiplied = OWF_FALSE;
   308                 aFormat.premultiplied = OWF_FALSE;
   297                 aFormat.rowPadding = 0;
   309                 aFormat.rowPadding = 0;
   298                 aFormat.pixelFormat = OWF_IMAGE_NOT_SUPPORTED;
   310                 aFormat.pixelFormat = OWF_IMAGE_NOT_SUPPORTED;