xref: /rockchip-linux_mpp/mpp/vproc/iep2/iep2_ff.h (revision 437bfbeb9567cca9cd9080e3f6954aa9d6a94f18)
1 /*
2  * Copyright 2020 Rockchip Electronics Co. LTD
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *      http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 #ifndef __IEP2_FF_H__
18 #define __IEP2_FF_H__
19 
20 #include "rk_type.h"
21 
22 #define FIELD_ORDER_RATIO_SIZE (10)
23 struct iep2_ff_info {
24     RK_S32 tff_offset;
25     RK_S32 bff_offset;
26     RK_S32 tff_score;
27     RK_S32 bff_score;
28     RK_S32 frm_offset;
29     RK_S32 fie_offset;
30     RK_S32 frm_score;
31     RK_S32 fie_score;
32     RK_U32 field_order;
33     RK_U32 frm_mode;
34     RK_U32 fo_ratio[FIELD_ORDER_RATIO_SIZE];
35     RK_U32 fo_ratio_idx;
36     RK_U32 fo_ratio_cnt;
37     RK_U32 fo_ratio_sum;
38     RK_U32 fo_ratio_avg;
39 };
40 
41 struct iep2_api_ctx;
42 
43 #ifdef __cplusplus
44 extern "C" {
45 #endif
46 
47 void iep2_check_ffo(struct iep2_api_ctx *ctx);
48 
49 #ifdef __cplusplus
50 }
51 #endif
52 
53 #endif
54