Namespaces

Variants
Actions

Please note that as of October 24, 2014, the Nokia Developer Wiki will no longer be accepting user contributions, including new entries, edits and comments, as we begin transitioning to our new home, in the Windows Phone Development Wiki. We plan to move over the majority of the existing entries over the next few weeks. Thanks for all your past and future contributions.

Archived:Documentation change and binary incompatibility issue with TAcceleratedBitmapInfo.iPixelShift (Known Issue)

From Wiki
Jump to: navigation, search

Archived.pngArchived: This article is archived because it is not considered relevant for third-party developers creating commercial solutions today. If you think this article is still relevant, let us know by adding the template {{ReviewForRemovalFromArchive|user=~~~~|write your reason here}}.

Article Metadata
Compatibility
Platform(s): S60 3rd Edition, MR
S60 3rd Edition, FP1
S60 3rd Edition FP1
S60 3rd Edition (initial release)
Article
Created: User:Technical writer 1 (20 Aug 2007)
Last edited: hamishwillee (19 Jun 2012)

Description

TAcceleratedBitmapInfo.iPixelShift has been incorrectly documented in S60 3rd Edition MR and FP1 SDKs as:

"The number of bits needed to represent one pixel in the bitmap."

However, the correct definition of TAcceleratedBitmapInfo.iPixelShift should be:

"The shift required to obtain the number of bits needed to represent one pixel in the bitmap. The number of bits per pixel is calculated as 1 <<  iPixelShift"

Some S60 3rd Edition devices have been noticed to be using components which still conform to the erroneous definition mentioned above. The erroneous implementation returns 32 as TAcceleratedBitmapInfo.iPixelShift, whereas the correct value should be 5.

Applications relying on the incorrect return value may not work correctly with the new implementation existing in some S60 3rd Edition devices.

At least the following devices are affected by the incorrect scheme (TAcceleratedBitmapInfo.iPixelShift returns 32):

  • Nokia 3250
  • Nokia E60
  • Nokia E70
  • Nokia N80
  • Nokia N75

Whereas these devices have been confirmed to use the correct scheme (TAcceleratedBitmapInfo.iPixelShift returns 5):

  • Nokia N95

Note: This behaviour may change when a device is updated with a new software version. Applications using TAcceleratedBitmapInfo.iPixelShift value should accommodate to both situations.

This page was last modified on 19 June 2012, at 01:52.
63 page views in the last 30 days.

Was this page helpful?

Your feedback about this content is important. Let us know what you think.

 

Thank you!

We appreciate your feedback.

×