does SDL display YUV video directly, or it convert it
to RGB and then display it.
how can i integrate it with the QT GUI?
thanks for help in advance________________________________________________________________________
Want to chat instantly with your online friends? Get the FREE Yahoo!
Messenger http://mail.messenger.yahoo.co.uk
i tried to compile the qtSDL code but i got some
errors
such as undefined reference to SDL_Quit, SDL_GetError
…
and so on
i know that i need to reference the the SDL library.
but i dont know how to do it.
can you help with that please________________________________________________________________________
Want to chat instantly with your online friends? Get the FREE Yahoo!
Messenger http://mail.messenger.yahoo.co.uk
this code is to display bmp file. in my case i want to
display a YUV video file.
i just commented out the code which load and display
the BMP file in the paintEvent function and replace
it with my code to display the yuv video file.
but what i get is just a green rectangle.
do have any ideas on why it is not displaying the
right data.
please find the attachment, test it yourself.
Don’t have the time to look and test you code, but have a look at the
attached class.
It do what you want, and it work (for me). You will be abale to compare
it with your code.
FranckOn Tue, Nov 18, 2003 at 02:04:34PM +0000, elhadj benkhelifa wrote:
thanks,
that is sorted now,
this code is to display bmp file. in my case i want to
display a YUV video file.
i just commented out the code which load and display
the BMP file in the paintEvent function and replace
it with my code to display the yuv video file.
but what i get is just a green rectangle.
do have any ideas on why it is not displaying the
right data.
please find the attachment, test it yourself.
First: planes, and pitches are readonly. You shouldn’t give them values.
It seems to me that you just want to paint the first YUV frame, isn’t it?
I think, the other code is correct. I would lock the surface when changing
the pixel data and unlock it before blitting takes place.
Ronnie> ----- Original Message -----
From: ebenkhelifa@yahoo.co.uk (elhadj benkhelifa)
To:
Sent: Tuesday, November 18, 2003 3:04 PM
Subject: Re: [SDL] SDL to display video!!!
thanks,
that is sorted now,
this code is to display bmp file. in my case i want to
display a YUV video file.
i just commented out the code which load and display
the BMP file in the paintEvent function and replace
it with my code to display the yuv video file.
but what i get is just a green rectangle.
do have any ideas on why it is not displaying the
right data.
please find the attachment, test it yourself.
This question is not about SDL per se, but I was hopeing you folks could
help me out. My SDL game, coded in pure ANSI C, is cross-platform
between MacOS X, Windows, and Linux, as such I try and keep my code as
ANSI compliant as possible.
I have run into a slight problem howver. How do I make a directory using
ANSI C code? I know how to use fwrite, fread etc. But these don’t create
directories. Is there a cross platfom method to do this, despite
perhapse system(“mkdir …”)?
you can download libraries to do cross platform file system stuff but the
way you suggested is how i would do it if i were you (:
probly you could make a function wrapped in #define’s to make it change the
command for diff file operations depending on the system it was being
compiled on.> ----- Original Message -----
From: starmars@enunu.com (Michael Cabral)
To:
Sent: Tuesday, November 18, 2003 5:01 AM
Subject: [SDL] Creating a directory.
This question is not about SDL per se, but I was hopeing you folks could
help me out. My SDL game, coded in pure ANSI C, is cross-platform
between MacOS X, Windows, and Linux, as such I try and keep my code as
ANSI compliant as possible.
I have run into a slight problem howver. How do I make a directory using
ANSI C code? I know how to use fwrite, fread etc. But these don’t create
directories. Is there a cross platfom method to do this, despite
perhapse system(“mkdir …”)?
you can download libraries to do cross platform file system stuff but the
way you suggested is how i would do it if i were you (:
probly you could make a function wrapped in #define’s to make it change the
command for diff file operations depending on the system it was being
compiled on.
I would tell you to go with #define’s.
It’s pretty straight forward…
Although there do exist cross-platform libs that do this you don’t have to
be dependant on any lib if you define you methods…
Best Regards
Daniel Liljeberg> ----- Original Message -----
From: starmars@enunu.com (Michael Cabral)
To:
Sent: Tuesday, November 18, 2003 2:01 PM
Subject: [SDL] Creating a directory.
This question is not about SDL per se, but I was hopeing you folks could
help me out. My SDL game, coded in pure ANSI C, is cross-platform
between MacOS X, Windows, and Linux, as such I try and keep my code as
ANSI compliant as possible.
I have run into a slight problem howver. How do I make a directory using
ANSI C code? I know how to use fwrite, fread etc. But these don’t create
directories. Is there a cross platfom method to do this, despite
perhapse system(“mkdir …”)?
I have run into a slight problem howver. How do I make a directory using
ANSI C code?
Here’s some code from the games I write that sets up save directories. It
creates the directories in the user’s home directory. Should do more or less
what you’re looking for…
I managed to Display YUV video from a file. i am
displaying 4 videos on the same window. i created an
overlay for each video and set the pixels for each
overlay. i open and read 4 defferent YUV video
files.The n i display the videos using SDL_Display.
the problem i am having now is that the more videos i
have the slower performance i get. so with displaying
only one video is fast, with 2 a bit slower and so on
can any one help me with this please
thank you in advance.________________________________________________________________________
Want to chat instantly with your online friends? Get the FREE Yahoo!
Messenger http://mail.messenger.yahoo.co.uk