view TOOLS/subfont-c/osd/gen_osd_h.c @ 15020:3f80d5095f3e

usable downmixing for fixed point mode (take 2, previous patch reversed immediately on account of 1000l error :)
author rfelker
date Tue, 29 Mar 2005 18:14:24 +0000
parents 9a754317898e
children
line wrap: on
line source

#include <stdio.h>

int main()
{
    int c;
    int cnt;
    printf("unsigned char osd_font_pfb[] = {");
    for (cnt = 0;;cnt++) {
	if (cnt % 16 == 0) printf("\n");
	c = getchar();
	if (c < 0) break;
	printf("0x%02x,", c);
    }
    printf("};\n");
}