GlenGithub / andar

Automatically exported from code.google.com/p/andar
0 stars 1 forks source link

Unknown pixel format #63

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Hello,

I'm using Point of View mobii TEGRA tablet with Android 2.2 and your sample is 
not working on this device. In AndARActivity.uncaughtException(Thread thread, 
Throwable ex) method I get some exception with "Unkown pixel format" message.

I saw your sourcecode and found that message in CameraParameters.java on line 
136. Is there some way to change this pixel format or is there way to download 
your svn so I could try to "repair" it? :)

Camera on the device is working fine and I'm able to get previews and images 
from it but not with the AndAR :(

I will supply any other details you may need. 
Thank you, Zach.

Original issue reported on code.google.com by m...@cnm.cz on 3 May 2011 at 8:38

GoogleCodeExporter commented 8 years ago
Sorry.. didn't find edit button :)

My device have only one supported preview format, it's RGB_565. In 
CameraPreviewHandler.getBestSupportedFormat you choose only between 
YCbCr_420_SP and YCbCr_422_SP. Is there any way to convert between RGB_565 and 
YCbCr_420_SP?

Original comment by m...@cnm.cz on 3 May 2011 at 10:14

GoogleCodeExporter commented 8 years ago
Well... I figured it out... probably not the best way, but it's working :D

In method CameraPreviewHandler.getBestSupportedFormat I just commented 
everthing out and replaced it with "return PixelFormat.YCbCr_420_SP;".... 
ta-daaaa :)

Original comment by m...@cnm.cz on 3 May 2011 at 1:48

GoogleCodeExporter commented 8 years ago

Original comment by raghavsood on 8 Jul 2012 at 10:38