graphicscomposition/openwfsupport/inc/symbianstream.h
branchRCL_3
changeset 20 25ffed67c7ef
parent 19 bbf46f59e123
equal deleted inserted replaced
19:bbf46f59e123 20:25ffed67c7ef
    24 class RSurfaceManager;
    24 class RSurfaceManager;
    25 #else
    25 #else
    26 typedef struct struct_TSurfaceId TSurfaceId;
    26 typedef struct struct_TSurfaceId TSurfaceId;
    27 #endif
    27 #endif
    28 #include <KHR/khrplatform.h>
    28 #include <KHR/khrplatform.h>
       
    29 #include <pixelformats.h>
    29 typedef khronos_int32_t khronos_bool;
    30 typedef khronos_int32_t khronos_bool;
    30 typedef khronos_int32_t TErrCode;
    31 typedef khronos_int32_t TErrCode;
    31 
    32 
    32 /*!
    33 /*!
    33  * \brief Image stream implementation
    34  * \brief Image stream implementation
    86 #define SYMBIAN_INVALID_HANDLE  0
    87 #define SYMBIAN_INVALID_HANDLE  0
    87 
    88 
    88 typedef khronos_int32_t	MultipleSymbianStreamEventBits;
    89 typedef khronos_int32_t	MultipleSymbianStreamEventBits;
    89 typedef khronos_int32_t	SymNativeStreamEvent;
    90 typedef khronos_int32_t	SymNativeStreamEvent;
    90 typedef khronos_int32_t SymbianStreamBuffer;
    91 typedef khronos_int32_t SymbianStreamBuffer;
    91 typedef khronos_int32_t	SymOwfPixelFormat;
    92 typedef TUidPixelFormat	SymOwfPixelFormat;
    92 typedef	khronos_int32_t SymOwfBool;
    93 typedef	khronos_int32_t SymOwfBool;
    93 
    94 
    94 typedef enum
    95 typedef enum
    95 {
    96 {
    96     SOWF_STREAM_ERROR_NONE               = 0,
    97     SOWF_STREAM_ERROR_NONE               = 0,
   385     -   [Calls can be safely made from any thread, but the same default heap must be in place for all calls. The thread should have an activated clean-up stack.]
   386     -   [Calls can be safely made from any thread, but the same default heap must be in place for all calls. The thread should have an activated clean-up stack.]
   386     -   In the current implementation, this information is stored locally and can be efficiently accessed.
   387     -   In the current implementation, this information is stored locally and can be efficiently accessed.
   387 @panic NativeStream 1000002 Null return value pointer
   388 @panic NativeStream 1000002 Null return value pointer
   388 @panic NativeStream 1000003 Null Native Stream
   389 @panic NativeStream 1000003 Null Native Stream
   389 **/
   390 **/
   390   IMPORT_C void SymbianStreamGetHeader( SymbianStreamType aStream, khronos_int32_t* aWidth, khronos_int32_t* aHeight, khronos_int32_t* aStride, khronos_int32_t* aFormat, khronos_int32_t* aPixelSize);
   391   IMPORT_C void SymbianStreamGetHeader( SymbianStreamType aStream, khronos_int32_t* aWidth, khronos_int32_t* aHeight, khronos_int32_t* aStride, TUidPixelFormat* aFormat, khronos_int32_t* aPixelSize);
   391 
   392 
   392 /** Returns extra details of the format of the image data stored in the Native Stream.
   393 /** Returns extra details of the format of the image data stored in the Native Stream.
   393  This method is intended to allow compositors to access the SurfaceManager hints associated with the 
   394  This method is intended to allow compositors to access the SurfaceManager hints associated with the 
   394  stream without using SurfaceManager-explicit code.
   395  stream without using SurfaceManager-explicit code.
   395  It is possible in future that some of the hint IDs could be resolved locally rather than calling surface manager.  
   396  It is possible in future that some of the hint IDs could be resolved locally rather than calling surface manager.  
   658       The flip state is updated when SymbianStreamReleaseWriteBuffer() call is made
   659       The flip state is updated when SymbianStreamReleaseWriteBuffer() call is made
   659 
   660 
   660   **/
   661   **/
   661   IMPORT_C void  SymbianStreamSetFlipState(SymbianStreamType aStream, SymOwfBool aFlip);
   662   IMPORT_C void  SymbianStreamSetFlipState(SymbianStreamType aStream, SymOwfBool aFlip);
   662   
   663   
   663   IMPORT_C TErrCode SymbianStreamGetChunkHandle(SymbianStreamType aStream, TInt* aHandle);
       
   664   
       
   665 #	ifdef __cplusplus
   664 #	ifdef __cplusplus
   666 	}
   665 	}
   667 #	endif
   666 #	endif
   668 
   667 
   669 #endif  // __SYMBIANSTREAM_H__
   668 #endif  // __SYMBIANSTREAM_H__