- Oct 20, 2021
-
-
Chih-Yu Huang authored
Bug: None Test: mmm external/v4l2_codec2 Change-Id: I21d5d30ce32279dfb1cbe2b40d435d2e9707f5aa
-
- Jun 07, 2021
-
-
Chih-Yu Huang authored
C2PooledBlockPool is used by VideoFramePool. Currently VideoFramePool has exponential backoff retry, so we don't need another retry logic in C2PooledBlockPool. This CL removes the unnecessary retry logic. Bug: 160110407 Test: tast.arc.VideoDecodeAccel.h264_vm Change-Id: I73ffd4b27000846eeea1e5bffbedb21e16795593
-
- Mar 01, 2021
-
-
Chih-Yu Huang authored
Originally we assume the buffers at BufferQueue are not moved to different slot. Then we could track the buffers by the slot index. However, MediaSync implementation detach buffers and attach back to BufferQueue. The slot index might be changed. This CL changes to use GEM handle as the identifier of graphic buffers. Because all the graphic buffers are allocated by gralloc, we could get the GEM handle by DRM. V4L2GraphicAllocator is not used anymore. Bug: 177484971 Test: android.media.cts.AdaptivePlaybackTest Change-Id: I6b7f3f9a6c1d6b97d0e44aa2a19bc71ad3bab880
-
- Jan 12, 2021
-
-
Chih-Yu Huang authored
At ag/12937817 we add V4L2GraphicAllocator to add unique ID for each graphic buffer. This CL switches to use V4L2GraphicAllocator for output buffer allocator. Also we change to use the unique ID instead of IGBP slot in surface mode (C2VdaBqBlockPool), and buffer ID from BufferPoolData in byte buffer mode (C2VdaPooledBlockPool). Bug: 171845630 Test: android.media.cts.AdaptivePlaybackTest#testH264_* Change-Id: Iab06148a09c9ddb01634399c386a0aaea77aaabd
-
- Jul 30, 2020
-
-
Chih-Yu Huang authored
getPoolIdFromGraphicBlock() is used to get the buffer index from C2GraphicBlock. Originally the function takes the pointer for returing the buffer index, and returns the status code. But actually we only care if the function is successfully or not. This CL changes the function signature to return a std::optional<> value to indicate if the function successfully gets the buffer index. Bug: 160110407 Test: run e2e test Change-Id: I88e54831b1964d20cd888e2b69a028e75a3e50cd
-
Chih-Yu Huang authored
V4L2 stateful API will require the caller passing a fixed output buffer to each slot of buffer queue. However, the default C2PooledBlockPool cannot achieve this requirement. This CL adds C2VdaPooledBlockPool for replacing C2PooledBlockPool in the following CL. Bug: 161770200 Test: m -j32 Change-Id: Icdad63ace87b49793d0f7215f8d735a8c950ee60
-