unionx
Messages postés190Date d'inscriptiondimanche 17 avril 2005StatutMembreDernière intervention18 mars 2009
-
16 oct. 2005 à 03:04
unionx
Messages postés190Date d'inscriptiondimanche 17 avril 2005StatutMembreDernière intervention18 mars 2009
-
17 oct. 2005 à 05:05
salut tout le monde j'ai un grand probleme -> je ne sais pas
comment fais pour lire une sequence video n'import quel format,
j'ai deja fais beaucoup des recherches sur votre site et sur le web mais
pas de resultat bon,just un code qui ne marche pas le voila :
#include <SDL\SDL.h>
#include <smpeg\smpeg.h>
void CallBack_Affichage(SDL_Surface* dst,int x,int y,unsigned int w,unsigned int h)
{
SDL_UpdateRect(dst,x,y,w,h);
SDL_Flip(dst);
}
int main(int argc, char* argv[])
{
SDL_Init(SDL_INIT_VIDEO|SDL_INIT_AUDIO|SDL_INIT_TIMER);
SDL_Surface* surface_principale=SDL_SetVideoMode(640,480,32,SDL_HWSURFACE|SDL_DOUBLEBUF|SDL_FULLSCREEN);
SMPEG* fichier=SMPEG_new("video_mpeg1_cbr.mpg",NULL,1);
SMPEG_enableaudio(fichier,1);
SMPEG_enablevideo(fichier,1);
SMPEG_scaleXY(fichier,640,480);
SMPEG_setdisplayregion(fichier,0,0,640,480);
SMPEG_setdisplay(fichier,surface_principale,NULL,CallBack_Affichage);
SMPEG_play(fichier);
SDL_Delay(3000);
SMPEG_delete(fichier);
SDL_Quit();
}
je me demande si quelqu'un peux m'aidé avec une petite explication comment peux faire le marcher merci avance (cppfrance).