Skip to content
Snippets Groups Projects
  1. Apr 18, 2022
    • Alix's avatar
      Deleted clang property in Android.bp files · 45c7a57f
      Alix authored
      Deleted deprecated clang property in Android.bp files using bpmodify.
      
      Bug: 208980553
      Test: treehugger
      Change-Id: Ia6fef78af0555dd7346adbb29c4bb14ad31918a8
      45c7a57f
  2. Mar 08, 2022
    • Ray Essick's avatar
      replace include_dirs with header_libs · 49556b58
      Ray Essick authored
      [NB: i don't seem to be able to build this -- keep getting: unknown target 'C2VEACompIntf_test'
      we'll see if treehugger knows a combination that exercises this.
      
      Bug: 201944383
      Test: build (trying)
      Change-Id: Ibaeb2d5cd952f2849764dfa853c3927b95e2cac5
      49556b58
  3. Jan 06, 2022
    • Robin Lee's avatar
      Put v4l2_codec2 underneath a soong namespace · f83441a3
      Robin Lee authored
      It isn't currently possible for multiple soong modules in the same build
      to define the same output path, even if one overrides another, so given
      that the contract of codec2 involves loading libraries from some
      specific paths, these paths must not have modules built into them by
      default or they can not be overridden by other soc_specific code.
      
      Change-Id: I4823f9942d69a29c53ed88c5e39c3b0cb0786973
      Test: Build device using v4l2_codec2 from installclean and ensure the output has not changed
      Bug: 200265668
      f83441a3
  4. Nov 16, 2021
    • David Stevens's avatar
      c2_e2e_test: ignore configuration changes · d49af917
      David Stevens authored
      Update the E2eTestActivity manifest so that it handles configuration
      changes itself, and just ignore them. This prevents the activity from
      being recreated, which destroys the test surface.
      
      Bug: 206342802
      Test: tast run octopus arc.VideoDecodeAccelPerf.*
      Change-Id: Ie48cf0650424c9f641c2770b3127f75e6407c01d
      d49af917
    • David Stevens's avatar
      c2_e2e_test: ignore configuration changes · c6443ab0
      David Stevens authored
      Update the E2eTestActivity manifest so that it handles configuration
      changes itself, and just ignore them. This prevents the activity from
      being recreated, which destroys the test surface.
      
      Bug: 206342802
      Test: tast run octopus arc.VideoDecodeAccelPerf.*
      Change-Id: Ie48cf0650424c9f641c2770b3127f75e6407c01d
      (cherry picked from commit 0127892edd2d5f62623e14db20b1a023850e0667)
      c6443ab0
  5. Oct 28, 2021
  6. Oct 25, 2021
    • Yuntao Xu's avatar
      Convert jni/Android.mk to Android.bp · df79d147
      Yuntao Xu authored
      Converted the Make file to a Soong one.
      
      Bug: 202170767
      Test: compared the two binary files built by Make and Soong
      Test: TreeHugger
      Change-Id: I696e8b3a32ad5441619d8d7ea7c3e3059fae9123
      df79d147
  7. May 12, 2021
  8. Apr 20, 2021
    • Bob Badour's avatar
      [LSC] Add LOCAL_LICENSE_KINDS to external/v4l2_codec2 · 264cc169
      Bob Badour authored
      Added SPDX-license-identifier-BSD legacy_unencumbered to:
        tests/c2_e2e_test/Android.mk
      
      Bug: 68860345
      Bug: 151177513
      Bug: 151953481
      
      Test: m all
      
      Exempt-From-Owner-Approval: janitorial work
      Change-Id: If900ebfbf2f8748b41b3a8a7ce9b106b1b1a0427
      264cc169
  9. Mar 15, 2021
  10. Feb 13, 2021
    • Bob Badour's avatar
      [LSC] Add LOCAL_LICENSE_KINDS to external/v4l2_codec2 · b1d153c0
      Bob Badour authored
      Added SPDX-license-identifier-BSD to:
        accel/Android.bp
        common/Android.bp
        components/Android.bp
        plugin_store/Android.bp
        service/Android.bp
        store/Android.bp
        tests/c2_comp_intf/Android.bp
      
      Added SPDX-license-identifier-BSD legacy_unencumbered to:
        Android.bp
        tests/c2_e2e_test/jni/Android.mk
      
      Bug: 68860345
      Bug: 151177513
      Bug: 151953481
      
      Test: m all
      
      Exempt-From-Owner-Approval: janitorial work
      Change-Id: I4ef032a3849d650e13761a868b45309275d408a2
      b1d153c0
  11. Jan 12, 2021
    • David Stevens's avatar
      c2_e2e_test: cache encoder input file · a1cc7fab
      David Stevens authored
      Caching the file prevents file system activity from interfering with
      encoder performance measurements.
      
      Bug: 175515099
      Test: arc.VideoEncodeAccelPerf.h264_1080p_i420_vm
      
      Change-Id: Ia8bc914e5a562e262683c6c372829ed9ae6dc8fc
      a1cc7fab
    • David Stevens's avatar
      c2_e2e_test: add codec ready broadcast · ccaf0259
      David Stevens authored
      This change adds a broadcast receiver that can be used to query whether
      or not the codec has been fully initialized. This can be used by
      performance tests to wait for setup to finish.
      
      Bug: 175515099
      Test: manually verify am broadcast result
      
      Change-Id: I7b114b8232cf9a64e021e13ea5de1c9781cbb479
      ccaf0259
    • David Stevens's avatar
      c2_e2e_test: Add fake renderer · 579cd8a7
      David Stevens authored
      This change adds an option to use a fake renderer when decoding. The
      fake renderer allows the decoder to operate with realistic frame timings
      while avoiding an actual dependency on the display stack.
      
      The change also fixes an overflow issue in a log statement.
      
      Bug: None
      Test: manually test new option
      
      Change-Id: Id10809c98584d3df390dea068307e32d6afd469b
      579cd8a7
    • David Staessens's avatar
      v4l2_codec2: Add new SW decoder names to the e2e decoder test. · 762e4695
      David Staessens authored
      This CL adds the new names used for the SW decoders on Android R to the
      e2e decoder test. The old names are currently still supported as an
      alias of the new decoder names, but we should switch to using the new
      names to make the tests future-proof.
      
      New SW encoder names:
      - OMX.google.h264.decoder -> c2.android.avc.decoder
      - OMX.google.vp8.decoder -> c2.android.vp8.decoder
      - OMX.google.vp9.decoder -> c2.android.vp9.decoder
      
      Bug: None
      Test: tast run DUT arc.VideoDecodeAccel.h264 on hatch
      Change-Id: Ie84fcbe4f93943e7bc6be4d2d95163c369c06047
      762e4695
    • David Staessens's avatar
      v4l2_codec2: Add option to e2e encoder test to use software encoder. · bc6c579f
      David Staessens authored
      This CL adds a "--use_sw_encoder" parameter to the e2e encoder test,
      that makes the test use a SW encoder instead of the default HW encoder.
      This can be used to verify functioning of the software encoder, and to
      provide a performance baseline for the HW video encoder tests.
      
      Bug: 169626661
      Test: tast run DUT arc.VideoEncodeAccel.h264_1080p_i420 on hatch
      Change-Id: I0289aa5e569bd7229ba18ad57b5f2e0909d60f1c
      bc6c579f
  12. Sep 19, 2020
  13. Sep 16, 2020
    • David Stevens's avatar
      c2_e2e_test: decouple activity and test startup · d81f0fc8
      David Stevens authored
      This change adds a boolean extra flag that can be set to make the test
      wait until it receives a specific intent to start the decode/encode
      test. The delay can be used to configure the activity's window before
      the test itself starts.
      
      Bug: 166403789
      Test: manually verify the new flag works
      
      Change-Id: Ibbae112dbb3c977be2ad3bf8507e60eeeb4fb72d
      d81f0fc8
  14. Aug 26, 2020
    • David Stevens's avatar
      c2_e2e_test: update E2eTestActivity theme · b9bf2f9d
      David Stevens authored
      This updates the activity's theme so it can play videos fullscreen
      without any extra ui.
      
      Bug: 166403789
      Test: manually launch C2E2ETest and make it fullscreen
      
      Change-Id: Ida2b50405781cd11a45284ecd93e6630154deba5
      b9bf2f9d
    • David Stevens's avatar
      Reduce the verbosity of some logs · 9ded2361
      David Stevens authored
      This reduces the verbosity of logs that appear very often during
      execution of the c2_e2e_test.
      
      Bug: 166401871
      Test: Run c2_e2e_test and verify there is no logspam
      
      Change-Id: Ie21c54f50b52c6062f8e7b6c9bc02ef226d3451d
      9ded2361
  15. Aug 17, 2020
    • Chih-Yu Huang's avatar
      Remove C2VDAComponent and related test · 420c3e3b
      Chih-Yu Huang authored
      C2VDAComponent is not used at rvc anymore. This CL removes the code
      and its test. Besides, this CL also fixes the encoder interface test.
      
      Bug: 153929383
      Test: m -j32
      Test: mmm external/v4l2_codec2
      Change-Id: Iaad63700d07ffb93282e4678dc270b07e1b75195
      420c3e3b
  16. Jul 22, 2020
    • David Staessens's avatar
      v4l2_codec2: Implement Codec2 V4L2 encode component. · 30cf47e3
      David Staessens authored
      This CL introduces the first version of the new codec2 V4L2 encoder.
      The V4L2EncodeComponent currently only supports H264, support for
      additional formats will introduced later.
      
      The encode component is developed and tested on ARC++ and the initial
      version is not functional yet on ARCVM. The changes required to fully
      enable the encoder on ARCVM (such as support for DMABufs) will be
      introduced in follow-up CLs.
      
      Currently the component makes heavy use of Chromium helpers as it's
      based on the Chromium V4L2VideoEncodeAccelerator, but in the future
      the amount of dependencies will be reduced.
      
      The new V4L2 encoder is currently not enabled by default, which requires
      additional changes in media_codecs_c2.xml.
      
      Bug: 143333813
      Test: mmm external/v4l2_codec2
      Change-Id: I59ba52e8f85aa40c8d23a451fb2842a7a421412a
      30cf47e3
  17. Jul 13, 2020
    • David Staessens's avatar
      v4l2_codec2: Update e2e encoder tests to try both old and new encoders. · dab60b44
      David Staessens authored
      ag/11749538 updated the encoder tests to use the new V4L2 video encoder.
      But a single test apk is built of the rvc-arc-dev branch for both ARC++
      and ARCVM, causing all ARC++ video encoder tests to start failing.
      
      This CL fixes this by adding the names of both ARC++ and ARCVM video
      encoders so the tests tries both.
      
      Bug: 160755362
      Test: mmm external/v4l2_codec2/tests/c2_e2e_test
      Change-Id: Ib31c711d365e5e33a5a54ae6cd9d852431066310
      dab60b44
  18. Jun 26, 2020
    • David Stevens's avatar
      c2_e2e_test: lower sdk version · a7a18031
      David Stevens authored
      Lower sdk version so APK can be installed on P.
      
      Test: build & install APK in ARC++ P
      Bug: 136142167
      
      Change-Id: Ie628c927715eaa7307ba5e175399707f28d37de7
      a7a18031
  19. Jun 24, 2020
    • David Staessens's avatar
      v4l2_codec2: Adapt C2VEACompIntfTest to use new C2V4L2EncoderInterface. · b77e7bb5
      David Staessens authored
      This CL adapts the C2VEA component interface test to make use of the
      new C2V4L2EncoderInterface.
      
      Bug: 143333813
      Test: mmm external/v4l2_codec2
      Change-Id: Ib192f01f5a33db952b8c6ba6f10dbe534cb71665
      b77e7bb5
    • David Staessens's avatar
      v4l2_codec2: Move common code to common helpers folder. · e5c20ed3
      David Staessens authored
      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
      e5c20ed3
  20. Jun 16, 2020
    • David Stevens's avatar
      c2_e2e_test: add dist target · c6bb667c
      David Stevens authored
      Bug: 159097861
      Test: compile and check for APK in dist directory
      Change-Id: Ie2b124c780a4aef79c2094542966f6c8b68975c0
      c6bb667c
    • Chih-Yu Huang's avatar
      c2_e2e_test: Print drop frame rate instead of the count. · b5250cfb
      Chih-Yu Huang authored
      Originally when measuring the drop frame, we decode the video in loop.
      The test didn't reply the count of total decoded frames.
      This CL changes to print the drop frame rate instead of the count.
      
      Bug: 155944233
      Test: Run tast.arc.VideoDecodeAccelPerf.h264_2160p_30fps
      
      Change-Id: I62aee92184d6fbb35b5dc737fcf85eaeeba28ac1
      (cherry picked from commit 7373fd74f8786288db1586ba9e32ed83cea293cf)
      b5250cfb
    • Chih-Yu Huang's avatar
      c2_e2e_test: Release the output buffer if the frame is dropped. · 05ed5977
      Chih-Yu Huang authored
      The frames which arrived later than expected time are treated as the
      dropped frames. The renderer side should drop them immediately. In the
      E2E test, we should release the output buffer immediately to simulate
      the real situation.
      
      Bug: 155944233
      Test: Run tast.arc.VideoDecodeAccelPerf.h264_2160p_30fps
      
      Change-Id: Ia3ab69fed58f52e625c303b585fe616d79edabf5
      (cherry picked from commit 2a73849fd901eb08ddccebbf1816f400ca6f7b31)
      05ed5977
    • Chih-Yu Huang's avatar
      c2_e2e_test: Polish logic of the dropped frame determination. · e9d7102e
      Chih-Yu Huang authored
      We determine if a output frame is dropped by the arrival time and its
      timestamp. However, the order of input buffers is different from
      the display order of output buffers. So the expected arrival time is
      wrong. Also, the base timestamp is updated after the first output
      buffer dequeued. Therefore the first frame was always marked dropped.
      
      In this CL, we calculate the expected arrival time by the count of
      received frames, and set the base timestamp before checking the
      arrival time of the first frame.
      
      Bug: 155944233
      Test: Run tast.arc.VideoDecodeAccelPerf.h264_2160p_30fps and check
            the first frame is not marked dropped
      
      Change-Id: I1b34688ffa573016dd94d5fb3cc851462a25003d
      (cherry picked from commit 4b5c13aa7e6a41d62c9f37338b493cd339548b19)
      e9d7102e
  21. Jun 08, 2020
  22. May 28, 2020
  23. Apr 23, 2020
    • Chih-Yu Huang's avatar
      c2_e2e_test: remove __dso_handle. · aed1f934
      Chih-Yu Huang authored
      Seems the __dso_handle issue is resolved at R branch. Instead, keeping
      __dso_handle causes compilation error.
      This CL removes the workaround to fix the compilation.
      
      Bug: 146030443
      Test: mmm external/v4l2_codec2/tests/c2_e2e_test
      
      Change-Id: Id7364c6bced6d4a6f7cc22b9b3f3b8869a859910
      aed1f934
  24. Apr 20, 2020
    • Chih-Yu Huang's avatar
      test: Make E2E test support V4L2DecodeComponent · bc05aded
      Chih-Yu Huang authored
      This CL changes the E2E test to support the V4L2DecodeComponent and
      the old C2VDAComponent.
      
      Bug: 153403351
      Test: Run E2E test and check V4L2DecodeComponent is running
      
      Change-Id: Ib4658cfc5b297a3f6ec2de6530b4f31a1531211f
      bc05aded
  25. Apr 17, 2020
    • David Stevens's avatar
      Remove broken Android API version checks · 948396f6
      David Stevens authored
      This change removes some android API version ifdefs left over from the
      chromeos codebase. These ifdefs are not configured here, so their
      presence was causing some necessary code to be omitted.
      
      Bug: 149174783
      Test: run e2e tast tests on a minnie, observe height failures are fixed
      Change-Id: I666cfd310ae8a53bf5140efae2e3aa065f2d4067
      (cherry picked from commit da257b2a288b58220e5226113d661e4f5bc08de0)
      948396f6
    • David Stevens's avatar
      Port c2 e2e encoder tests · df76ac0c
      David Stevens authored
      The new files are more or less directly copied from the cros tree. The
      changes are fixing import paths, hooking up to the jni instead of main,
      removing some code targeting N, and reformatting.
      
      Unlike the decoder tests, the encoder tests do not currently benefit
      from being in the Android tree. However, porting the tests prevents the
      need to duplicate the helper code between Android and cros, and it
      unifies how the two sets of tests are built and run.
      
      Test: run encoder tests based on README.md
      Bug: 144681449
      
      Change-Id: I7600cae82693ff6994770954243ec128acdada36
      (cherry picked from commit c63a8aac405092c2928408b721d18607503bca21)
      df76ac0c
    • David Stevens's avatar
      Switch to async mediacodec APIs · 5ac59b92
      David Stevens authored
      This also fixes an overflow bug when calculating the presentation
      timestamp by making input_fragment_index_ a 64-bit int.
      
      Test: manually check that playback works
      Bug: 146030443
      
      Change-Id: Ied31c00fcab11d1af35195c4848fe9557b5bee3a
      (cherry picked from commit beaff8e102e0f57e35cb11add86f5270f045fbae)
      5ac59b92
  26. Apr 16, 2020
    • David Stevens's avatar
      Bump c2_e2e_test ndk to 28 · eb810de1
      David Stevens authored
      This bumps c2_e2e_test ndk version to 28, in preparation for using the
      async media codec APIs. Due to the dependence on the static gtest
      library, this involves a pretty big hack around __dso_handle.
      
      This change also deletes some unnecessary cruft in the mk files.
      
      Test: compiles
      Bug: 146030443
      
      Change-Id: I7b1d94b89101d8ee6376508e803b65efb4bf9775
      (cherry picked from commit 81e404720e5083cffa1da53a554cc8e1a6796ccc)
      eb810de1
    • David Stevens's avatar
      Improvements to arc codec-test · 542a4c0d
      David Stevens authored
      This change makes numerous improvements to the arc codec-test:
       - Allow rendering to a surface, to support more accurate performance
         benchmarking.
       - Add tests that render to the provided surface (instead of immediately
         releasing buffers), to support benchmarking fps-limited decoding.
       - Add test argument to use software decoder instead of hw decoder.
       - Add test argument that causes video decoder to loop until the test
         receives a signal to stop, for more reliable performance
         benchmarking.
       - Add dropped frame measurement.
      
      Test: tests pass as per updated README
      Bug: 143584325
      Bug: 142423642
      Bug: 142948390
      
      Change-Id: Ibb8a7bce62354f060b2e5bd7c073762dc4acf8d2
      (cherry picked from commit a93839d271a9e163a0d9c901a7442b50fbb1d38c)
      542a4c0d
Loading