atom feed4 messages in com.googlegroups.beagleboard[beagleboard] Re: s-video frame size ...
FromSent OnAttachments
Harishkumar VAug 2, 2009 10:01 am 
Tomi ValkeinenAug 3, 2009 1:57 am 
Harishkumar VAug 3, 2009 2:07 am 
Tomi ValkeinenAug 3, 2009 2:54 am 
Subject:[beagleboard] Re: s-video frame size in beagle board
From:Tomi Valkeinen (tomi@nokia.com)
Date:Aug 3, 2009 2:54:32 am
List:com.googlegroups.beagleboard

Hi,

ext Harishkumar V wrote:

Hi,

thanks,

Can u detail me, how to resize and move the overlay.

You need to use OMAPFB spesific ioctls for that. Check OMAPFB_SETUP_PLANE from omapfb.h.

I haven't tried this now, but I think something like the following should work:

1. Disable the overlay with OMAPFB_SETUP_PLANE 2. Set xres/yres with FBIOPUT_VSCREENINFO 3. Set pos_x/y, and out_width/height with OMAPFB_SETUP_PLANE 4. Enable the overlay with OMAPFB_SETUP_PLANE

Tomi

i have a ntsc_tv_var structure as following, * NTSC frame size is 720 * 480, * but due to overscan, about 640 x 430 is visible */ .xres = 640, .yres = 430, .xres_virtual = 720, .yres_virtual = 480 * 3, .xoffset = 0, .yoffset = 0, .bits_per_pixel = 16, .grayscale = 0, .red = {11, 5, 0}, .green = { 5, 6, 0}, .blue = { 0, 5, 0}, .transp = { 0, 0, 0}, .nonstd = 0, .activate = FB_ACTIVATE_NOW, .height = -1, .width = -1, .accel_flags = 0, .pixclock = 0, /* picoseconds */ .left_margin = 0, /* pixclocks */ .right_margin = 0, /* pixclocks */ .upper_margin = 0, /* line clocks */ .lower_margin = 0, /* line clocks */ .hsync_len = 0, /* pixclocks */ .vsync_len = 0, /* line clocks */ .sync = 0, .vmode = FB_VMODE_INTERLACED, .rotate = 0, .reserved[0] = 0,

Thanks and Regards, HarishKumar.V

On Mon, Aug 3, 2009 at 2:28 PM, Tomi Valkeinen <tomi@nokia.com <mailto:tomi@nokia.com>> wrote:

Hi,

ext Harishkumar V wrote: > Hi, > > I am using beagle board connected to TV via s-video. > > In the display, the top screen is slightly cut-off. > > Is there any way to fit entire frame to a screen. > > my framebuffer resolution size is 640x480. i am using ntsc.

S-video resolution is 720x574 (pal) or 720x482 (ntsc). The edges of that area are usually not shown by the TVs. To get a framebuffer that is fully visible, you need to resize and move the overlay.

> > Thanks and Regards, > HarishKumar.V

Tomi