"Nathan Mates" <nathan@[EMAIL PROTECTED]
> wrote in message
news:13iiu18k68ict39@[EMAIL PROTECTED]
> In article <fga8t5$v43$1@[EMAIL PROTECTED]
>, Serve Lau <aser@[EMAIL PROTECTED]
>
> wrote:
>>> There are open source solutions which already exist to play virtually
>>> all
>>> popular movie formats.
>
>>i can only find some which only run on mac, windows or linux. Arent
there
>>any platform independant ones written in C?
>
> Nope. Your question reveals a deep misunderstanding of the C
> language. There is *NO* built-in sup****t for graphics, sound, or any
> other sort of multimedia in the C/C++ programming language.
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.
I made a movie player like that you have a directory full with bitmaps
named
1.bmp, 2.bmp and you just loop over them with
for(i = 0; i < x; i++) { load_bitmap(i); plot_bitmap(i, x, y);
destroy_bitmap(i); }
very platform independant, only the actual plotting is platform dependant
:)
this looks nice for small images, even on 40mhz processor, but breaks down
on 1024x768 images of course.
Thats why I'm looking for a library or something before trying to write
this
myself. If there isnt one, maybe here's a good way to make some money lol


|