×

Discussion Board

Results 1 to 7 of 7
  1. #1
    Registered User
    Join Date
    Feb 2011
    Posts
    338

    CCamera::StartViewFinderBitmapsL(aSize) does not return the frame of given size

    hi,
    I am using CCamera to show frames on the device screen. But when i am calling StartViewFinderBitmapsL(aSize) i see that i am giving size 240 * 320 as input frame size but getting out frame size as 240 * 180. I am using Nokia 6124 classic which has screen resolution of 240 * 320 pixels. Do you know what is the reason of such behavior of size ?

  2. #2
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,169

    Re: CCamera::StartViewFinderBitmapsL(aSize) does not return the frame of given size

    I suppose the image dimentions would be 4X*3X, thus if you want to fill the screen you should use 320*240 instead. Or make bigger than screen and clip the visible area from the bigger one.

  3. #3
    Registered User
    Join Date
    Feb 2011
    Posts
    338

    Re: CCamera::StartViewFinderBitmapsL(aSize) does not return the frame of given size

    Quote Originally Posted by symbianyucca View Post
    I suppose the image dimentions would be 4X*3X, thus if you want to fill the screen you should use 320*240 instead. Or make bigger than screen and clip the visible area from the bigger one.
    As you suggested i set the dimension so that it fills the screen and has a ratioo w:h = 4:3. It is working though some fram data is misused. My mobile has only portrait view. It has a 2 mega-pixel camera and has capacity to capture image of 1152 x 864. But when i hold the device in portrait mode and capturing a shot, the image is taken as a landscape always. In this case if i crop the image to make it portrait, then i am loosing main image data and also the image resolution id decreased. What could the solution of this issue ?
    Another query is if i have a camera where the screen ratio is not necessarily 4:3 or 3:4 then what will i do ?

  4. #4
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,169

    Re: CCamera::StartViewFinderBitmapsL(aSize) does not return the frame of given size

    Basically you would need to make a logic for handling your special use case there. Note also that you could draw the image in a way that it is shown completely but some areas would not have image data in them, meaning that your options is either crop of fit-to-screen

  5. #5
    Registered User
    Join Date
    Feb 2011
    Posts
    338

    Re: CCamera::StartViewFinderBitmapsL(aSize) does not return the frame of given size

    Yes that's right, But system camera application can take full 2 mega pixel image whether in portrait mode or in landscape mode. They may be frame orientation technique or some other way they use while capturing.

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

    Re: CCamera::StartViewFinderBitmapsL(aSize) does not return the frame of given size

    Quote Originally Posted by Md. Kayesh View Post
    Yes that's right, But system camera application can take full 2 mega pixel image whether in portrait mode or in landscape mode. They may be frame orientation technique or some other way they use while capturing.
    Hi,

    Camera image sensors are usually not symmetrical, and in all Symbian devices I have encountered so far, the proper full screen viewfinder and full resolution photos have only been available when the screen is in landscape orientation (and sensor's longer side is horizontal). ECam seems to only support viewfinder and images in 4:3 or 16:9 aspect ratio, so when the screen is in portrait, the images and vf are simply as large part as possible cropped from the full image data available (whose real aspect ratio is now 3:4 or 9:16, because the sensor is rotated 90 degrees).

    So, if you want to get full screen viewfinder and not lose image data in captured images, you'll have to force the app orientation to landscape at least in the view you're using to capture the images. Why do you need to use only portrait? As the camera view is full screen (and probably with custom UI), maybe you could rotate the UI stuff you draw on top of the viewfinder to make it look like the screen is still in portrait.

  7. #7
    Registered User
    Join Date
    Feb 2011
    Posts
    338

    Re: CCamera::StartViewFinderBitmapsL(aSize) does not return the frame of given size

    I got my answer. Thank you so much...

Similar Threads

  1. CCamera: StartViewFinderBitmapsL leaves on N96
    By gmsk19 in forum Symbian Media (Closed)
    Replies: 17
    Last Post: 2011-11-11, 08:01
  2. CCamera StartViewFinderBitmapsL mem error
    By srkreddy999 in forum Symbian User Interface
    Replies: 3
    Last Post: 2010-06-10, 18:05
  3. CCamera Frame vs Image
    By jascco in forum Symbian
    Replies: 10
    Last Post: 2008-07-21, 22:52
  4. CCamera : How to Specify Image Frame Format
    By gmsk19 in forum Symbian Media (Closed)
    Replies: 30
    Last Post: 2008-06-11, 05:38
  5. Ccamera rotation and N80 picture size
    By ynho in forum Symbian Tools & SDKs
    Replies: 0
    Last Post: 2006-12-29, 01:06

Posting Permissions

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