ScaleL() func. not working for higher destination size
| Fri, 2006-05-05 07:20 | |
|
Hello,
I am working on scaling of images for 2 resolutions (640*480) & (1280*960). For that purpose I am using the below mentioned function of the CMdaBitmapScaler class Code: void ScaleL(MMdaImageUtilObserver& aObserver,CFbsBitmap& aSrcBitmap,TSize aDestSize,TBool aMaintainAspectRatio = ETrue); This function works properly for first destinaion size that I am providing 640*480 as after the ScaleL() function the corresponding Code: void MiuoConvertComplete(TInt aError) gets called & i get the desired outputHowever if I scale the images for the destination size (1280*960), I dont get the desired result I have traced that when the flow enters the Code: void MiuoConvertComplete(TInt aError) function it checks the aError parameter which is not KErrNone & hence doesnot proceed furtherDoes this function not work for higher destination size? Please let me know Thanks, Yogesh Khanolkar |
|






Forum posts: 1246
You should check what that error code you got mean. It should help you track down the problem.
Thats what they are for you know
Forum posts: 34
Yes u said it rite... its a memory issue... i checked the error code & it gave me an error code -4 which, means KErrNoMemory
But now how should I proceed?
What I am doing is i am scaling the bitmaps I have to the images that the phone camera produces (i.e 640*480, 1280*960, etc)
My application sucessfully works for 640*480, but not for 1280*960
Please suggest me an alternate solution if possible
Thanks,
Yogesh Khanolkar
Forum posts: 174
http://ptrmobile.blogspot.com/
Forum posts: 34
thanks for your reply, but then I would like to ask u a question
What about the images which the camera captures? For eg. the Nokia 6680 gives you an image of 1280*960 on your device. Hows that possible?
Regards,
Yogesh Khanolkar
Forum posts: 1246
Camera hardware can usually output the image already compressed, so the app controlling the camera don't have to handle the full uncompressed image.
This you have to do if you want to rescale it. (well, not really, but its not trivial to implement it otherwise. I know a company selling exactly that for good money..).