summaryrefslogtreecommitdiff
path: root/chip/mt_scp/rv32i_common/video.h
blob: e4538c4456f2233289dd47bc1aa9f7e9e71ea1a1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/* 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.
 */

#ifndef __CROS_EC_VIDEO_H
#define __CROS_EC_VIDEO_H

#include "common.h"

/*
 * Video decoder supported capability
 */
#define VDEC_CAP_4K_DISABLED BIT(4)
#define VDEC_CAP_MM21 BIT(5)
#define VDEC_CAP_MT21C BIT(6)
#define VDEC_CAP_H264_SLICE BIT(8)
#define VDEC_CAP_VP8_FRAME BIT(9)
#define VDEC_CAP_VP9_FRAME BIT(10)
#define VDEC_CAP_IRQ_IN_SCP BIT(16)

/*
 * Video encoder supported capability:
 * BIT(0): enable 4K
 */
#define VENC_CAP_4K BIT(0)

uint32_t video_get_enc_capability(void);
uint32_t video_get_dec_capability(void);

#endif /* #ifndef __CROS_EC_VIDEO_H */