Hi all,
I am currently trying to develop on a Motorola Droid for a project, and I am trying to use the camera preview and its callback for taking the images directly from the feed.
This has not been as straightforward as I thought it should be, mostly due to the preview being in the YUVSP420 (at least, I believe so) format. After searching through a lot of the developer resources, I found some conversion code posted by (who I believe was) an Android Engineer, which would convert the raw image to a RGB, but I cannot seem to get this to work correctly. I get a very warped image, with the colors very far off. I think this may be due to using the wrong resolution for the conversion.
My question here, mostly, is does anyone have any suggestions? Also, is there an easy way to find what resolution an image is from the previewCallback? I can post more specific code and values, if they are necessary, I just do not have it running right now.
I am currently trying to develop on a Motorola Droid for a project, and I am trying to use the camera preview and its callback for taking the images directly from the feed.
This has not been as straightforward as I thought it should be, mostly due to the preview being in the YUVSP420 (at least, I believe so) format. After searching through a lot of the developer resources, I found some conversion code posted by (who I believe was) an Android Engineer, which would convert the raw image to a RGB, but I cannot seem to get this to work correctly. I get a very warped image, with the colors very far off. I think this may be due to using the wrong resolution for the conversion.
My question here, mostly, is does anyone have any suggestions? Also, is there an easy way to find what resolution an image is from the previewCallback? I can post more specific code and values, if they are necessary, I just do not have it running right now.