s-video frame size in beagle board

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.

Thanks and Regards,
HarishKumar.V

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

Hi,

thanks,

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

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

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