×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    May 2007
    Posts
    16

    Question Direct Screen Access...

    Hi,

    according to 'Direct Screen Access in Series 60 Devices' (by Topi Reinio) the frame buffer format in Series 60 devices is either 12bpp or 16bpp.

    In my code I'm using CDirectScreenAccess & CDirectScreenBitmap to render the graphics.

    The problem I have is that when I call CDirectScreenBitmap::BeginUpdate() on my nokia N73 I get a pixel format 32bpp (see TAcceleratedBitmapInfo in the code below).

    I find it hard to believe that these devices have an RGBA frame buffer so I must be doing something wrong - any ideas?

    Thank you,
    Nikos.

    Code:
    TRect rcScreen(0,0,ScreenSize.iWidth,ScreenSize.iHeight);
    m_pDSB = CDirectScreenBitmap::NewL();
    m_pDSB->Create(rcScreen, CDirectScreenBitmap::ENone);
    ...

    Code:
    TAcceleratedBitmapInfo info;
    m_pDSB->BeginUpdate(info);
    TUint8* pScreenAddr = info.iAddress;
    
    if (pScreenAddr)
    	memcpy(pScreenAddr,m_pBackBuffer,m_nBackBufferLengthInBytes);
    
    TRequestStatus nStatus;
    m_pDSB->EndUpdate(nStatus);

  2. #2
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,671

    Re: Direct Screen Access...

    According to http://www.forum.nokia.com/devices/N73 your device uses 18 bits per pixel. Since TDisplayMode has no such mode and 12 or 16 bits would not be enough, you can really get EColor16M, EColor16MU or EColor16MA.

  3. #3
    Regular Contributor
    Join Date
    Mar 2006
    Posts
    81

    Re: Direct Screen Access...

    The LCD may be 18bpp, but the frame buffer almost certainly isn't. Most likely it's 32bpp RGBA, exactly as the API tells you it is. Why doubt it!? Most of the new S60 phones support 3D graphics APIs and in the PC world 3D graphics have been running in 32 bit colour for years. 16 bit is so yesterday!

  4. #4
    Registered User
    Join Date
    May 2007
    Posts
    16

    Re: Direct Screen Access...

    Thank you. You're correct. It is 32-bit.

    It is running painfully slow on the device for some reason. I'm writing to the frame buffer directly (well, actually to a surface that the driver will 'flip' on EndUpdate()).

    It's the same code as WinCE and runs > 5 times slower.

    It is extremely fast on the emulator though

    Cheers,
    Nikos.

Similar Threads

  1. Direct Screen Access Example
    By jackylb in forum Symbian Media (Closed)
    Replies: 0
    Last Post: 2005-10-07, 09:28
  2. Direct Screen Access Color Problem
    By earamsey in forum Symbian
    Replies: 0
    Last Post: 2004-10-03, 02:59
  3. Problem with Direct Screen Access
    By huwell in forum Symbian
    Replies: 0
    Last Post: 2003-11-30, 12:42
  4. How to use direct screen access in release 6.2
    By cl_max1mum in forum Symbian User Interface
    Replies: 1
    Last Post: 2001-12-05, 20:22
  5. Direct screen access question?
    By in forum Symbian
    Replies: 1
    Last Post: 1970-01-01, 02:00

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×