v4l2_codec2: Move common code to common helpers folder.

This CL moves the C2VEAFormatConverter.cpp/h and C2VDACommon.h files to
the common helpers package, so they can be reused by the upcoming
V4L2EncodeComponent. Additionaly some fo the code in
VideoEncodeAcceleratorAdaptor.h has been moved to the common.h file.

Some files have been renamed in the process:
C2VEAFormatConverter.cpp/h -> FormatConverter.cpp/h
C2VDACommon.h -> Common.h

Note: The original C2VDACommon.h file has not been removed yet as it's
referenced by vendor/google_arc/. It will be deleted after all
references have been removed.

Bug: 143333813
Test: m -j32
Change-Id: I97044e0916518bee8882604dd68872c3f49cfafb
13 files changed
tree: 2c4660e51eff7f15215ae79cc25f1062474a1c95
  1. accel/
  2. common/
  3. components/
  4. include/
  5. service/
  6. store/
  7. tests/
  8. .clang-format
  9. Android.mk
  10. C2EncoderInterface.cpp
  11. C2VDAAdaptor.cpp
  12. C2VDAAdaptorProxy.cpp
  13. C2VDAComponent.cpp
  14. C2VEAAdaptorProxy.cpp
  15. C2VEAComponent.cpp
  16. MODULE_LICENSE_BSD
  17. NOTICE
  18. OWNERS
  19. PREUPLOAD.cfg
  20. 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.