hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
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
32
33
34
35
36
37
38
39
40
41
42
/* SPDX-License-Identifier: GPL-2.0 */
/*
 * Copyright (C) STMicroelectronics SA 2014
 * Authors: Fabien Dessenne <fabien.dessenne@st.com> for STMicroelectronics.
 */
 
#define BDISP_HF_NB             64
#define BDISP_VF_NB             40
 
/**
 * struct bdisp_filter_h_spec - Horizontal filter specification
 *
 * @min:        min scale factor for this filter (6.10 fixed point)
 * @max:        max scale factor for this filter (6.10 fixed point)
 * coef:        filter coefficients
 */
struct bdisp_filter_h_spec {
   const u16 min;
   const u16 max;
   const u8 coef[BDISP_HF_NB];
};
/**
 * struct bdisp_filter_v_spec - Vertical filter specification
 *
 * @min:    min scale factor for this filter (6.10 fixed point)
 * @max:    max scale factor for this filter (6.10 fixed point)
 * coef:    filter coefficients
 */
struct bdisp_filter_v_spec {
   const u16 min;
   const u16 max;
   const u8 coef[BDISP_VF_NB];
};
 
/* RGB YUV 601 standard conversion */
static const u32 bdisp_rgb_to_yuv[] = {
       0x0e1e8bee, 0x08420419, 0xfb5ed471, 0x08004080,
};
 
static const u32 bdisp_yuv_to_rgb[] = {
       0x3324a800, 0xe604ab9c, 0x0004a957, 0x32121eeb,
};