Android 10 Camera -- Error and Stream Handling

说明:转载自 Android Camera,不定期添加自己的学习思考。


Error and Stream Handling

Error management

HIDL interface methods that interact with the camera must generate the corresponding camera-specific status.

If ICameraDeviceCallbacks::notify() is called with ERROR_DEVICE, only the ICameraDeviceSession::close() method can be called successfully. All other methods will return INTERNAL_ERROR.

Transient errors in image capture must be reported through ICameraDeviceCallbacks::notify() with the appropriate error code. In each transient failure case, the HAL must still call ICameraDeviceCallbacks::processCaptureResult() with an appropriate capture result.

Stream management

HAL clients must configure camera streams by calling ICameraDeviceSession::configurestreams().

发布了81 篇原创文章 · 获赞 31 · 访问量 2万+

猜你喜欢

转载自blog.csdn.net/xiaosaerjt/article/details/105583820
今日推荐