codec - timeoutUs in MediaCodec API android -


I am using the MediaCodec API in one of my apps. I used code from bigflake and the app is running fine But I still can not understand both timeout U in both tasks dequeueInputBuffer () and the function dequeueOutputBuffer () after reading about both Not in this API reference It would be great if someone could use this parameter properly and explain the effect. And should it be in the above mentioned both function calls? Well, the main idea is that internally, working under the MediaCodec layer components is asynchronous, so that's why. When you call dequeueInputBuffer () or dequeueOutputBuffer () , no work is done, calling is threaded, only during the selected timeout The reaction is ready or timeout until the component status is checked. Buffer allocation from my experience is also ASCIN, so if an internal buffer is not ready for dequeue ... small timed out can be in INFO_TRY_AGAIN_LATER but mainly for decoding \ encoding, for processing by non-blocking call Input frames submit, processing is in the second thread and you also see the preparation of out-out frames with uninterrupted calls. Therefore, not all pipelines sleep for the operation of each heavy (decoding encoding) etc. and other operations can be done


Comments

Popular posts from this blog

sqlite3 - UPDATE a table from the SELECT of another one -

c# - Showing a SelectedItem's Property -

javascript - Render HTML after each iteration in loop -