Mercurial > repos > blastem
comparison jag_video.h @ 1089:87597a048d38
Initial implementation of video output hardware
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Wed, 12 Oct 2016 09:39:52 -0700 |
parents | c0a026e974f4 |
children | a68274a25e2f |
comparison
equal
deleted
inserted
replaced
1088:c0a026e974f4 | 1089:87597a048d38 |
---|---|
48 JAG_VIDEO_REGS | 48 JAG_VIDEO_REGS |
49 }; | 49 }; |
50 #define LINEBUFFER_WORDS 720 | 50 #define LINEBUFFER_WORDS 720 |
51 | 51 |
52 typedef struct { | 52 typedef struct { |
53 uint16_t regs[JAG_VIDEO_REGS]; | 53 uint32_t *output; |
54 uint32_t output_pitch; | |
55 uint16_t regs[JAG_VIDEO_REGS]; | |
54 | 56 |
55 uint16_t clut[256]; | 57 uint16_t clut[256]; |
56 uint16_t line_buffer_a[LINEBUFFER_WORDS]; | 58 uint16_t line_buffer_a[LINEBUFFER_WORDS]; |
57 uint16_t line_buffer_b[LINEBUFFER_WORDS]; | 59 uint16_t line_buffer_b[LINEBUFFER_WORDS]; |
58 uint16_t *write_line_buffer; | 60 uint16_t *write_line_buffer; |
59 uint16_t *read_line_buffer; | |
60 | 61 |
61 uint32_t cycles; | 62 uint32_t cycles; |
62 uint8_t pclock_div; | 63 uint8_t pclock_div; |
63 uint8_t pclock_counter; | 64 uint8_t pclock_counter; |
64 uint8_t mode; | 65 uint8_t mode; |