19 lines
537 B
C
19 lines
537 B
C
#pragma once
|
|
|
|
#include <stdint.h>
|
|
|
|
// ---------------------------
|
|
// Video format
|
|
// ---------------------------
|
|
#define VIDEO_WIDTH 768
|
|
#define VIDEO_HEIGHT 576
|
|
#define WORDS_PER_LINE (VIDEO_WIDTH / 32)
|
|
#define LINES_PER_FIELD (VIDEO_HEIGHT / 2)
|
|
|
|
typedef uint32_t video_framebuffer_t[VIDEO_HEIGHT][WORDS_PER_LINE];
|
|
typedef uint32_t (*video_framebuffer_ptr_t)[WORDS_PER_LINE];
|
|
|
|
void video_init(video_framebuffer_t fb);
|
|
void video_set_framebuffer(video_framebuffer_t fb);
|
|
void video_set_framebuffer_switched_cb(void (*cb)());
|