summaryrefslogtreecommitdiff
path: root/board/kukui_scp/venc.h
diff options
context:
space:
mode:
authorYunfei Dong <yunfei.dong@mediatek.com>2019-03-29 13:46:39 +0800
committerCommit Bot <commit-bot@chromium.org>2019-08-26 15:37:45 +0000
commit991dd9a7258383f56d5ce1fe86a165b7c74213a4 (patch)
tree8578eda246d6b8edac659898a5534d103bc778a8 /board/kukui_scp/venc.h
parent94528b5d7141e88dd295bde47a9caa80022256e0 (diff)
downloadchrome-ec-991dd9a7258383f56d5ce1fe86a165b7c74213a4.tar.gz
mtk_vcodec: Add the service for h264 encoder
Fix the service to support h264 encoder. BRANCH=none BUG=b:123551776 TEST=build kukui_scp pass. Change-Id: I2bc424ff577ee12246ffa73e5d73cfde388fe5cf Signed-off-by: Yunfei Dong <yunfei.dong@mediatek.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1535474 Commit-Queue: Nicolas Boichat <drinkcat@chromium.org> Tested-by: Nicolas Boichat <drinkcat@chromium.org> Reviewed-by: Yilun Lin <yllin@chromium.org>
Diffstat (limited to 'board/kukui_scp/venc.h')
-rw-r--r--board/kukui_scp/venc.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/board/kukui_scp/venc.h b/board/kukui_scp/venc.h
new file mode 100644
index 0000000000..1172efd1b1
--- /dev/null
+++ b/board/kukui_scp/venc.h
@@ -0,0 +1,30 @@
+/* Copyright 2018 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.
+ */
+
+#ifndef __CROS_EC_SCP_VENC_H
+#define __CROS_EC_SCP_VENC_H
+
+#include "chip/mt_scp/registers.h"
+#include "compile_time_macros.h"
+#include "queue.h"
+
+enum venc_type {
+ VENC_H264,
+ VENC_MAX,
+};
+
+typedef void (*venc_msg_handler)(void *msg);
+
+struct venc_msg {
+ enum venc_type type;
+ unsigned char msg[288];
+};
+
+BUILD_ASSERT(member_size(struct venc_msg, msg) <= CONFIG_IPC_SHARED_OBJ_BUF_SIZE);
+
+/* Functions provided by private overlay. */
+void venc_h264_msg_handler(void *data);
+
+#endif /* __CROS_EC_SCP_VENC_H */