×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    Sep 2008
    Posts
    3

    Camera View finder not refreshed

    Hi,

    I have the following problem on Symbian^3 devices ( C7, N8 ).

    The Setup:

    I have an application, in which i need to be able to take pictures with the device's on board camera. The application has a view which is used to display the previously taken images ( Gallery View).
    I have a separate view which is used to display the view finder image ( Camera View ). The Camera View can be accessed from the Gallery View by two ways:

    1. pressing the camera button
    2. selecting the "take a picture" item from the options menu.

    For accessing the camera i Use CCamera, and to get view finder images i use StartViewFinderBitmapsL. When MCameraObserver2::ViewFinderReady is called on my class i get the first image from the buffer ( at index 0 ) and duplicate it's handle to a CFbsBitmap instantiated at construction time. Than the image is displayed in my controls's Draw function.

    When selecting back, the CCamera instance is deleted and the Gallery View is displayed again.

    The problem:
    When "starting" the Camera View from the options menu and going back to the Gallery View, everything works fine. When I "start" the Camera View by pressing the camera button, then going back to the Gallery View and "starting" the Camera View by pressing the camera button, only one view finder image is displayed, then it is not refreshed. The application is not freezing, and is still responsive ( my custom control reacts to pointer event and is being redrawn ). The Camera View is started by calling ProcessCommandL on my AppUi ( whit the same command id, that corresponds to the options menu item ) when the camera button is pressed.

    Strangely, when the view finder image freezes and i bring up the Task List ( by pressing the menu button ) the view finder "unfreezes".

    Any idea what could be the problem ?

  2. #2
    Nokia Developer Expert
    Join Date
    Dec 2003
    Posts
    148

    Re: Camera View finder not refreshed

    Are you getting MCameraObserver2::ViewFinderReady call backs when the viewfinder is frozen? Are you calling MCameraBuffer::Release for the viewfinder frames received? New viewfinder frames are not produced before previous frame has been released.
    janza

  3. #3
    Registered User
    Join Date
    Sep 2008
    Posts
    3

    Re: Camera View finder not refreshed

    Are you getting MCameraObserver2::ViewFinderReady call backs: yes
    Are you calling MCameraBuffer::Release for the viewfinder frames received: yes

  4. #4
    Regular Contributor
    Join Date
    May 2010
    Posts
    362

    Re: Camera View finder not refreshed

    Could you just stop getting viewfinder images instead of deleting the CCamera?

  5. #5
    Registered User
    Join Date
    Sep 2008
    Posts
    3

    Re: Camera View finder not refreshed

    Actually only stopping the view finder solves the problem but:

    This leads to poor resource management, and raises another question: when is it safe to delete a CCamera instance, and what is causing the problem on Symbian^3 devices?

Similar Threads

  1. Replies: 4
    Last Post: 2009-11-30, 15:18
  2. Replies: 3
    Last Post: 2009-11-27, 07:42
  3. View Finder error, if original camera app opened
    By Kaz32 in forum Symbian Media (Closed)
    Replies: 6
    Last Post: 2009-09-18, 13:17
  4. Camera View finder problem
    By sreelakshmir in forum Symbian Media (Closed)
    Replies: 5
    Last Post: 2009-09-14, 13:00
  5. Camera view finder
    By Karliski in forum Symbian
    Replies: 1
    Last Post: 2007-07-07, 21: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
  •