# HG changeset patch # User alex # Date 1011814404 0 # Node ID 6b685da4e0c863490753fc51c764398cf8bf9ce4 # Parent 09f15844c9605be97a08494d6d9d0bbd4f1908fc added cap.author diff -r 09f15844c960 -r 6b685da4e0c8 vidix/drivers/genfb_vid.c --- a/vidix/drivers/genfb_vid.c Wed Jan 23 19:32:52 2002 +0000 +++ b/vidix/drivers/genfb_vid.c Wed Jan 23 19:33:24 2002 +0000 @@ -27,10 +27,11 @@ static vidix_capability_t genfb_cap = { "General Framebuffer", + "alex", TYPE_OUTPUT, { 0, 0, 0, 0 }, - 1024, - 768, + 2048, + 2048, 4, 4, -1, @@ -111,6 +112,13 @@ info->num_frames = 2; info->frame_size = info->src.w*info->src.h+(info->src.w*info->src.h)/2; + info->dest.pitch.y = 32; + info->dest.pitch.u = info->dest.pitch.v = 16; + info->offsets[0] = 0; + info->offsets[1] = info->frame_size; + info->offset.y = 0; + info->offset.v = ((info->src.w+31) & ~31) * info->src.h; + info->offset.u = info->offset.v+((info->src.w+31) & ~31) * info->src.h/4; info->dga_addr = malloc(info->num_frames*info->frame_size); printf("[genfb] frame_size: %d, dga_addr: %x\n", info->frame_size, info->dga_addr); @@ -132,5 +140,6 @@ int vixPlaybackFrameSelect(unsigned int frame) { + printf("[genfb] frameselect: %d\n", frame); return(0); }