×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    May 2008
    Location
    Surat Thani
    Posts
    260

    Nokia C5 camera issues

    Hi,

    I came across a few problems when testing my camera application on a Nokia C5 device (3rd edition FP2). I'm writing a "formal" bug report here (in addition to sending a link to this thread via the bug reporting form) so that others experiencing the same problems can find this thread if they search the forum.

    Also, as C5 is has a "full focus" camera, which is a new feature, I'd be happy if someone could comment whether the same issues occur on other S60 devices with full focus - that'd help in deciding whether it makes sense to make MachineUid specific workarounds eg. to hide exposure compensation setting and use brightness instead. All of the use cases listed below work correctly 6220 Classic (S60 3rd edition FP2) and N97 (S60 5th edition).


    Device details

    Software version: 031.022
    Software version date: 28-Mar-2010
    Custom version: 031.022.C00.01
    Custom version date: 28-Mar-2010
    Language set: 17.01
    Model: C5-00
    Type: RM-645
    Latest update: Not updated


    Title: Exposure compensation (EV) setting changes do not affect the viewfinder

    Steps to reproduce:
    1) Instantiate and initialize CCamera and CCameraAdvancedSettings, prepare for image capture and start viewfinder
    2) Increase exposure compensation setting value to 0x04 (the default value is 0) via CCameraAdvancedSettings::SetExposureCompensation(TInt)
    3) Check error code of the resulting camera event and observe viewfinder bitmaps for changes

    Expected result:
    Event error code is KErrNone, viewfinder gets brighter.

    Actual result:
    Event error code is KErrNone, viewfinder does not change.

    Additional info: Can also be reproduced with the device's native camera application. If exposure compensation setting is not available in the toolbar, go to Options/Customize toolbar, select Add shortcut, and select Exposure. Go back to viewfinder view. Select exposure compensation setting from toolbar, and in the setting view press up/down and observe the viewfinder preview area for changes.


    Title: CCameraImageProcessing::GetTransformationValue(KUidECamEventImageProcessingEffect, TInt&) gives value EEffectNone, even though an effect is in use

    Steps to reproduce:
    1) Instantiate and initialize CCamera, CCameraAdvancedSettings and CCameraImageProcessing, prepare for image capture and start viewfinder
    2) Enable an effect transformation, eg. KUidECamEventImageProcessingEffect / EEffectNegative, via CCameraImageProcessing::SetTransformationValue(TUid, TInt&)
    3) Check error code of the resulting camera event and get the active effect transformation value using CCameraImageProcessing::GetTransformationValue(TUid, TInt&)

    Expected result:
    Event error code is KErrNone, transformation value is EEffectNegative, which we just set. Viewfinder bitmaps have the negative effect.

    Actual result:
    Event error code is KErrNone, transformation value is EEffectNone, but viewfinder bitmaps have the negative effect.

    Additional info:

    Log - Setting Negative effect on C5 (incorrect behavior):

    8.8639 SetTransformationValue(TUid::Uid(0x1020e1c7), 0x1)

    9.9478 HandleEvent uid: 0x1020e1c7, error: 0

    9.9492 GetTransformationValue(TUid::Uid(0x1020e1c7), TInt&) gave value 0x0

    Log - Setting Negative effect on N97 (correct behavior):

    7.7425 SetTransformationValue(TUid::Uid(0x1020e1c7), 0x1)

    7.7441 HandleEvent uid: 0x1020e1c7, error: 0

    7.7455 GetTransformationValue(TUid::Uid(0x1020e1c7), TInt&) gave value 0x1


    Title: Snapshot given by CCameraSnapshot looks cropped compared to actual JPEG image

    Steps to reproduce:
    1) Instantiate and initialize CCamera, CCameraAdvancedSettings and CCameraImageProcessing, prepare for image capture (2048 x 1536, screen in landscape mode) and start viewfinder, request full screen (320 x 240) snapshots for captured images.
    2) Start image capture
    3) Draw snapshot bitmap to the screen as soon as it arrives
    4) When JPEG data is available, draw the JPEG image (decode the main JPEG data) so that it's shown fullscreen


    Expected outcome:
    The area shown in the image does not change when snapshot is replaced with actual JPEG.

    Actual outcome:
    The image "zooms out" slightly when snapshot is replaced with the actual JPEG.

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

    Re: Nokia C5 camera issues

    Title: Snapshot given by CCameraSnapshot looks cropped compared to actual JPEG image
    Seems like atleast this would be intentional. In cameras it is common to crop out about 10% of the viewfinder image on both sides. This is to ensure that atleast the image in the viewfinder is visible in the end result.

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

    Re: Nokia C5 camera issues

    Quote Originally Posted by TongMuan View Post
    Title: CCameraImageProcessing::GetTransformationValue(KUidECamEventImageProcessingEffect, TInt&) gives value EEffectNone, even though an effect is in use
    Can you try CCameraImageProcessing::TransformationValue() function? It provides the same functionality.
    janza

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

    Re: Nokia C5 camera issues

    Quote Originally Posted by TongMuan View Post

    Title: Snapshot given by CCameraSnapshot looks cropped compared to actual JPEG image
    You have sharp eyes...

    After investigating this I can confirm that some pixels are indeed cropped from the source image before creating snapshot. This is because of hardware limitation and can't really be fixed. The amount of cropped pixels is very small and should not impede normal usage. Do you have a use case where this is actually becomes a problem?
    janza

  5. #5
    Registered User
    Join Date
    May 2008
    Location
    Surat Thani
    Posts
    260

    Re: Nokia C5 camera issues

    Quote Originally Posted by janza View Post
    Can you try CCameraImageProcessing::TransformationValue() function? It provides the same functionality.
    Hi,

    Thanks a lot, TransformationValue() does get the active effect transformation value correctly also on C5, so I'll take it into use for the setting. According to S60 5th edition documentation, the function is deprecated, but seems to still be there at least in Symbian^3, so it won't be a problem for now, and I guess later platforms won't have Avkon, so the app wouldn't run on them anyway

    Regarding the cropped snapshot, it's not really an issue. After an image is captured, the user can zoom in, with the initial unzoomed image being the snapshot. In the development phase I've been drawing the decoded & scaled image on top of the snapshot, just to see when the decoding is done and zooming functionality is available. When this decoded same-size image is not drawn, probably the cropping won't even be noticable, at least if the "zoom step" between snapshot and the first zoomed version of the decoded image is large enough.

    I noticed one more oddity with the C5 camera api implementation. In ecamadvancedsettings.h / ecamimageprocessing.h in both 5th edition and 3rd edition FP2, it's specified that:

    Code:
    /** Sharpness adjustment - recognized range [-100:100] */
    static const TUid  KUidECamEventImageProcessingAdjustSharpness  =  ...
    However, on C5, GetTransformationSupportedValuesL(KUidECamEventImageProcessingAdjustSharpness,...) gives EContinuousRangeMinMax [-1:1] (and as expected, setting values outside this range results in KErrNotSupported in the callback). On the other devices I have, the range is [-100:100], as specified in the header file.
    Last edited by TongMuan; 2010-10-10 at 20:05.

Similar Threads

  1. Replies: 1
    Last Post: 2010-08-09, 21:43
  2. problem in installing java-program on "Nokia C5"
    By gutesoftware_krause in forum Mobile Java General
    Replies: 2
    Last Post: 2010-06-14, 15:37
  3. Not compatible with Nokia C5
    By gunajit9 in forum Symbian
    Replies: 1
    Last Post: 2010-03-16, 17:37
  4. Camera issues Nokia N86
    By sconst00 in forum Mobile Java General
    Replies: 3
    Last Post: 2009-09-07, 15:19
  5. Replies: 0
    Last Post: 2005-11-20, 23: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
  •  
×