[MPlayer-dev-eng] [PATCH] very experimenal nvidia_vid
Dmitry Baryshkov
mitya at school.ioffe.ru
Fri Sep 26 18:17:55 CEST 2003
В Птн, 26.09.2003, в 11:16, Dmitry Baryshkov пишет:
> В Чтв, 25.09.2003, в 20:48, Sascha Sommer пишет:
> > I made the fixes you proposed and added the fourcc.
> > Current solution attached.
> Will test later.
Ok. Attached is your version plus:
1) some cleanup, cosmetics, etc.
2) added checks for NV30
3) finish multibuffer support
4) finished autodetection (This is why I moved vixProbe down: it needs
info structures)
5) corrected vixDestroy
6) disabled 1-12 bpp's.
7) moved bpp autodetection to vixConfigPlayback, so it works with vesa
and fbdev (after card is in right mode).
> > > >I see another problem: vidix API must be expanded to pass bpp to vidix
> > > driver (for rivatv_overlay_colorkey). Also dunno, if BPP <15 or >24 are
> > >supported by all cards. (IIRC RIVA128 didn't support even 16bpp).
> >
> > It is not a problem as we can read those values directly from the card.
> > I implemented it for nv03 but the registers for nv04 and later are
> > different.
> > Maybe the #if 0 block from rivafb helps you.
> Will look at it. BTW: do you mean rivafb from rivatv, or from kernel?
Ok. 0x1c9 always return 0x0. Others regs don't help.
right BPIXEL seems to be 0x724, but... reading from it from X with
nvidia driver locks the whole box. Only SysRq helps :(nv driver works)
Suppose I (or somebody other) will write implementation of bpp detection
but it must be disable by default.
Anyway, reading from PCRTC:0x28 helps, but it can't detect 15bpp mode.
So, colorkey will be computed wrong, and overlay won't work.
Maybe we should switch VIDIX from magneta colorkey to g-b only?
> > >There is another problem. I couldn't get it work with vesa:vidix and
> > >fbdev:vidix. (vesa:vidix plays, but video isn't shown. trying setting
> > >colorkey to r=0,g=0,b=0, uncommenting block, and trying different
> > >bufferdepth's gave nothing).
> >
> > fbdev:vidix works for nv03, vesa untested
> will try fbdev again.
Seems that rivafb from 2.6.0-test5 doesn't work completely with MPlayer
(It can't get cmap, etc.). rivafb from 2.4.21 works OK.
vesa:vidix keeps working :)
> > I still didn't get the colorkeying right for xvidix. It works with the gimp
> > window
> > but not with window created by mplayer.
> What color depth are you using? IIRC, in nv driver from X were some
> hacks with RIVA128 and 15,16 color depths. Maybe a problem is there?
>
> > Sascha
--
With best wishes
Dmitry Baryshkov
-------------- next part --------------
A non-text attachment was scrubbed...
Name: nvidia_vid.c
Type: text/x-c
Size: 24382 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20030926/5d0e76d3/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: ??? ????? ????????? ????????? ???????? ????????
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20030926/5d0e76d3/attachment.pgp>
More information about the MPlayer-dev-eng
mailing list