示例#1
0
文件: vorbis.c 项目: ihr486/Soyogi
static void decode_setup_header(void)
{
    setup_codebooks();

    int time_count = read_unsigned_value(6) + 1;

    for(int i = 0; i < time_count; i++) {
        uint16_t dummy = read_unsigned_value(16);

        if(dummy) {
            ERROR(ERROR_VORBIS, "Time domain transforms are not used in Vorbis I.\n");
        }
    }

    setup_floors();

    setup_residues();

    setup_mappings();

    setup_modes();

    setup_vectors();

    INFO("%d bytes of setup stack consumed.\n", setup_get_head());
}
void i4_x11_opengl_display_class::init()
{
	int errbase, eventbase;

	// get the input handler to open X connection
	if (!input.display)
	{
		if (!input.open_display())
		{
			i4_warning("WARNING: X11 OpenGL renderer: could not convince input handler to open display. \n"
					   "Check the preceeding lines for X warnings.\n");
			return;
		}
	}

	i4_warning("Connection to XServer established successfully");

	if (!glXQueryExtension(input.display,&errbase,&eventbase))
	{
		i4_warning("WARNING: glX extension unavailable on the current display.");
		//return;
	}


	setup_modes();

	i4_opengl_display_class::init();
	if (the_visual!=0)
	{
		XFree(the_visual);
	}
	the_visual=0;
	input.close_display();
}
示例#3
0
void vicii_draw_init(void)
{
    setup_modes();
}