×

Discussion Board

Results 1 to 7 of 7
  1. #1
    Registered User
    Join Date
    Feb 2009
    Posts
    3

    How image is presented in memory

    The IplImage format has one extra pixel at the end of each row: for example if there are 5 pixels in a row in the real image, then in memory, each row has 6 pixels. How is image data presented on Symbian OS?

  2. #2
    Registered User
    Join Date
    Dec 2006
    Posts
    2,280

    Re: How image is presented in memory

    Check the documentation for the native CFbsBitmap class. It can provide you with the relevant information on the format of its internal data and representation in memory (e.g. display mode and scan line length).

    Mark

  3. #3
    Registered User
    Join Date
    Feb 2009
    Posts
    3

    Re: How image is presented in memory

    Thank you, Mark.
    I've read the documents of SDK, but the format of image in memory is not described.

  4. #4
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,737

    Re: How image is presented in memory

    What kind of info do you need? For experimenting CFbsBitmap:ataAddress and CFbsBitmap::ScanLineLength are good starters (do not forget locking and unlocking the heap).

  5. #5
    Regular Contributor
    Join Date
    Jul 2007
    Location
    Dublin
    Posts
    240

    Re: How image is presented in memory

    Also, to edit the image you can use CBitmapDevice, CBitmapContext are helpful.
    -datha

  6. #6
    Registered User
    Join Date
    Feb 2009
    Posts
    3

    Re: How image is presented in memory

    After trying ScanLineLength ( a static function of CFbsBitmap, computes the line length in byte from the input number of pixels and color mode), the result is (20 pixels) * (color mode = EColor16M = 24 bits) = (60 bytes), no extra pixel added. Thank you for your replies.

  7. #7
    Regular Contributor
    Join Date
    Mar 2003
    Posts
    50

    Re: How image is presented in memory

    The bitmap is stored linearly in memory starting from pixel at (0,0), one horizontal row after another. The rows are, however, aligned on 4-byte boundaries, thus there might be padding bytes in the end of the said rows for bitmaps in display modes where each pixel is represented by less than 4 bytes (12/16 bits per pixel modes).

    - matti
    --
    Matti Dahlbom
    http://irssibot.777-team.org/

Similar Threads

  1. Using Camera API requires too much memory
    By tote_b5 in forum Symbian Media (Closed)
    Replies: 18
    Last Post: 2008-07-31, 16:21
  2. Excessive midlet memory consumption
    By paulip in forum Mobile Java General
    Replies: 1
    Last Post: 2007-10-09, 19:24
  3. show image on the form from memory
    By aaapigfly in forum Mobile Java Media (Graphics & Sounds)
    Replies: 2
    Last Post: 2007-08-27, 20:15
  4. Opening a JPEG Image
    By ummarbhutta in forum Mobile Java Media (Graphics & Sounds)
    Replies: 8
    Last Post: 2007-02-15, 06:34
  5. Loading an image into memory...
    By kkramhoeft in forum Symbian
    Replies: 1
    Last Post: 2003-05-08, 15:59

Posting Permissions

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