Reland "codec2: add dequeue thread loop to recycle output buffers"
This reverts commit cb35176c4c402a7d77cd1c472002976be4021cb8.
The dequeue thread is implemented for C2VDAComponent to process a routine to
dequeue buffer from C2VDABQBlockPool. When a buffer (along with its slot index)
is dequeued and obtained from block pool, C2VDAComponent has the map of slot
index to buffer id, and the corresponding buffer is then reusable for VDA.
Note: this change will break C2VDAComponent_test, need to fix it
Note: this only support output surface mode, we need another solution for
byte-buffer mode
Bug: 79239042
Test: CtsMediaTestCases android.media.cts.MediaPlayerTest#testLocalVideo_MP4_H264_480x360_1000kbps_25fps_AAC_Stereo_128kbps_44110Hz
Change-Id: Icb42c425f90e0615c63728f75627a7a0cb661df3
3 files changed