1. 程式人生 > >Android-Camera2Video的demo原始碼和除錯心得

Android-Camera2Video的demo原始碼和除錯心得

Discard all captures currently pending and in-progress as fast as possible.

Cancelling will introduce at least a brief pause in the stream of data from the camera device, since once the camera device is emptied, the first new request has to make it through the entire camera pipeline before new output buffers are produced.

This means that using abortCaptures() to simply remove pending requests is not recommended; it's best used for quickly switching output configurations, or for cancelling long in-progress requests (such as a multi-second capture).