| Reply | « Previous Thread | Next Thread » |
|
Hello,
I've developped a midlet on N82 for using camera and taking snapshots at the max resolution, using MMAPI in the standard way. This the method I've used for taking snapshot: private void takeSnapshot(){ if(player!=null){ try{ byte[] jpgImage = videoControl.getSnapshot("encoding=jpeg&quality=100&width=2592&height=1944"); midlet.cameraCanvasCaptured(jpgImage); }catch(MediaException me){ message1="MediaException:"; message2=me.getMessage(); } } } I've compared pictured taken in this way with the same taken with standard application on the mobile, and results are: * the quality of the pictures are worster in the firt case * spend long time (20 s) for encoding the picture Questions are: 1) I've read that all the S60 third edition fp1 mobile support the AMMS api but haven't been implemented the classes for managing camera, flash focus...is it true? Will be implemented in the future? 2) Someone has some ideas how to improve the quality of the pictures and reduce time of coding with MMAPI? 3) Where can I get a list of supported parameters (type of encodings...) for the method getSnapshot? Thanks in advance for your help Daniele
Last edited by dado73 : 2008-09-17 at 15:37.
|
|
Hi Daniele,
about your first two questions: 1) You're right: AMMS camera capabilites are still not implemented on Nokia phones. About the future, I guess they'll be surely implemented, but maybe someone else has more precise details about it. 2) Uhm, using the same parameters and picture quality (so, without changing anything) I think it's not possible to speed up the camera capture process.. Pit |
|
Thanks for answer,
I understand that is not possible to speed up enconding of th picture without modifing the parameters, but the other question is: with this configuration that I think is the best, the quality of pictures are worst, so how can I improve the quality (there are some parameter to change or add)? Or may be exist third part libraries to manage camera? Or is possible to call from a midlet application the standard program of the mobile for taking pictures? |
|
As pointed by Jappit as well, Camera features of AMMS API are not supported yet. You can read more about the supported and unsupported features of AMMS API in Nokia Devices at
http://www.forum.nokia.com/document/...E8122580E.html As for code running slow whilst accessing local resoruces; you have to understand that Java code will run relatively slower as compared to the native code. You will have to change the image parameters to speed it up. Also make sure that you use an image size that is natively supported by the camera so no enlargement or reduction is being done when data is being returned to your code in the required size. Refer to Forum Nokia JavaME Developers Library for more on this. http://www.forum.nokia.com/document/...D8F1EE772.html So in the end you have to find a right balance between your requirements and what the phone can do for you. As for other supported parameter as per your original post please refer to Forum Nokia JavaME Developers Library, they are listed there. |
|
Quote:
Quote:
Hartti |
| Reply | « Previous Thread | Next Thread » |
| Thread Tools | Search this Thread |
|---|---|
| Thread | Thread Starter | Forum | Replies | Last Post |
|---|---|---|---|---|
| Video snapshot | muntain | Symbian Media (Graphics & Sounds) | 3 | 2009-10-01 16:33 |
| N82 Problem of synchronization with PC Suite | Telemann | General Discussion | 1 | 2008-08-06 14:48 |
| Cannot pull business card from N82 | zhangmaoxian | General Discussion | 2 | 2008-07-22 09:13 |
| How to change MMS content class in Nokia N82 | amirse | General Messaging | 0 | 2008-02-05 14:20 |
| Take a Camera snapshot using nokia UI Api | mahabubul_alam | Mobile Java Media (Graphics & Sounds) | 0 | 2007-04-24 16:59 |