Hi! I've been working on an ffmpeg image loader for crystalspace that allows to use videos as textures.
First i'd like to ask if it would be good for crystalspace itself, or maybe better suited for CSExtra repository, so i can commit it. You can check its code at: http://leapingcat.org/pablo/ffmpegldr/ Then, it is basically working, but for some reason the images produced by the plugin dont get blitted to texture by ptanimimg. All seems the same as in the mng loader (which i used as base) but still, mngs get blitted and this doesnt. The code at libs/cstool/proctxtanim.cpp that handles this is doing: tex->GetTextureHandle ()->Blit (0, 0, mat_w, mat_h, (unsigned char*) image->GetImageData ()); but that doesnt seem to work correctly, strangely if i do the following instead it works: g3d->SetRenderTarget (tex->GetTextureHandle ()); if (!g3d->BeginDraw (CSDRAW_2DGRAPHICS)) return; g3d->GetDriver2D()->Blit (0, 0, mat_w,mat_h, (const unsigned char*)image->GetImageData()); g3d->FinishDraw (); Also reregistering the image and setting the texture handle works, but is vastly slower than this approach. actually the same happened on first pure proctex implementation of the same concept, but i thought it was something i was doing wrong there (proctex implementation was more messy). Maybe somebody knows what might be wrong here? I have checked carefully with mng loader but i dont see any significant differences in logic. Another question that arises is it seems all loaders get tested against any given texture (until one works at least), so defining the handled mimetypes doesnt seem of much use here, maybe i'm also overlooking something here? Greetings and thx in advance for help. Pablo ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Crystal-main mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/crystal-main Unsubscribe: mailto:[EMAIL PROTECTED]
