Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Gaming > Development Programming Misc > Re: movieplayer
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 8 of 13 Topic 952 of 1011
Post > Topic >>

Re: movieplayer

by nathan@[EMAIL PROTECTED] (Nathan Mates) Nov 4, 2007 at 12:57 AM

In article <fgg1nf$rj7$1@[EMAIL PROTECTED]
>, Serve Lau <aser@[EMAIL PROTECTED]
>
wrote:
>I know that, but I do think its possible to do it platform
>independant, just the display code will have to be different over
>platforms. Why cant you ask for a get_next_frame() and get a void *
>or char * back with the size information etc that you can use to
>display the frame.

   Sorry, but this sounds like you happen to have a solution that
worked for you, and think it'll apply to everyone. There's just too
much variety of hardware for this to be meaningful. Consider pixel
formats: some systems only push 8 bit color. Some are 16 bit, in 4444,
5550, 5551, or 5650. 24/32 bit have RGB vs BGR ordering issues. Then
there's alignment and other issues. You can try to sweep these
differences under the rug, and say it's up to the display code to
reformat the color information, but that's going to have severe
performance problems on slower systems, compared to doing that in the
middle of your decode. You're going to thrash your cache if you have
to flip BGR to RGB as a second pass on a decompression buffer.

   To decompress things *well* and *efficiently*, you need to know how
the hardware (or graphics API) expects the data. And that's why C/C++
properly say just about zero when it comes to multimedia. The
implementation details are just so significant that they need to be
considered. And therefore, multimedia shouldn't be part of the
programming language, but code to make multimedia happen can be
written in that language.

Nathan Mates
--
<*> Nathan Mates - personal webpage http://www.visi.com/~nathan/
 
# Programmer at Pandemic Studios -- http://www.pandemicstudios.com/
# NOT speaking for Pandemic Studios. "Care not what the neighbors
# think. What are the facts, and to how many decimal places?" -R.A.
Heinlein
 




 13 Posts in Topic:
movieplayer
"Serve Lau" <  2007-10-25 19:37:08 
Re: movieplayer
Richard James <IWillGe  2007-10-26 11:41:35 
Re: movieplayer
"Serve Lau" <  2007-10-26 20:17:45 
Re: movieplayer
Luc The Perverse <atay  2007-10-26 19:07:50 
Re: movieplayer
"Serve Lau" <  2007-10-31 15:41:12 
Re: movieplayer
nathan@[EMAIL PROTECTED]   2007-11-01 06:54:32 
Re: movieplayer
"Serve Lau" <  2007-11-02 21:36:01 
Re: movieplayer
nathan@[EMAIL PROTECTED]   2007-11-04 00:57:49 
Re: movieplayer
"Serve Lau" <  2007-11-04 21:35:23 
Re: movieplayer
Anton <anton.txt@[EMAI  2007-11-01 09:43:36 
Re: movieplayer
Michel de Brisis <mich  2008-02-19 14:01:40 
Re: movieplayer
Richard James <IWillGe  2007-10-27 12:57:30 
Re: movieplayer
IsaacKuo <mechdan@[EMA  2008-04-04 12:09:45 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Jul 26 8:46:50 CDT 2008.