videomixer: add more video modes
authorSebastien Bourdeauducq <sebastien@milkymist.org>
Mon, 11 Nov 2013 21:16:56 +0000 (22:16 +0100)
committerSebastien Bourdeauducq <sebastien@milkymist.org>
Mon, 11 Nov 2013 21:16:56 +0000 (22:16 +0100)
software/videomixer/processor.c
software/videomixer/processor.h

index e1dd00544e397c98edad2df6be409d0f6cee03d1..fd9f12019cd47b9aece639bd5a26d2cb064de3df 100644 (file)
 #include "processor.h"
 
 static const struct video_timing video_modes[PROCESSOR_MODE_COUNT] = {
+       {
+               .pixel_clock = 3150,
+
+               .h_active = 640,
+               .h_blanking = 192,
+               .h_sync_offset = 24,
+               .h_sync_width = 40,
+
+               .v_active = 480,
+               .v_blanking = 40,
+               .v_sync_offset = 9,
+               .v_sync_width = 3,
+
+               .established_timing = 0x0800
+       },
+       {
+               .pixel_clock = 4000,
+
+               .h_active = 800,
+               .h_blanking = 256,
+               .h_sync_offset = 32,
+               .h_sync_width = 128,
+
+               .v_active = 600,
+               .v_blanking = 28,
+               .v_sync_offset = 1,
+               .v_sync_width = 6,
+
+               .established_timing = 0x0100
+       },
        {
                .pixel_clock = 6500,
 
index 1a09b91df46d9c462386c76f8747b47b5d3666b9..75fa52057c86a5dd11b184077c2a1a642274bb61 100644 (file)
@@ -1,7 +1,7 @@
 #ifndef __PROCESSOR_H
 #define __PROCESSOR_H
 
-#define PROCESSOR_MODE_COUNT 2
+#define PROCESSOR_MODE_COUNT 4
 #define PROCESSOR_MODE_DESCLEN 32
 
 void processor_list_modes(char *mode_descriptors);