View Full Version : YV12 -> YUY2
need some info off frodo for this, but i think hardware conversion may be possible...
however, it's only worth doing if xbmc/mplayer can be set up so that mplayer is decoding one frame while the converter is converting a different frame (and a different frame is being displayed. so you have to run with 3 frames in the pipeline. atm i think we run with two - one in decode and one on the screen.
if this is possible i'll have a good think about optimizing the yv12 to yuy2 converter.
that should b possible
frodo
butcher = mr.optimizer
/me likes butcher
Gamester17
2004-03-02, 17:17
for those who haven't followed all posts know that a such optimization could take down video playback from 90% to 10% cpu usage
Dr_Colossus
2004-03-02, 19:15
it's sad that i'm excited by this.
the conversion is working, i still need to resolve a few bugs with getting the data out of mplayer, but expect to see this in cvs tomorrow.
jmarshall
2004-03-03, 06:31
great news! good work, butcher.
seeing as you seem to be the most knowledgeable with regards to directx and the like, do you have any idea why we can't get hardware overlays to work full res in 1080i mode? currently the surface is hacked to 540 pixels high, which i assume is simply being displayed in both fields of the interlaced image, instead of it showing only the odd lines then even of a 1080 high surface.
i don't know enough to determine whether this is a hardware restriction, or we're just setting up the display incorrectly, but it'd be nice to not have the 1080i hacks in there if at all possible.
cheers,
jonathan
excellent work butcher!
jcmarshall, wasnt there a limitation how big an overlay texture could be?
frodo
btw don't expect to see the cpu drop entirely. decoding a large mpeg movie is still going to be expensive, mpeg isn't cheap to decode. it does mean we're not burning all the cpu memory bandwidth doing yv12->yuy2 conversion though.
cant wait to see this working, at the moment converting yv12->yuy2 is the major bottleneck in xbmc
offcourse when thats solved, we gotta see whats the next bottleneck and if that can be solved also
frodo
Gamester17
2004-03-03, 14:07
not sure if this can help out any developers (other than butcher) but i gathered info before: http://sourceforge.net/tracker....=817681 (http://sourceforge.net/tracker/?group_id=87054&atid=581841&func=detail&aid=817681)
...as i under it the gpu could also be used for 'post processing', video/picture/gui enhancements, and maybe even deinterlaceing(?) http://www.xboxmediaplayer.de/forums/non-cgi/emoticons/cool.gif
i would love to work on that
however my directx knowledge is very basic. dont even wanna compare it with butchers :d
think i gonna buy myself a good book on directx8 or 9 first
frodo
Gamester17
2004-03-03, 15:30
think i gonna buy myself a good book on directx8 or 9 first
frodo
when is your birthday, i will buy you one http://www.xboxmediaplayer.de/forums/non-cgi/emoticons/wink.gif (i believe directx 8 is closest to xbox?, though it has a few things extra from 9?, correct)
thx, but my birthday is @ the end of this year.
think i pay a visit to amazon.com..
frodo
think i gonna buy myself a good book on directx8 or 9 first
frodo
when is your birthday, i will buy you one http://www.xboxmediaplayer.de/forums/non-cgi/emoticons/wink.gif (i believe directx 8 is closest to xbox?, though it has a few things extra from 9?, correct)
it's directx 8 with some specifc xbox additions and omissions.
if you're after books i can recommend realtime rendering by akenine-moeller & haines. i don't actually have any books specifically on directx, i just use the docs for that. ;)
---=Snyper=---
2004-03-03, 16:53
which one..
this one you can get used for $12 new $49
real-time rendering (http://www.amazon.com/exec/obidos/tg/detail/-/1568811012/103-7423965-8653431?v=glance)
this one used $53 new $59
real-time rendering (2nd edition) (http://www.amazon.com/exec/obidos/tg/detail/-/1568811829/qid=1078324545/sr=1-1/ref=sr_1_1/103-7423965-8653431?v=glance&s=books)
in case somebody wonders what we do with the donations
well i just bought real-time rendering (2nd edition) with it;-)
frodo
get the second edition (i have both, the second has a lot of new material).
Gamester17
2004-03-03, 17:31
gpu gems: programming techniques, tips, and tricks... *(<= new book on the gpu)
http://developer.nvidia.com/object/gpu_gems_home.html
http://developer.nvidia.com/object/gpu_gems_samples.html
entire nvidia directx8 sdk 5.0 (inc. presentations, papers, demos, and tools)
http://developer.nvidia.com/object/nvidia_dx8_sdk.html
microsoft directx reference for developers (<= online directx documentation for programers)
http://msdn.microsoft.com/library....8000410 (http://msdn.microsoft.com/library/default.asp?url=/nhp/default.asp?contentid=28000410)
microsoft directx (inc. direct3d) sdk, libs, source, docs:
http://download.microsoft.com/downloa...._vc.exe (http://download.microsoft.com/download/whistler/install/8.1/w982kmexp/en-us/dx81sdk_vc.exe)
http://download.microsoft.com/downloa....sdk.exe (http://download.microsoft.com/download/winme/devp2/8.0/w9x2kme/en-us/dx8vcsdk.exe)
http://download.microsoft.com/downloa....sdk.exe (http://download.microsoft.com/download/winme/update/8.0/w9x2kme/en-us/dx8sdk.exe)
http://download.microsoft.com/downloa....sdk.exe (http://download.microsoft.com/download/directx/patch/8.1b/w982kmexp/en-us/dx81b_sdk.exe)
http://download.microsoft.com/downloa....sdk.exe (http://download.microsoft.com/download/b/6/a/b6ab32f3-39e8-4096-9445-d38e6675de85/dx90bsdk.exe)
http://download.microsoft.com/downloa....ras.exe (http://download.microsoft.com/download/whistler/dxextas/8.1/w982kmexp/en-us/dx81sdk_extras.exe)
general-purpose computation using graphics hardware:
http://www.gpgpu.org/
nvidia's list of recommended developer sites and documentation http://developer.nvidia.com/object/web_print_resources.html
people interested in directx on the pc should download the dx9 sdk summer update here: http://www.microsoft.com/downloa....lang=en (http://www.microsoft.com/downloads/details.aspx?familyid=9216652f-51e0-402e-b7b5-feb68d00f298&displaylang=en)
also note that gpu gems appears to cover v2 pixel shaders which aren't supported on xbox (but are supported on a pc with a dx9 capable card).
i love the dx9 stuff now, compared to the dx8 crop of programmable hardware it's so much less restrictive. as an addition, if you're *really really* interested in directx on the pc, you can get on the dx9 beta and get the 2004 summer update sdk, which has an early version of a neat tool for windows, similar to pix. great stuff :)
-mezz
handy mailing list for dx:
http://discuss.microsoft.com/archives/directxdev.html
you'll get about 10-60 mails a day on this (you can have it in digest format though).