diff options
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2023-07-07 04:58:44 +0000 |
---|---|---|
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2023-07-07 04:58:44 +0000 |
commit | 6c115da9df44cc1b8de4793a35ce3c95baf3e2a4 (patch) | |
tree | ddb0188ea033d83133dc17d9657b661f5fc8cc1a /tests/c2_e2e_test/jni/common.cpp | |
parent | 88b0c875bb9ed02fbf8b5962baadea8a7ced376f (diff) | |
parent | 61e0951e671386282452309d31eadabcec003704 (diff) | |
download | v4l2_codec2-fe691fbac0d2ff4374e1cd88237808f83753288a.tar.gz |
Snap for 10453563 from 61e0951e671386282452309d31eadabcec003704 to mainline-media-swcodec-releaseaml_swc_341711000aml_swc_341619000aml_swc_341513600aml_swc_341312300aml_swc_341312020aml_swc_341111000aml_swc_341011020aml_swc_340922010android14-mainline-media-swcodec-release
Change-Id: I36badd2644c15406c3103f2276ce1173b3f836e6
Diffstat (limited to 'tests/c2_e2e_test/jni/common.cpp')
-rw-r--r-- | tests/c2_e2e_test/jni/common.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/c2_e2e_test/jni/common.cpp b/tests/c2_e2e_test/jni/common.cpp index 50f4cdf..673e36c 100644 --- a/tests/c2_e2e_test/jni/common.cpp +++ b/tests/c2_e2e_test/jni/common.cpp @@ -257,6 +257,7 @@ VideoCodecType VideoCodecProfileToType(VideoCodecProfile profile) { if (profile >= H264PROFILE_MIN && profile <= H264PROFILE_MAX) return VideoCodecType::H264; if (profile >= VP8PROFILE_MIN && profile <= VP8PROFILE_MAX) return VideoCodecType::VP8; if (profile >= VP9PROFILE_MIN && profile <= VP9PROFILE_MAX) return VideoCodecType::VP9; + if (profile >= HEVCPROFILE_MIN && profile <= HEVCPROFILE_MAX) return VideoCodecType::HEVC; return VideoCodecType::UNKNOWN; } @@ -286,6 +287,8 @@ const char* GetMimeType(VideoCodecType type) { return "video/x-vnd.on2.vp8"; case VideoCodecType::VP9: return "video/x-vnd.on2.vp9"; + case VideoCodecType::HEVC: + return "video/hevc"; default: // unknown type return nullptr; } |