v4l2_codec2: Fixes to V4L2EncodeComponent drain logic.

The V4L2EncodeComponent expects all buffers queued on the v4l2 device
input queue to be returned before an EOS is received. This is however
not always the case, so this CL makes changes to the encoder to
account for this fact.

Bug: 143333813
Test: tast run $HOST arc.VideoDecodeAccel.h264_vm on hatch-arc-r
Change-Id: I2e1cb20a20bda6ed92035c974cec370b81f6c33c
1 file changed
tree: 7ac0bb63ce64a7b374d49ebed7b9923b3c3309a3
  1. accel/
  2. common/
  3. components/
  4. plugin_store/
  5. service/
  6. store/
  7. tests/
  8. .clang-format
  9. MODULE_LICENSE_BSD
  10. NOTICE
  11. OWNERS
  12. PREUPLOAD.cfg
  13. 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.