Files
Frame-rate-optimization/Bsp/cal_creep/lib_cal_creep_resistance.h

26 lines
837 B
C
Raw Normal View History

2026-04-09 10:14:20 +08:00
#ifndef __LIB_CAL_CREEP_RESISTANCE_H
#define __LIB_CAL_CREEP_RESISTANCE_H
#include "stdint.h"
typedef struct {
uint8_t x_max; //原始阵列横轴点位数量
uint8_t y_max; //原始阵列纵轴点位数量
uint8_t *matrix_real; //原始输入阵列
uint8_t *matrix_stab; //算法缓冲区,需要预留与原始阵列一样大的空间
uint8_t *matrix_creep; //算法缓冲区,需要预留与原始阵列一样大的空间
uint8_t *matrix_display; //输出阵列,输出消除蠕变后的阵列
} cal_creep_resistance_t;
void cal_creep_resistance_init(uint8_t creep_strength, uint8_t creep_level);
cal_creep_resistance_t * svc_creep_strength_value_get(void);
void cal_creep_resistance(cal_creep_resistance_t *cfg);
void cal_creep_resistance_4tile(const cal_creep_resistance_t *cfg);
#endif