(This reply goes to ivtv-devel only)

The video output position stuff documented here is the replacement of 
the old IVTVFB_IOCTL_SET_WINDOW ioctl that was part of ivtv-fb.

It is now part of V4L2 and the position can now be set using:

v4l2-ctl --set-fmt-video-out=left=<x>,top=<y>,width=<w>,height=<h>

Or in an application by checking that the V4L2_CAP_VIDEO_OUTPUT_POS 
capability is available, then set top, left, width and height
of struct v4l2_pix_format and call VIDIOC_S_FMT for type 
V4L2_BUF_TYPE_VIDEO_OUTPUT.

Regards,

        Hans


On Saturday 10 March 2007 14:49, Hans Verkuil wrote:
> V4L2 additions needed to document the V4L2_CAP_VIDEO_OUTPUT_POS
> capability (will be introduced in kernel 2.6.22):
>
> ---------------------------------
>
> Section 4.3.1 (Querying Capabilities): add this:
>
> If the hardware supports positioning the output window, then the
> V4L2_CAP_VIDEO_OUTPUT_POS capability is also set.
>
>
> ---------------------------------
>
>
> Chapter 2 (Image Formats). Add the following at the end of Table 2-1
> (struct v4l2_pix_format):
>
> __u32 left The left hand side of the image starts at this column.
> __u32 top The top of the image starts at this row.
>
> Only valid if V4L2_CAP_VIDEO_OUTPUT_POS is set, and only valid for
> video output. Most video output devices use the full 'video out'
> width and height for the output image (usually 720x576 for PAL or
> 720x480 for NTSC), but some can position and size the output image
> within that area. The area outside the image is then set to a uniform
> color (usually black). The driver will return the closest possible
> values.
>
>
> ---------------------------------
>
> ioctl VIDIOC_QUERYCAP, add capability to Table 2 (Device Capabilities
> Flags):
>
> V4L2_CAP_VIDEO_OUTPUT_POS  0x00000200  Video output can set the top,
> left coordinates of the video output window.
>
> _______________________________________________
> ivtv-devel mailing list
> ivtv-devel@ivtvdriver.org
> http://ivtvdriver.org/mailman/listinfo/ivtv-devel

_______________________________________________
ivtv-devel mailing list
ivtv-devel@ivtvdriver.org
http://ivtvdriver.org/mailman/listinfo/ivtv-devel

Reply via email to