Skip to content
Snippets Groups Projects
  1. Oct 20, 2021
  2. Jun 07, 2021
    • Chih-Yu Huang's avatar
      C2PooledBlockPool: remove retry logic · deb4e388
      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
      deb4e388
  3. Mar 01, 2021
    • Chih-Yu Huang's avatar
      C2VdaBqBlockPool: Use GEM handle as the identifier of graphic buffers. · 7791a051
      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
      7791a051
  4. Jan 12, 2021
    • Chih-Yu Huang's avatar
      plugin_store: switch to V4L2GraphicAllocator from C2AllocatorGralloc · 6e1876f7
      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
      6e1876f7
  5. Jul 30, 2020
    • Chih-Yu Huang's avatar
      Change getPoolIdFromGraphicBlock() signature · 7c832f87
      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
      7c832f87
    • Chih-Yu Huang's avatar
      Add C2VdaPooledBlockPool class · 69289ba0
      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
      69289ba0
Loading