新增4轮4转-补丁代码
This commit is contained in:
77
e3_176_ref-补丁/drivers/include/asw/asw_lut_hvk.h
Normal file
77
e3_176_ref-补丁/drivers/include/asw/asw_lut_hvk.h
Normal file
@@ -0,0 +1,77 @@
|
||||
/**
|
||||
* @file asw_lut_hvk.h
|
||||
* @brief SemiDrive asw header file.
|
||||
*
|
||||
* @copyright Copyright (c) 2022 Semidrive Semiconductor.
|
||||
* All rights reserved.
|
||||
*/
|
||||
|
||||
#ifndef __HVTK_H__
|
||||
#define __HVTK_H__
|
||||
#include <math.h>
|
||||
#include <types.h>
|
||||
|
||||
struct hvkt_fabc {
|
||||
float fa0[3];
|
||||
float fa1[3];
|
||||
float fa2[3];
|
||||
|
||||
float fb0[3];
|
||||
float fb1[3];
|
||||
float fb2[3];
|
||||
|
||||
float fc0[3];
|
||||
float fc1[3];
|
||||
float fc2[3];
|
||||
};
|
||||
|
||||
struct hvkt_param {
|
||||
int chn;
|
||||
bool fw_map;
|
||||
|
||||
float top_left_x[3];
|
||||
float top_left_y[3];
|
||||
float top_right_x[3];
|
||||
float top_right_y[3];
|
||||
float bottom_left_x[3];
|
||||
float bottom_left_y[3];
|
||||
float bottom_right_x[3];
|
||||
float bottom_right_y[3];
|
||||
|
||||
int hsize; /**< the hsize of out size*/
|
||||
int vsize; /**< the vsize of out size*/
|
||||
|
||||
int hsize_in; /**< the hszie of input size*/
|
||||
int vsize_in; /**< the vsize of input size*/
|
||||
|
||||
int lut_h_size;
|
||||
int lut_v_size;
|
||||
int lut_h_step;
|
||||
int lut_v_step;
|
||||
|
||||
int extend; /**< lut start extend*/
|
||||
|
||||
int lut_addr;
|
||||
int m_v_addr;
|
||||
int alpha_addr;
|
||||
|
||||
int ext_lut_addr;
|
||||
|
||||
struct hvkt_fabc *fabc;
|
||||
bool is_external_lut;
|
||||
int external_lut_format; /**< only for bilinear: 0: 16bit(1bit sign + 11bit
|
||||
integer + 4bit fraction, 1: 32bit(13bit sign +
|
||||
11bit integer + 8bit fraction))*/
|
||||
int lut_real_addr[6]; /**< rx,ry,gx,gy,bx,by*/
|
||||
|
||||
int flip_type; /**< rotation*/
|
||||
};
|
||||
|
||||
struct sdrv_lut_hvk_ops {
|
||||
int (*lut_table_gen)(struct hvkt_param *hvkt);
|
||||
int (*lut_m_v_gen)(struct hvkt_param *hvkt);
|
||||
int (*lut_rotate_table_gen)(double angle, struct hvkt_param *hvkt);
|
||||
};
|
||||
|
||||
extern struct sdrv_lut_hvk_ops lut_hvk_ops;
|
||||
#endif //__HVTK_H__
|
||||
Reference in New Issue
Block a user