I am trying to figure out how display (with an offset) a smaller video2 and/or fb0 on top of video1.
For example:
video1 - configured for 1280x720 (using DVI output to TV)
video2 - configured for 320x180
fb0 - configured for 100x100
I want video2 to display at offset 960,540 on top of video1 (bottom right corner)
I want fb0 to display at offset 40,20 (also on top of video1)
For the v4l2 buffer (video2), I tried using ioctl(VIDIOC_S_FMT) with V4L2_BUF_TYPE_VIDEO_OVERLAY type and setting the fmt.win.x.left/top to 960,540 but that doesn't work. It seems to just shrink the top left corner down (and doesn't move the bottom right along with it).
The only options I see for x/y offsets with fb0 are the xoffset/yoffset var_screeninfo, but I believe that is used for panning. So I don't know how to do this with fb0 either.
Can someone give me a clue how to do this?