Commit a3ed4f29 authored by David Staessens's avatar David Staessens Committed by Commit Bot

media/gpu/test: Add usage documentation for new video encoder perf tests.

This CL adds usage documentation for the new
video_encode_accelerator_perf_tests, providing in-depth information on
how to run the encoder performance tests.

TEST=gitiles

BUG=953114

Change-Id: I82c445e2923d57dea16b0febddd0e03b67330da3
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2060366Reviewed-by: default avatarAlexandre Courbot <acourbot@chromium.org>
Commit-Queue: David Staessens <dstaessens@chromium.org>
Cr-Commit-Position: refs/heads/master@{#773054}
parent 24a7017c
# Video Encoder tests # Video Encoder tests
The video encoder tests are a set of tests that validate various video encoding The video encoder tests are a set of tests that validate various video encoding
scenarios. They run directly on top of the video encoder implementation, and scenarios. They are accompanied by the video encoder performance tests that can
be used to measure a video encoder's performance.
These tests run directly on top of the video encoder implementation, and
don't require the full Chrome browser stack. They are built on top of the don't require the full Chrome browser stack. They are built on top of the
[GoogleTest](https://github.com/google/googletest/blob/master/README.md) [GoogleTest](https://github.com/google/googletest/blob/master/README.md)
framework. framework.
...@@ -22,6 +25,14 @@ the video encoder tests can be done by executing: ...@@ -22,6 +25,14 @@ the video encoder tests can be done by executing:
e.g.: `./video_encode_accelerator_tests bear_320x192_40frames.yuv.webm` e.g.: `./video_encode_accelerator_tests bear_320x192_40frames.yuv.webm`
Running the video encoder performance tests can be done in a smilar way by
building, deploying and executing the _video_encode_accelerator_perf_tests_
target.
./video_encode_accelerator_perf_tests [<video path>] [<video metadata path>]
e.g.: `./video_encode_accelerator_perf_tests bear_320x192_40frames.yuv.webm`
__Test videos:__ Various test videos are present in the __Test videos:__ Various test videos are present in the
[_media/test/data_](https://cs.chromium.org/chromium/src/media/test/data/) [_media/test/data_](https://cs.chromium.org/chromium/src/media/test/data/)
folder in Chromium's source tree (e.g. folder in Chromium's source tree (e.g.
...@@ -51,4 +62,5 @@ Multiple command line arguments can be given to the command: ...@@ -51,4 +62,5 @@ Multiple command line arguments can be given to the command:
## Source code ## Source code
See the video encoder tests [source code](https://cs.chromium.org/chromium/src/media/gpu/video_encode_accelerator_tests.cc). See the video encoder tests [source code](https://cs.chromium.org/chromium/src/media/gpu/video_encode_accelerator_tests.cc).
See the video encoder performance tests [source code](https://cs.chromium.org/chromium/src/media/gpu/video_encode_accelerator_perf_tests.cc).
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment