xref: /rockchip-linux_mpp/test/mpp_parse_cfg.h (revision 437bfbeb9567cca9cd9080e3f6954aa9d6a94f18)
1 /* SPDX-License-Identifier: Apache-2.0 OR MIT */
2 /*
3  * Copyright (c) 2017 Rockchip Electronics Co., Ltd.
4  */
5 
6 #ifndef __MPP_PARSE_CFG_H__
7 #define __MPP_PARSE_CFG_H__
8 
9 struct rc_event {
10     union {
11         int msec;
12         int frm;
13         int idx;
14     };
15     float fps;
16     int bps;
17 };
18 
19 struct rc_test_config {
20     int idx_type;
21     int loop;
22     struct rc_event event[128];
23     int event_cnt;
24 };
25 
26 int mpp_parse_config(char *cfg_url, struct rc_test_config *ea);
27 
28 #endif
29