×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Regular Contributor
    Join Date
    Dec 2008
    Posts
    217

    please explain these codes

    hi there , please help.

    thanks.

    CFbsBitmap &image
    tmpBuffer = (unsigned char *)image.DataAddress();
    unsigned int temp;
    unsigned char *iter = tmpBuffer;
    unsigned char *iterG = pImG;
    for (int i=0;i<width*height;i++)
    {
    // get green channel as greyscale for tracking. This actually eats up 1fps for 256x192
    *iterG = *(iter+1);
    iterG++;

    // BGRx to RGB(A=255)
    temp = *iter;
    *iter = *(iter+2);
    *(iter+2) = temp;
    *(iter+3) = 255;
    iter = iter+4;
    }


    for (int i=0;i<CAP_IMG_HEIGHT;i++)
    {
    Mem::Copy( pBufInternal+4*BG_TEXTURE_WIDTH*i, aimgBuf+4*CAP_IMG_WIDTH*i, CAP_IMG_WIDTH*4 );

    }
    Last edited by nokia_lin; 2009-06-19 at 07:08.

  2. #2
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,166

    Re: please explain these codes

    Basically maybe you could explain on what you want to do with the code ?

  3. #3
    Regular Contributor
    Join Date
    Dec 2008
    Posts
    217

    Re: please explain these codes

    because of wrong image be drawn.

    topleft corner red and bottomright blue , so I guess these code has problem,

    but it is hard to understand.

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

    Re: please explain these codes

    Quote Originally Posted by nokia_lin View Post
    because of wrong image be drawn.

    topleft corner red and bottomright blue
    Totally wrong or just those 2 pixels?

  5. #5
    Regular Contributor
    Join Date
    Dec 2008
    Posts
    217

    Re: please explain these codes

    find point.

    in simplecube.cpp , i add texture , result in texture's color not true.

    i think this makes wrong.

Similar Threads

  1. codes
    By xerxer in forum Digital Rights Management & Content Downloading
    Replies: 1
    Last Post: 2002-07-04, 11:52
  2. codes
    By xerxer in forum Mobile Java General
    Replies: 0
    Last Post: 2002-06-27, 14:29
  3. codes
    By xerxer in forum Nokia M2M
    Replies: 0
    Last Post: 2002-06-27, 14:28
  4. error correcting codes
    By xerxer in forum OMA DM/DS/CP
    Replies: 0
    Last Post: 2002-06-27, 14:25
  5. error correcting codes
    By xerxer in forum Bluetooth Technology
    Replies: 0
    Last Post: 2002-06-27, 14:20

Posting Permissions

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