Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User Darth1701's Avatar
    Join Date
    May 2005
    Posts
    3
    Hello,

    I used the CamApp example, changed it according the guide in the forum to make it work with the old n6600 camera plugin. Then I made some handmade modification (path and imagenames, a timer). It worked without a flaw.

    Now I installed the same program on the N70. It worked without any error messages but the image quality is lower (not by much but visibly) than the quality with the built-in camera app or even with python. I don't know what causes this.

    Anyone willing to help me to send the code and look over it?

  2. #2
    Nokia Developer Expert symbianyucca's Avatar
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    28,667
    did you make your application to adapt different screen resolutions, if not, then you should try it, might improve the look & feel considerably.

    yucca

  3. #3
    Registered User Darth1701's Avatar
    Join Date
    May 2005
    Posts
    3
    Hi yucca,

    thanks for your answer. I already changed the resolution to max but the image was still not very good. Then I finally found the error!

    The code in the original CamApp is a bit faulty about the jpeg compression settings. I changed the code to this:

    void CCameraCaptureEngine::SaveImageL(const TFileName* aNewFilePathAndName, RFs* aFs)
    {
    if ( !iEncoder )
    {
    if ( aFs && aNewFilePathAndName )
    {
    iEncoder = CImageEncoder::FileNewL(*aFs, *aNewFilePathAndName, KMimeType);
    }
    else
    {
    User::Leave( KErrArgument );
    }
    }

    // If it is not busy, start to do the conversion.
    if ( !IsActive() )
    {

    TJpegImageData* imageData = new (ELeave) TJpegImageData;

    // Set some format specific data
    imageData->iSampleScheme = TJpegImageData::EColor422;
    imageData->iQualityFactor = 85;

    CFrameImageData* iFrameImageData = CFrameImageData::NewL();

    // frameData - ownership passed to iFrameImageData after AppendImageData
    User::LeaveIfError(iFrameImageData->AppendImageData(imageData));

    iEncoder->Convert( &iStatus, *iBitmapSave, iFrameImageData );
    iState = EConvertingImage;

    delete iFrameImageData;

    // Update the status pane to "Saving image..."
    _LIT( KSavingImage, "Saving image..." );
    iController.ShowConversionStatusL( KSavingImage );
    SetActive();
    }
    }

    Maybe someone else will find this useful. The default compression factor of the N70 seems a bit low it seems, didn't notice any difference on the N6600.

    Thanks again and I would like to say this board is always really helpful for a programmer novice like me.

Similar Threads

  1. Ringing problem with Nokia N70
    By DVogdos in forum Audio
    Replies: 2
    Last Post: 2007-06-26, 20:49
  2. Replies: 0
    Last Post: 2005-11-27, 20:27
  3. Nokia 3650 retrieve data from server problem
    By artjoy in forum Mobile Java Networking & Messaging & Security
    Replies: 0
    Last Post: 2004-02-10, 07:44
  4. Nokia User Agent problem or Gateway problem ??
    By pbipin in forum WAP Servers
    Replies: 2
    Last Post: 2002-10-04, 02:43
  5. Http connection problem in 6310i
    By teahola in forum Mobile Java General
    Replies: 1
    Last Post: 2002-10-03, 18:46

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved