×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Aug 2008
    Posts
    19

    N8 Problem displaying camera feed to touchscreen display.

    Hello,
    We were previously running fine on nokia N95, N79 phones where our symbian application would access the camera on the phone so we could capture live video feed. We could display the contents of what the camera was able to capture on the device that was capturing it, and send the feed out to our severs with no problems.

    However on the Nokia N8, we are able to install the same symbian application, and we are able to launch it - however when we try to capture the feed no picture shows up on the display.
    The user is pretty much blind as to what video he/she is capturing. But the application is able to send the contents of the video stream out to our servers. (I hope this makes sense).

    There seems to be an issue rendering the window to display the picture that the camera is capturing on the N8 device display.

    The code is

    Code:
     
    CWindowGc& gc = SystemGc();
    gc.Activate(Window());
    gc.BitBlt(TPoint(0,0), &aFrame);
    gc.Deactivate();
    aFrame i tried to write as a jpeg. After exiting program I can see the content of image its perfect.

    The displaymode also does not have alpha parameter... not sure what is causing this.. Have also tried to draw an arc - but that is also not working. Writing text works fine..

    Please let me know if any other thing I need to do for N8.

    Thanks,
    Zubin

  2. #2
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Budapest, Hungary
    Posts
    28,570

    Re: N8 Problem displaying camera feed to touchscreen display.

    This approach worked so far (I also used it), however it is actually missing RWindow::Begin/EndRedraw, and perhaps RWindow::Invalidate before the entire process and RWsSession::Flush at the end. These steps might have become more important with Symbian^3.

  3. #3
    Registered User
    Join Date
    Aug 2008
    Posts
    19

    Re: N8 Problem displaying camera feed to touchscreen display.

    Thanks for the help adding in the following lines made it work:

    Code:
    CWindowGc& gc = SystemGc();
    gc.Activate(Window());
    Window().Invalidate();
    Window().BeginRedraw();
    // Draw it onto the screen
    gc.BitBlt(TPoint(0,0), &aFrame);
    Window().EndRedraw();
    gc.Deactivate()
    Last edited by singhzubin; 2010-10-15 at 01:06.

Similar Threads

  1. Nokia 5230 touchscreen problem
    By kushwiz in forum General Development Questions
    Replies: 1
    Last Post: 2010-07-09, 13:02
  2. Display NOT displaying...
    By zkidron in forum Mobile Java General
    Replies: 13
    Last Post: 2010-05-03, 23:20
  3. Embedding Camera feed into application ?
    By gros.lalo in forum Symbian
    Replies: 2
    Last Post: 2010-03-07, 10:37
  4. Replies: 7
    Last Post: 2009-05-27, 06:27
  5. Nokia N73 Music Edition Camera problem - Display screen like waves moving
    By ramakula@gmail.com in forum General Development Questions
    Replies: 1
    Last Post: 2007-08-22, 08:08

Posting Permissions

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