looks like that ioctl is made for the framebuffer
code, so you may have to run it on the FB device.

the ivtvfbctl program has an imcomplete implementation
of the ioctl you should look at, and probably make
better :)

-tmk

--- Adam Forsyth <[EMAIL PROTECTED]> wrote:

> OK, I took a crack at adding an option to change the
> framebuffer
> window size to ivtvctl. Unfortunately, it doesn't
> work. The ioctl()
> command fails. This is basically what it does:
> 
>       if (options[OptSetFBWindow]) {
>               printf("ioctl: IVTVFB_IOCTL_SET_WINDOW\n");
>               printf("top: %d left: %d width: %d height: %d\n",
>                       new_window.top, new_window.left,
> new_window.width, new_window.height);
>                       if (ioctl(fd, IVTVFB_IOCTL_SET_WINDOW,
> &new_window) < 0)
>                               fprintf(stderr, "ioctl: IVTVFB_IOCTL_SET_WINDOW
> failed\n");
>       }
> 
> The options are getting passed to it corrently.
> "new_window" is of
> type "ivtvfb_ioctl_set_window". That struct and the
> IVTVFB_IOCTL_SET_WINDOW are defined in ivtv.h.
> 
> A diff is attached.
> 
> What am I doing wrong? Can the IVTVFB_IOCTL_* things
> not be used in
> the same way as the IVTV_IOC_* ones?
> 
> 
> On 6/28/05, kevin thayer <[EMAIL PROTECTED]>
> wrote:
> > you'll have to write some code to call the fwAPI
> > ioctl.
> > 
> > there's no way that i know of to do it from the
> > command line.
> > 
> > you could probably hack it into ivtvctl if you
> > wanted.. shouldn't be too tough.
> > 
> > -tmk
> > 
> > --- Adam Forsyth <[EMAIL PROTECTED]> wrote:
> > 
> > > I've been poking around at this too, and having
> a
> > > bit of trouble.
> > > Using ivtvctl -j, I found:
> > >
> > > 0x6c -- first four bits moves the image left
> > > 0x6d -- last five bits moves the image down,
> first
> > > three move it right a bunch
> > >
> > > but I found no way to resize the image by
> changing
> > > decoder registers.
> > > Also, how do you mess with the OSD registers? I
> > > don't see an option
> > > for ivtvctl to do it, only for the encoder and
> > > decoder.
> > >
> > > On 6/27/05, Patrick de Brabander [mythtv]
> > > <[EMAIL PROTECTED]> wrote:
> > > > i've found the problem.
> > > >
> > > > The problem was my tv. On the scart input i've
> > > changed an setting and it
> > > > is now perfect.
> > > >
> > > > patrick
> > > >
> > > > > there is a way to tell the decoder to scale
> the
> > > > > output, but as far as i know there isn't an
> API
> > > to it
> > > > > yet. you'll have to poke around at it using
> the
> > > fwAPI
> > > > > ioctls
> > > > >
> > > > > see
> > > http://ivtv.sourceforge.net/firmware-api.html
> > > > >
> > > > > i think it's osd call enum 0x56.. give that
> a
> > > try and
> > > > > let us know how it goes.
> > > > >
> > > > > -tmk
> > > > >
> > > > > --- "Patrick de Brabander [mythtv]"
> > > > > <[EMAIL PROTECTED]> wrote:
> > > > >
> > > > >> i have an pvr350 and using the tv-out. When
> i
> > > watch
> > > > >> livetv the image is a
> > > > >> little bit to large (top to bottom). Is it
> > > possible
> > > > >> to shrink the image a
> > > > >> few pixels.
> > > > >> I don't mean the gui, because this can be
> set
> > > in the
> > > > >> setup.
> > > > >>
> > > > >> i know the are some register tweaks to move
> the
> > > > >> image.
> > > > >>
> > > > >>
> > > > >> --
> > > > >> gr.
> > > > >>
> > > > >> patrick
> > > > >>
> > > > >>
> > > > >>
> > > > >>
> > > > >
> > >
> >
>
-------------------------------------------------------
> > > > >> SF.Net email is sponsored by: Discover Easy
> > > Linux
> > > > >> Migration Strategies
> > > > >> from IBM. Find simple to follow Roadmaps,
> > > > >> straightforward articles,
> > > > >> informative Webcasts and more! Get
> everything
> > > you
> > > > >> need to get up to
> > > > >> speed, fast.
> > > > >>
> > >
> http://ads.osdn.com/?ad_idt77&alloc_id492&op=click
> > > > >>
> _______________________________________________
> > > > >> ivtv-devel mailing list
> > > > >> [email protected]
> > > > >>
> > > > >
> > >
> >
>
https://lists.sourceforge.net/lists/listinfo/ivtv-devel
> > > > >>
> > > > >
> > > > >
> > > > >
> > > > >
> > >
> >
>
-------------------------------------------------------
> > > > > SF.Net email is sponsored by: Discover Easy
> > > Linux Migration Strategies
> > > > > from IBM. Find simple to follow Roadmaps,
> > > straightforward articles,
> > > > > informative Webcasts and more! Get
> everything
> > > you need to get up to
> > > > > speed, fast.
> > >
> >
>
http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
> > > > >
> _______________________________________________
> > > > > ivtv-devel mailing list
> > > > > [email protected]
> > > > >
> > >
> >
>
https://lists.sourceforge.net/lists/listinfo/ivtv-devel
> > > > >
> > > >
> > > >
> > > > --
> > > > gr.
> > > >
> > > > patrick
> > > >
> > > >
> > > >
> > > >
> > >
> >
>
-------------------------------------------------------
> > > > SF.Net email is sponsored by: Discover Easy
> Linux
> > > Migration Strategies
> > > > from IBM. Find simple to follow Roadmaps,
> > > straightforward articles,
> > > > informative Webcasts and more! Get everything
> you
> > > need to get up to
> > > > speed, fast.
> > >
> http://ads.osdn.com/?ad_idt77&alloc_id492&opclick
> > > >
> _______________________________________________
> 
=== message truncated ===



-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
ivtv-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ivtv-devel

Reply via email to