Discussion Board

Results 1 to 5 of 5
  1. #1
    Regular Contributor kedarm's Avatar
    Join Date
    Sep 2009
    Posts
    285
    Hi!

    I am using the Camera Example to capture and save an image on my Nokia N73.

    As per the default settings, the image seems to be of fairly high resolution (1600x1200). Is there some way I can reduce the resolution of the image? Scale it down to 320x240?

    I tried searching for CCamera::PrepareImageCaptureL() and CCamera::EnumerateCaptureSizes()as mentioned in the thread here, but I do not know where to find the aSizeIndex that will correspond to the resolution that I want and where I should make the changes.

    In the file cameracaptureengine.cpp, is it sufficient to change the KImageSizeIndex from 1 (which is the second largest size) to something higher, like 3? Is there a table somewhere that corresponds KImageSizeIndex with image sizes?

    Update:
    I tried 3 which gave me an image of size 640x480. When I increased it even further to 4, I again got an image of size 1600x1200.
    Any idea how to make the image even smaller?


    Thanks
    Kedar
    Last edited by kedarm; 2010-02-22 at 06:42.

  2. #2
    Super Contributor tamhanna's Avatar
    Join Date
    Jul 2008
    Posts
    2,020
    Hi,
    to be honest:

    Why not use direct pixel processing or the Symbian image framework, or bitblt or sth like that.

    When it comes to Symbian development, finding workarounds is the most important lesson...
    The lines above are the best I have to offer.If anyone of you is of more advanced knowledge, I ask for your patience and understanding! - unknown arab poet
    http://www.tamoggemon.com - Symbian blog - Windows Phone blog
    My other blogs:
    webOS blog iPhone blog BlackBerry blog Samsung bada blog Android blog

  3. #3
    Nokia Developer Moderator skumar_rao's Avatar
    Join Date
    Mar 2004
    Location
    Singapore
    Posts
    9,968
    TCameraInfo::iNumImageSizesSupported Will give you number of sizes supported by camera. then you have to run a for loop CCamera::EnumerateCaptureSizes passing the number as a loop and you will get all supported image sizes.

  4. #4
    Super Contributor tamhanna's Avatar
    Join Date
    Jul 2008
    Posts
    2,020
    Quote Originally Posted by skumar_rao View Post
    TCameraInfo::iNumImageSizesSupported Will give you number of sizes supported by camera. then you have to run a for loop CCamera::EnumerateCaptureSizes passing the number as a loop and you will get all supported image sizes.
    But don't expect these to be constant across all devices.
    The lines above are the best I have to offer.If anyone of you is of more advanced knowledge, I ask for your patience and understanding! - unknown arab poet
    http://www.tamoggemon.com - Symbian blog - Windows Phone blog
    My other blogs:
    webOS blog iPhone blog BlackBerry blog Samsung bada blog Android blog

  5. #5
    Regular Contributor TongMuan's Avatar
    Join Date
    May 2008
    Location
    Surat Thani
    Posts
    164
    Quote Originally Posted by kedarm View Post
    Update:
    I tried 3 which gave me an image of size 640x480. When I increased it even further to 4, I again got an image of size 1600x1200.
    Any idea how to make the image even smaller?
    Hi,

    If I remember correctly, N73 doesn't support resolution smaller than 640x480 for image capture, at least in EXIF format. However, the device does support 320x240 viewfinder bitmaps, so why not use the latest/next viewfinder frame instead of separately capturing an image. If you need the image in JPEG format, you can encode the frame using CImageEncoder.

    -TongMuan

Similar Threads

  1. Replies: 0
    Last Post: 2010-01-07, 07:04
  2. Unable to Capture an image using Native Camera
    By ashuglaitm in forum General Development Questions
    Replies: 1
    Last Post: 2009-09-25, 16:48
  3. Image Error in Camera Application
    By narendar_discover in forum Symbian Media (Closed)
    Replies: 1
    Last Post: 2009-07-21, 15:00
  4. How to change default camera image in S40 5th edition?
    By asahlot in forum Mobile Java Media (Graphics & Sounds)
    Replies: 2
    Last Post: 2008-11-01, 00:37
  5. Opening a JPEG Image
    By ummarbhutta in forum Mobile Java Media (Graphics & Sounds)
    Replies: 8
    Last Post: 2007-02-15, 06:34

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