C2VdaBpBlockPool: call cancelBuffer when the buffer is not shared

Originally C2VdaBpBlockPool detaches buffer from IGBP if the component
doesn't pass the buffer to the client. However, the buffer might be
still used afterward. This CL changes to use cancelBuffer() instead of
detachBuffer().

Bug: 162902320
Test: android.media.cts.AdaptivePlaybackTest#testH264_*
Change-Id: Ieadd0058877bcf8be0917420e1f11edc2ff14a91
1 file changed
tree: 0f27f0901175723eb47474a9940c7e79eaa107d6
  1. accel/
  2. common/
  3. components/
  4. plugin_store/
  5. service/
  6. store/
  7. tests/
  8. .clang-format
  9. METADATA
  10. MODULE_LICENSE_BSD
  11. NOTICE
  12. OWNERS
  13. PREUPLOAD.cfg
  14. README.md
README.md

V4L2-based Codec2 Component Implementation

Description of Sub-folders

  • accel/ Core V4L2 API and codec utilities, ported from Chromium project.

  • common/ Common helper classes for both components/ and store/.

  • components/ The C2Component implementations based on V4L2 API.

  • store/ The implementation of C2ComponentStore. It is used for creating all the C2Components implemented at components/ folder.

  • service/ The Codec2's V4L2 IComponentStore service. The service initiates the component store implemented at store/ folder, and registers it as the default service.