kopia lustrzana https://github.com/hoglet67/RGBtoHDMI
rodzic
10b7ffd775
commit
954910b6ab
|
@ -398,6 +398,7 @@ typedef struct {
|
|||
#define GENLOCK_THRESHOLDS {0, 5, 10, 16, 25, 35}
|
||||
#define GENLOCK_LOCKED_THRESHOLD 2
|
||||
#define GENLOCK_FRAME_DELAY 12
|
||||
#define GENLOCK_SLEW_RATE_THRESHOLD 5000
|
||||
|
||||
#define MEASURE_NLINES 100
|
||||
#define PLL_PPM_LO 1
|
||||
|
|
|
@ -1281,7 +1281,7 @@ static void recalculate_hdmi_clock(int vlockmode, int genlock_adjust) {
|
|||
break;
|
||||
}
|
||||
//log_info("%d", ppm_diff);
|
||||
if (abs(ppm_diff) > genlock_speed && abs(ppm_diff) < (genlock_speed * 10)) {
|
||||
if (abs(ppm_diff) > genlock_speed && abs(ppm_diff) < GENLOCK_SLEW_RATE_THRESHOLD) {
|
||||
restricted_slew_rate = 1;
|
||||
if (ppm_diff >= 0) {
|
||||
f2 = current_pllh_clock + (current_pllh_clock * genlock_speed / 1000000);
|
||||
|
|
Ładowanie…
Reference in New Issue