I have the exact same problem. 

Were you able to solve the issue?


On Monday, 27 August 2012 14:29:09 UTC+5:30, Jianyong Lu  wrote:
> Hi,
> 
>  I am porting B2G to my device,but I find that camera can not work.When I 
> open the camera app,the preview is black.The logcat is as follows:
> 
> 
> 
> E/NvOmxCamera(   98): OMX_ERRORTYPE 
> android::NvOmxCamera::getCameraStereoMode(NvxComponent*, 
> NvOmxCameraUserStereoMode&): Error: invalid NVX mode 0.
> 
>       
> 
> E/NvOmxCamera(   98): OMX_ERRORTYPE 
> android::NvOmxCamera::getCameraStereoModeAndCaptureInfo(NvxComponent*, 
> NvOmxCameraUserStereoMode&, NVX_STEREOCAPTUREINFO&): getCameraStereoMode 
> failed with 0x00000000
> 
> V/NvOmxCamera(   98): Attempt to set crop to (0,0), (720,576)
> 
> E/NvOmxCamera(   98): native_window_set_crop failed with 0xffffffda
> 
> E/NvOmxCamera(   98): preparePreviewPort: Allocate Preview Buffers Failed 
> [0x80001001]
> 
> E/NvOmxCamera(   98): startPreviewInternal: failed to prepare preview port 
> [0x80001001]
> 
> E/NvOmxCamera(   98): startPreview: start preview failed  [0x80001001]
> 
> 
> 
> -------------------------
> 
> As it shows,native_window_set_crop is failed.I find that 
> native_window_set_crop will call back "GonkNativeWindow::perform" and hit the 
> case "NATIVE_WINDOW_SET_CROP" which will return "INVALID_OPERATION".It causes 
> start preview failed.But camera works ok when I flash Android into my 
> device,so I think that the problem is in the gecko.How to solve the problem?

_______________________________________________
dev-b2g mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-b2g

Reply via email to