×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Apr 2009
    Location
    Hagenberg, Austria
    Posts
    45

    Disable auto brightness adjustment for camera

    Hi there,
    does anyone of you know if it is possible to turn off/disable the auto brightness adjustment of the camera for example in the "Camera Example with AutoFocus Support v3.0"?
    I need this cause i'm trying to calculate the ambient light brightness by using the on-board camera. yes i know in most mobile phones are ambient light sensor built in but i want to do the calculation with the camera.
    thank for helping me!

    BR
    Bernhard

  2. #2
    Registered User
    Join Date
    Jun 2007
    Location
    Mumbai, India
    Posts
    1,998

    Re: Disable auto brightness adjustment for camera

    Quote Originally Posted by BernhardA View Post
    Hi there,
    does anyone of you know if it is possible to turn off/disable the auto brightness adjustment of the camera for example in the "Camera Example with AutoFocus Support v3.0"?
    I need this cause i'm trying to calculate the ambient light brightness by using the on-board camera. yes i know in most mobile phones are ambient light sensor built in but i want to do the calculation with the camera.
    thank for helping me!

    BR
    Bernhard
    Not aware of any public apis to tweak this feature.

  3. #3
    Super Contributor
    Join Date
    May 2004
    Posts
    2,265

    Re: Disable auto brightness adjustment for camera

    Hi,

    The ECam defined CCamera::SetBrightnessL() but don't know if it is implemented on all S60 phones.

    Code:
    // .h
    ...
    CCamera* iCamera;
    TCameraInfo iCameraInfo;
    ...
    
    // .cpp
    ...
    iCamera->CameraInfo(iCameraInfo);
    ...
    if(iCameraInfo.iOptionsSupported&TCameraInfo::EBrightnessSupported)
        {
        TRAPD(err, iCamera->SetBrightnessL(0)); // fixed brightness instead of auto brightness calculation (CCamera::EBrightnessAuto)
        if(err!=KErrNone)
            {
            // can still be something wrong
            }
        }
    Regards

    Ziteng Chen

  4. #4
    Registered User
    Join Date
    Apr 2009
    Location
    Hagenberg, Austria
    Posts
    45

    Re: Disable auto brightness adjustment for camera

    wow that's exactly what i'm looking for!
    thank you very much chenziteng!

    BR
    Bernhard

Similar Threads

  1. disable RConnection auto re conecct
    By nire123 in forum Symbian
    Replies: 4
    Last Post: 2009-11-27, 14:48
  2. disable RConnection auto re conecct
    By nire123 in forum VoIP
    Replies: 0
    Last Post: 2009-06-15, 21:47
  3. disable N95 camera auto starting
    By jvdgrift in forum Mobile Java Media (Graphics & Sounds)
    Replies: 1
    Last Post: 2009-05-29, 16:04
  4. How to disable auto screen rotation?
    By olliwang in forum Symbian
    Replies: 1
    Last Post: 2008-11-08, 13:47
  5. Nokia PC Suite Auto Update, can you disable it?
    By iistudio in forum PC Suite API and PC Connectivity SDK
    Replies: 2
    Last Post: 2008-05-01, 05:43

Posting Permissions

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