summaryrefslogtreecommitdiff
path: root/chip/mt_scp/mt8195/video.c
diff options
context:
space:
mode:
authorTzung-Bi Shih <tzungbi@chromium.org>2021-08-09 09:48:01 +0800
committerCommit Bot <commit-bot@chromium.org>2021-08-09 11:04:39 +0000
commit871c4115c23ee7ad79131d55edfb178237f9327f (patch)
treec0bc74822ff6533c5d0bd53000f6fe026d2caa10 /chip/mt_scp/mt8195/video.c
parent6ccfccc1f8febf2a75269bf04239738543372285 (diff)
downloadchrome-ec-871c4115c23ee7ad79131d55edfb178237f9327f.tar.gz
chip/mt_scp: move video capability to chip specific
BRANCH=none BUG=b:185977882 TEST=make BOARD=asurada_scp -j && make BOARD=cherry_scp -j Signed-off-by: Tzung-Bi Shih <tzungbi@chromium.org> Change-Id: Id5eaa5ddc0e21c9b33a1a4197393de6c6ef331e6 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3080541
Diffstat (limited to 'chip/mt_scp/mt8195/video.c')
-rw-r--r--chip/mt_scp/mt8195/video.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/chip/mt_scp/mt8195/video.c b/chip/mt_scp/mt8195/video.c
new file mode 100644
index 0000000000..dc4b7b3397
--- /dev/null
+++ b/chip/mt_scp/mt8195/video.c
@@ -0,0 +1,19 @@
+/* Copyright 2021 The Chromium OS Authors. All rights reserved.
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file.
+ */
+
+#include "common.h"
+#include "video.h"
+
+uint32_t video_get_enc_capability(void)
+{
+ return VENC_CAP_4K;
+}
+
+uint32_t video_get_dec_capability(void)
+{
+ return VDEC_CAP_MT21C | VDEC_CAP_MM21 |
+ VDEC_CAP_H264_SLICE | VDEC_CAP_VP8_FRAME |
+ VDEC_CAP_VP9_FRAME;
+}