I allready do it in the Xv driver if someone wants to lift the code it is in the source code of it. One of my thoughts is that in the long run I can do it by creating a bigger SG array for the dma engine to just transfer from but I'm not sure how beneficial that would really be yet. One day I'll look at it. The ioctl I added has a format field in the structure so that if we implement this in the driver anyone could supply data in any format the driver understands since there are several ways the data can be arranged. I remain to be convinced about the benefit of the write interface for YUV data but in time I will improve the ioctl one to do decoding if means we can save CPU usage.
JOhn > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:ivtv-devel- > [EMAIL PROTECTED] On Behalf Of Chris Kennedy > Sent: 21 July 2005 20:28 > To: [email protected] > Subject: Re: [ivtv-devel] state of raw/YUV support > > I fixed it last, maybe someone did some work before me, maybe Hans, or > maybe not, but finished fixing it at least awhile back. > > Also one interesting thing would be for someone to do this for input so > YUV Decoding has the opposite code. Figure that'd be not so difficult > for someone understanding YUV formats and having the output capture code > already, not sure though. > > Thanks, > Chris > > kevin thayer wrote: > > >did someone rewrite the fixup code? the stuff that i > >wrote back in the day was REALLY bad. instant crash :) > > > >-tmk > > > > > >--- John Harvey <[EMAIL PROTECTED]> wrote: > > > > > > > >>If this is really needed in the driver then we > >>should > >>probably add an ioctl to enable it so that a program > >>can choose the format it wants to read the data in > >>rather than making it a permanent module load > >>option. > >> > >> > >>--- Chris Kennedy <[EMAIL PROTECTED]> wrote: > >> > >> > >> > >>>Also if capture of YUV is desired, and you want > >>>normal YUV, then add the > >>>yuv_fixup=1 ivtv module option, this converts YUV, > >>>and is only a module > >>>option and off by default since it's something not > >>>supposed to be done > >>>at the driver level (so an application could be > >>>modeled after this code > >>>to make an easy i/o prog to pipe to/from and > >>> > >>> > >>convert > >> > >> > >>>the YUV of the > >>>driver output and then yank the code and include > >>> > >>> > >>the > >> > >> > >>>program with the > >>>driver, probably one of the many things needed > >>>before getting included > >>>in the Linux kernel). > >>> > >>>Thanks, > >>>Chris > >>> > >>>John Harvey wrote: > >>> > >>> > >>> > >>>>It does work for a PVR 350 but the question (if i > >>>>remember correctly) was about a 150 and i have no > >>>> > >>>> > >>>idea > >>> > >>> > >>>>whether that works or not. > >>>>mplayer has a decoder that understands the format > >>>>coming out of the 350 and can play it directly > >>>> > >>>> > >>>(with > >>> > >>> > >>>>the correct command line options). > >>>> > >>>>John > >>>>--- Cory Papenfuss <[EMAIL PROTECTED]> > >>>> > >>>> > >>>wrote: > >>> > >>> > >>>> > >>>> > >>>> > >>>> > >>>>>>>What were the answers? I didn't see any > >>>>>>> > >>>>>>> > >>>>>>> > >>>>>>> > >>>>>responses to your e-mail. > >>>>> > >>>>> > >>>>> > >>>>> > >>>>>>>I asked this question a while back, and I got > >>>>>>> > >>>>>>> > >>no > >> > >> > >>>>>>> > >>>>>>> > >>>>>>> > >>>>>>> > >>>>>response. > >>>>> > >>>>> > >>>>> > >>>>> > >>>>>>With mplayer it does not work (yet). > >>>>>> > >>>>>>On the other (dark) side of the world, the > >>>>>> > >>>>>> > >>>windows > >>> > >>> > >>>>>> > >>>>>> > >>>>>> > >>>>>> > >>>>>drives do not support to > >>>>> > >>>>> > >>>>> > >>>>> > >>>>>>read raw data, so it would be amazing if these > >>>>>> > >>>>>> > >>>>>> > >>>>>> > >>>>>hacker guys manage it. > >>>>> > >>>>> > >>>>> > >>>>> > >>>>>>Chris > >>>>>> > >>>>>> > >>>>>> > >>>>>> > >>>>>> > >>>>> Awhile back (ivtv-0.1.9 IIRC) it could be made > >>>>> > >>>>> > >>>to > >>> > >>> > >>>>>work. The > >>>>>biggest problem is that the data format isn't > >>>>> > >>>>> > >>>quite > >>> > >>> > >>>>>normal. It's > >>>>>structured slightly strangely and it took a > >>>>> > >>>>> > >>>patched > >>> > >>> > >>>>>player to play it. > >>>>>Nothing inherently bad, just a slight massaging > >>>>> > >>>>> > >>of > >> > >> > >>>>>the data required. > >>>>> > >>>>> I remember hearing of it breaking as the > >>>>> > >>>>> > >>driver > >> > >> > >>>>>evolved, and I > >>>>>have no idea what the current status is. > >>>>> > >>>>> > >>Doesn't > >> > >> > >>>>>appear to be any reason > >>>>>why it *couldn't* work. > >>>>> > >>>>>-- > >>>>> > >>>>> > >>>>> > >>>>> > >>>>> > >>>>> > >>************************************************************************ > * > >> > >> > >>>> > >>>> > >>>> > >>>> > >>>>>* Cory Papenfuss > >>>>> > >>>>> > >> > >> > >> > >>> > >>> > >>> > >>>>> * > >>>>>* Electrical Engineering candidate Ph.D. > >>>>> > >>>>> > >>graduate > >> > >> > >>>>>student * > >>>>>* Virginia Polytechnic Institute and State > >>>>>University * > >>>>> > >>>>> > >>>>> > >>>>> > >>>>> > >>************************************************************************ > * > >> > >> > >>>> > >>>> > >>>> > >>>> > >>>>> > >>>>> > >>>>> > >>>>> > >>------------------------------------------------------- > >> > >> > >>>> > >>>> > >>>> > >>>> > >>>>>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 > >> > >> > >>>> > >>>> > >>>> > >>>> > >>>> > >>>> > >>>> > >>------------------------------------------------------- > >> > >> > >>>>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 > >> > >> > >>>> > >>>> > >>>> > >>>> > >>>-- > >>>=== > >>>Chris Kennedy > >>>[EMAIL PROTECTED] > >>> > >>> > >>> > >>> > >>> > >>> > >------------------------------------------------------- > > > > > >>>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. > >>> > >>> > >=== 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 > > > > > > > > > -- > === > Chris Kennedy > [EMAIL PROTECTED] > > > > ------------------------------------------------------- > 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 ------------------------------------------------------- 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
