September 29, 2007

GUIControl.USE_GUI_PRIMITIVE vs. VideoControl.USE_DIRECT_VIDEO

I am not too sure how many J2ME developers out there read my blog but I thought I'd post the question here anyways. It could startup some interesting discussions.

My final year project has to do with some specific type of image analysis. The image is acquired by a mobile's phone camera. The project is at this point completed and my team and I are very happy with the results. However, since we've got more time on our hands before the actual due date, we have been trying to tweak certain aspects of the J2ME application / library that we've been developing; namely the Image Capturing process.

The main reason being that the better the image we've got, the better the outcome of our image analysis algorithm.

I have recently been told (but have been trying to verify) that when capturing a photograph, the use of GUIControl.USE_GUI_PRIMITIVE produces better images than that of VideoControl.USE_DIRECT_VIDEO.

I have rewritten some of our testing to see whether this was true. Quite frankly, I have not been able to pick up any differences in both images. So, the question I have for the guys out there who have been using the J2ME MMAPI for a while is whether there really is a difference between GUIControl.USE_GUI_PRIMITIVE and VideoControl.USE_DIRECT_VIDEO as far as still image capture is concerned. And if there is, would you mind adding substantial information (links and references to forum discussions and so on are welcome, although we've already done our share of Googling) about it in your comments?

Well, that's about it.


For readers who have no clue what is being discussed here but would like to know more about writing J2ME code to capture videos or still images, I would refer you to the following article:

Mobile Video with JME and MMAPI. :-) I strongly believe in DRY.

Cheers!

1 comment:

  1. I have the same question, but for a different goal. Perhaps u could help me out. I made a j2me application to use the camera with the GUI_PRIMITIVE and it works well on a nokia S40 cellphone, but not on a S60. On a S60, the video doesnt seem to be initialized and i get the "no data" error response on the cellphone display. I even thought that if i were to choose Direct_Video, it would solve the problem, but nothing so far. Help this poor soul and if i find out the diff between direct and primitive video, i'll let u know =)

    ReplyDelete