Skip to content
Snippets Groups Projects
Commit 762e4695 authored by David Staessens's avatar David Staessens Committed by Chih-Yu Huang
Browse files

v4l2_codec2: Add new SW decoder names to the e2e decoder test.

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
parent bc6c579f
No related branches found
No related tags found
No related merge requests found
......@@ -31,6 +31,8 @@ constexpr int kTimeoutWaitForInputUs = 1000; // 1 millisecond
constexpr size_t kTimeoutMaxRetries = 500;
// Helper function to get possible C2 hardware decoder names from |type|.
// Note: A single test APK is built for both ARC++ and ARCVM, so both the VDA decoder and the new
// V4L2 decoder names need to be specified here.
std::vector<const char*> GetC2VideoDecoderNames(VideoCodecType type) {
switch (type) {
case VideoCodecType::H264:
......@@ -45,14 +47,16 @@ std::vector<const char*> GetC2VideoDecoderNames(VideoCodecType type) {
}
// Helper function to get possible software decoder names from |type|.
// Note: A single test APK is built for both ARC++ and ARCVM, so both the OMX decoder used on
// Android P and the c2.android decoder used on Android R need to be specified here.
std::vector<const char*> GetSwVideoDecoderNames(VideoCodecType type) {
switch (type) {
case VideoCodecType::H264:
return {"OMX.google.h264.decoder"};
return {"c2.android.avc.decoder", "OMX.google.h264.decoder"};
case VideoCodecType::VP8:
return {"OMX.google.vp8.decoder"};
return {"c2.android.vp8.decoder", "OMX.google.vp8.decoder"};
case VideoCodecType::VP9:
return {"OMX.google.vp9.decoder"};
return {"c2.android.vp9.decoder", "OMX.google.vp9.decoder"};
default: // unknown type
return {};
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment