fix H.backporch range

This commit is contained in:
marqs 2023-03-30 00:55:16 +03:00
parent 3a17642d5b
commit c5f7483410
4 changed files with 5746 additions and 5745 deletions

File diff suppressed because it is too large Load Diff

View File

@ -24,10 +24,10 @@
#include "sysconfig.h"
#define FW_VER_MAJOR 1
#define FW_VER_MINOR 01
#define FW_VER_MINOR 02
#define PROFILE_VER_MAJOR 1
#define PROFILE_VER_MINOR 01
#define PROFILE_VER_MINOR 02
#define INITCFG_VER_MAJOR 1
#define INITCFG_VER_MINOR 00

View File

@ -494,10 +494,10 @@ static void vm_select() {
tc_h_samplerate = video_modes_plm[vm_edit].timings.h_total;
tc_h_samplerate_adj = (uint16_t)video_modes_plm[vm_edit].timings.h_total_adj;
tc_h_synclen = (uint16_t)video_modes_plm[vm_edit].timings.h_synclen;
tc_h_bporch = (uint16_t)video_modes_plm[vm_edit].timings.h_backporch;
tc_h_bporch = video_modes_plm[vm_edit].timings.h_backporch;
tc_h_active = video_modes_plm[vm_edit].timings.h_active;
tc_v_synclen = (uint16_t)video_modes_plm[vm_edit].timings.v_synclen;
tc_v_bporch = (uint16_t)video_modes_plm[vm_edit].timings.v_backporch;
tc_v_bporch = video_modes_plm[vm_edit].timings.v_backporch;
tc_v_active = video_modes_plm[vm_edit].timings.v_active;
tc_sampler_phase = video_modes_plm[vm_edit].sampler_phase;
}
@ -508,11 +508,11 @@ static void vm_tweak(uint16_t *v) {
if (active_mode) {
if ((video_modes_plm[cm.id].timings.h_total != tc_h_samplerate) ||
(video_modes_plm[cm.id].timings.h_total_adj != (uint8_t)tc_h_samplerate_adj) ||
(video_modes_plm[cm.id].timings.h_synclen != tc_h_synclen) ||
(video_modes_plm[cm.id].timings.h_backporch != (uint8_t)tc_h_bporch) ||
(video_modes_plm[cm.id].timings.h_synclen != (uint8_t)tc_h_synclen) ||
(video_modes_plm[cm.id].timings.h_backporch != tc_h_bporch) ||
(video_modes_plm[cm.id].timings.h_active != tc_h_active) ||
(video_modes_plm[cm.id].timings.v_synclen != tc_v_synclen) ||
(video_modes_plm[cm.id].timings.v_backporch != (uint8_t)tc_v_bporch) ||
(video_modes_plm[cm.id].timings.v_synclen != (uint8_t)tc_v_synclen) ||
(video_modes_plm[cm.id].timings.v_backporch != tc_v_bporch) ||
(video_modes_plm[cm.id].timings.v_active != tc_v_active))
update_cur_vm = 1;
if (video_modes_plm[cm.id].sampler_phase != tc_sampler_phase)
@ -521,10 +521,10 @@ static void vm_tweak(uint16_t *v) {
video_modes_plm[vm_edit].timings.h_total = tc_h_samplerate;
video_modes_plm[vm_edit].timings.h_total_adj = (uint8_t)tc_h_samplerate_adj;
video_modes_plm[vm_edit].timings.h_synclen = (uint8_t)tc_h_synclen;
video_modes_plm[vm_edit].timings.h_backporch = (uint8_t)tc_h_bporch;
video_modes_plm[vm_edit].timings.h_backporch = tc_h_bporch;
video_modes_plm[vm_edit].timings.h_active = tc_h_active;
video_modes_plm[vm_edit].timings.v_synclen = (uint8_t)tc_v_synclen;
video_modes_plm[vm_edit].timings.v_backporch = (uint8_t)tc_v_bporch;
video_modes_plm[vm_edit].timings.v_backporch = tc_v_bporch;
video_modes_plm[vm_edit].timings.v_active = tc_v_active;
video_modes_plm[vm_edit].sampler_phase = tc_sampler_phase;

View File

@ -115,7 +115,7 @@ typedef struct {
uint16_t v_total;
uint16_t h_backporch;
uint16_t v_backporch;
uint16_t h_synclen;
uint8_t h_synclen;
uint8_t v_synclen;
uint8_t interlaced;
} sync_timings_t;