mirror of
https://github.com/marqs85/ossc
synced 2026-10-31 20:27:17 +03:00
* L3 optimized mode scanlines fixed
* Advanced timing tweaker implemented
This commit is contained in:
1 parent
a488422089
commit
827df7930f
13 files changed
+1058
-892
No files matched your search
@@ -24,7 +24,7 @@
|
||||
|
||||
#define LINECNT_MAX_TOLERANCE 30
|
||||
|
||||
const mode_data_t video_modes[] = {
|
||||
const mode_data_t video_modes_def[] = {
|
||||
{ "240p_L3M0", 1280, 240, 6000, 1560, 262, 170, 16, 72, 3, (VIDEO_SDTV|VIDEO_PC), (MODE_L3_MODE0|MODE_PLLDIVBY2) },
|
||||
{ "240p_L3M1", 960, 240, 6000, 1170, 262, 128, 16, 54, 3, (VIDEO_SDTV|VIDEO_PC), (MODE_L3_MODE1|MODE_PLLDIVBY2) },
|
||||
//{ "240p_L3M2", 384, 240, 6000, 512, 262, 66, 16, 31, 3, (VIDEO_LDTV|VIDEO_PC), (MODE_L3_MODE2|MODE_PLLDIVBY2) }, //CPS2
|
||||
@@ -54,6 +54,11 @@ const mode_data_t video_modes[] = {
|
||||
{ "1920x1080", 1920, 1080, 6000, 2200, 1125, 148, 36, 44, 5, VIDEO_PC, 0 },
|
||||
};
|
||||
|
||||
mode_data_t video_modes[sizeof(video_modes_def)/sizeof(mode_data_t)];
|
||||
|
||||
const alt_u8 video_mode_cnt = sizeof(video_modes_def)/sizeof(mode_data_t);
|
||||
|
||||
|
||||
/* TODO: rewrite, check hz etc. */
|
||||
alt_8 get_mode_id(alt_u32 totlines, alt_u8 progressive, alt_u32 hz, video_type typemask, alt_u8 linemult_target, alt_u8 l3_mode, alt_u8 s480p_mode)
|
||||
{
|
||||
|
||||
@@ -23,6 +23,19 @@
|
||||
#include <alt_types.h>
|
||||
#include "sysconfig.h"
|
||||
|
||||
#define H_ACTIVE_MIN 200
|
||||
#define H_ACTIVE_MAX 1920
|
||||
#define V_ACTIVE_MIN 200
|
||||
#define V_ACTIVE_MAX 1200
|
||||
#define H_TOTAL_MIN 300
|
||||
#define H_TOTAL_MAX 2300
|
||||
#define H_SYNCLEN_MIN 10
|
||||
#define H_SYNCLEN_MAX 200
|
||||
#define H_BPORCH_MIN 1
|
||||
#define H_BPORCH_MAX 255
|
||||
#define V_BPORCH_MIN 1
|
||||
#define V_BPORCH_MAX 255
|
||||
|
||||
typedef enum {
|
||||
FORMAT_RGBS = 0,
|
||||
FORMAT_RGBHV = 1,
|
||||
|
||||
Reference in new issue
Block a user