class MSgImage_Sw |
This interface allows direct access to the pixel data of an image from user-side code. It is intended for use by software implementations of functions in the Graphics subsystem.
This interface is only supported if the image is or can be stored in system memory. This is always the case on platforms without hardware acceleration and also on platforms with Unified Memory Architecture (UMA) hardware accelerators.
Public Member Functions | |
---|---|
TInt | BeginDataAccess ( TSgCpuAccess ) |
TAny * | DataAddress () |
TInt | DataStride () |
TInt | EndDataAccess () |
TInt | BeginDataAccess | ( | TSgCpuAccess | aCpuAccess | ) | [pure virtual] |
Marks the beginning of CPU access to the pixel data. This function must be called before DataAddress() in builds with SYMBIAN_GRAPHICS_AUTOFLUSH_CACHE and prepares the image for CPU access to its pixel data in system memory. Calls to BeginDataAccess() must be coupled with subsequent calls to EndDataAccess() .
TSgCpuAccess aCpuAccess | Whether the pixel data is going to be only read, only written or read and written by the CPU until the corresponding call to EndDataAccess(). |
TAny * | DataAddress | ( | ) | const [pure virtual] |
Retrieves the base address of the pixel data in system memory.
TInt | DataStride | ( | ) | const [pure virtual] |
Retrieves the number of bytes between rows of the pixel data in system memory.
TInt | EndDataAccess | ( | ) | [pure virtual] |
Marks the end of CPU access to the pixel data. This function must be called when finished using the values returned by DataAddress() in builds with SYMBIAN_GRAPHICS_AUTOFLUSH_CACHE and ensures that, if the CPU has modified the pixel data, any subsequent usage of the image by the GPU will reflect its new state. Calls to EndDataAccess() must correspond to prior calls to BeginDataAccess() .
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.