aboutsummaryrefslogtreecommitdiff
path: root/tests/c2_e2e_test/jni/common.cpp
diff options
context:
space:
mode:
authorAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2023-07-07 04:58:44 +0000
committerAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2023-07-07 04:58:44 +0000
commit6c115da9df44cc1b8de4793a35ce3c95baf3e2a4 (patch)
treeddb0188ea033d83133dc17d9657b661f5fc8cc1a /tests/c2_e2e_test/jni/common.cpp
parent88b0c875bb9ed02fbf8b5962baadea8a7ced376f (diff)
parent61e0951e671386282452309d31eadabcec003704 (diff)
downloadv4l2_codec2-fe691fbac0d2ff4374e1cd88237808f83753288a.tar.gz
Change-Id: I36badd2644c15406c3103f2276ce1173b3f836e6
Diffstat (limited to 'tests/c2_e2e_test/jni/common.cpp')
-rw-r--r--tests/c2_e2e_test/jni/common.cpp3
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;
}