Hi,

Thanks Chiachen for the reply.

In my case, I was getting line_length from FBIOGET_FSCREENINFO ioctl as 2560
since the hardware supported 720p resolution. This was the cause of problem
since DirectFB was writing 640 pixels (1280 bytes), skipping next 1280 bytes
and then writing 640 pixels which seemed as alternate fields. I overrided
the line_length to 1280 and it started coming properly.

This has raised some questions in my mind. Why is config->width hardcoded to
640 in osdInitlayer function on davinci_osd.c? Isnt this to be set from
ioctl?

Is there a proper way of solving this problem since i'm overriding the
ioctl?

2008/7/9 chiachen <[EMAIL PROTECTED]>:

> Hi, Harinandan S,
>
> Yeah, I have ever come across this problem.
>
> First, you should run dfbinfo in the terminal, to make sure the layer
> support :SCREEN_LOCATION SCREEN_SIZE  SCREEN_POSITION
>
> Second, you could try to adjust the parameters of the layer size, screen
> size, screen position.
>
> This is a sample:
>
> /* to set the width and height of layer*/
> layer->GetConfiguration(layer, &config)
> config.flags      |= DLCONF_WIDTH;
> config.width     = w;
> config.flags      |= CLCONF_HEIGHT;
> config.height    = h;
> layer->SetConfiguration(layer, &config);
>
>
> You could try it.
> Hope that could help you.
>
>
> Best regards,
> chiachen
> [EMAIL PROTECTED]
> 2008-07-09
>
> ======= 2008-07-08 20:29, your message: [directfb-users] GTK+ over DirectFB
> on Davinci - OSD window display on TV=======
>
>   Hi All,
>
> I am using GTK+ over DirectFB 1.1.1 on TI Davinci. When I connect a TV
> which has interlaced format, i see that only half the window is displayed
> and only alternate fields are present. Is there any settings in DirectFB I
> need to change to make it display properly on TV?
>
> On Progressive LCD the display is proper.
>
> --
> Regards,
> Harinandan S
>
>
> = = = = = = = = = = = = = = = = = = = =
>



-- 
Regards,
Harinandan S
_______________________________________________
directfb-users mailing list
directfb-users@directfb.org
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users

Reply via email to