Hi,

Things have progressd considerably since my last mail. I can now run
a dfbterm and mplayer all on the Matrox crtc2. Like Denis suggested
I wrote a little program that sets up everything on crtc2 as needed.
I used mostly Ville's code from dfbmga. ;-)

It works but has some serious limitations: I need to login remotely
to start the master and the terminal. And I can only have one
session that way. So now I'm trying to modify Qingy to give me a
login on the TV. That's where it gets complicated (or more precisely
I don't understand how the layers work). I used very similar code to
setup the primary layer to the crtc2 on qingy but one program kills
the other!

Here's what I do in the master program:

    DFBCHECK (DirectFBInit (&argc, &argv));
    DFBCHECK (DirectFBCreate (&dfb));

    dfb->EnumDisplayLayers( dfb, get_layer_by_name, &l );
    if (l.res != DFB_OK) {
        printf( "Can't get CRTC2 layer - %s\n",
                DirectFBErrorString( l.res ) );
        return -1;
    }

    dlc.flags       = DLCONF_WIDTH | DLCONF_HEIGHT | 
                      DLCONF_PIXELFORMAT | DLCONF_BUFFERMODE;
    dlc.width       = 720;
    dlc.height      = 576;
    dlc.pixelformat = DSPF_RGB16;
    dlc.buffermode  = DLBM_BACKVIDEO;
    dlc.options     = DLOP_FLICKER_FILTERING;
    
    if ((res = crtc2->TestConfiguration( crtc2, &dlc, &failed )) != DFB_OK) {
       printf( "Invalid CRTC2 configuration - %s!\n",
               DirectFBErrorString( res ) );
       return -1;
    }
    DFBCHECK (crtc2->SetCooperativeLevel (crtc2, DFSCL_EXCLUSIVE));
    if ((res = crtc2->SetConfiguration( crtc2, &dlc )) != DFB_OK) {
       printf( "CRTC2 configuration failed - %s!\n",
               DirectFBErrorString( res ) );
       return -1;
    }

As I said it is just like Ville's code.

But using this in more that one program creates some conflicts. So if
someone has the time to explain how to use all this that would be
very appreciated.

Yann


-- 
Info: To unsubscribe send a mail to [EMAIL PROTECTED] with 
"unsubscribe directfb-users" as subject.

Reply via email to