tree: e8b3eaf05deff1c68038c92137023b323a0062c4 [path history] [tgz]
  1. arc_video_decoder_e2e_test.cc
  2. arc_video_encoder_e2e_test.cc
  3. BUILD.gn
  4. common.cc
  5. common.h
  6. encoded_data_helper.cc
  7. encoded_data_helper.h
  8. md5.cc
  9. md5.h
  10. mediacodec_decoder.cc
  11. mediacodec_decoder.h
  12. mediacodec_encoder.cc
  13. mediacodec_encoder.h
  14. OWNERS
  15. README.md
  16. video_frame.cc
  17. video_frame.h
arc/codec-test/README.md

arc-codec-test: ARC++ Video Codec End-to-end Test

Manually run the test

You need to be running the Android container on your Chromebook to run the tests. Make sure the device under test (DUT) can be connected adb.

  1. Connect to the DUT via adb

    (Outside CrOS chroot)
    $ adb connect <chromebook_ip>:22
    
  2. Build the e2e test

    (In CrOS chroot)
    $ emerge-<BOARD> arc-codec-test
    
  3. Push the binary to DUT

    Encoder E2E test:

    (Outside CrOS chroot)
    $ adb push \
      <CHROMIUMOS_ROOT>/chroot/build/<BOARD>/usr/libexec/arc-binary-tests/arcvideoencoder_test_<abi> \
      /data/local/tmp/
    

    Decoder E2E test:

    (Outside CrOS chroot)
    $ adb push \
      <CHROMIUMOS_ROOT>/chroot/build/<BOARD>/usr/libexec/arc-binary-tests/arcvideodecoder_test_<abi> \
      /data/local/tmp/
    

    Hint: The path of the binary can be found by:

    (In CrOS chroot)
    $ equery-<BOARD> files arc-codec-test
    
  4. Run E2E tests

    Encoder E2E test: (1) Push the test stream to DUT $ adb push test-320x180.yuv /data/local/tmp/

    (2) Run the test binary
    ```
    $ adb shell "cd /data/local/tmp; \
                 ./arcvideoencoder_test_<abi> --test_stream_data=test-320x180.yuv:320:180:1:out1.h264:100000:30"
    ```
    

    Decoder E2E test: (1) Push the test stream and frame-wise MD5 file to DUT $ adb push test-25fps.h264 /data/local/tmp/ $ adb push test-25fps.h264.frames.md5 /data/local/tmp/

    (2) Run the test binary
    ```
    $ adb shell "cd /data/local/tmp; \
                 ./arcvideodecoder_test_<abi> --test_video_data=test-25fps.h264:320:240:250:258:::1"
    ```