×

Discussion Board

Results 1 to 4 of 4

Thread: series60 Camera

  1. #1
    Registered User
    Join Date
    Oct 2005
    Posts
    4

    series60 Camera

    Hi All,

    I am trying to capture image at regular intervals using a timer.
    In ImageReady I am trying to reduce the size of the captured before
    further processing and displaying. But it is crashing after some times
    I don't the know the reason. Can anyone explain why??

    ImageReady Code
    =============
    void MyContainer::ImageReady(CFbsBitmap* aBitmap, HBufC8* aData, TInt aError)
    {
    if (aError == KErrNone )
    {

    delete iBitmap;

    iBitmap = new (ELeave) CFbsBitmap();
    iBitmap->Create( iVGASize, DisplayMode() );
    iBitmap = aBitmap;

    //Scale down image before
    MyScale(*iBitmap);
    DrawImageNow(*iBitmap);
    DrawNow();
    //Process Image
    Processing();
    //Set timer
    iCameraTimer->SetDelay(400000);
    //Start the timer
    RequestPictureAfterPause();

    }
    }

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

    Re: series60 Camera

    what sort or error you get during the crash ? if none, then see this first: http://www.newlc.com/article.php3?id_article=150.

    yucca

  3. #3
    Registered User
    Join Date
    Oct 2005
    Posts
    4

    Re: series60 Camera

    I have created ErrRd file in \system\bootdata,But,still I am not getting Panic code

  4. #4
    Registered User
    Join Date
    Oct 2005
    Posts
    4

    Re: series60 Camera

    I have solved the problem.

    The problem is bitmap handle returned by ImageReady is not proper. When
    I try do scaling or other operation on the bitmap handle it was crashing except drawing the bitmap or saving the image.

    Then I went through the link
    http://discussion.forum.nokia.com/fo...p/t-52472.html

    then I used CMdaBitmapScaler[ deprecated ] class for scaling it works fine.

    One more thing
    CImageEncoder convert is asynchronous used for saving the image
    CMdaBitmapScaler scaleL is also asynchronous.

    In ImageReady we can do only asynchronous operatiosns we can't do synchronous operations???????

Similar Threads

  1. Live Video Display and Camera Server Timeouts
    By simonplatt in forum Symbian
    Replies: 2
    Last Post: 2007-08-16, 12:09
  2. embedable camera application??
    By zhengyu97 in forum Symbian
    Replies: 0
    Last Post: 2005-04-22, 11:09
  3. Replies: 0
    Last Post: 2004-05-26, 15:11
  4. Replies: 0
    Last Post: 2004-02-04, 17:09
  5. Series60 camera and night lighting
    By suckho in forum Symbian
    Replies: 0
    Last Post: 2003-07-10, 14:47

Posting Permissions

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