Hi

res wrote:
>> but i noticed the method of
>> blitting from the texture handle is quite slower than changing the
>> texture target (20 fps against 120 with a 256x256 video). Is this
>> normal? 
>>     
>
> Make sure the textures are uncompressed ("nocompress" class). Also try
> disabling mipmaps.
>   
Seems the problem was due to mipmaps, thx for the hint :)
>> Otherwise seems to me using the other method might help also the
>> mng textures (which usually slow down scenes considerably). This might
>> be depending on video card though, but the perfomance drop is pretty
>> harsh to consider (note blitting from texture handle would be better for
>> me as it might help with some r<->b switch).
>>     
>
> If red and blue are flipped, either upload the pixels as BGRA8888 or ask
> ffmpeg to provide the data in a more appropriate format.
> ('PIX_FMT_RGBA32' seems to resolve to storage as BGRA. The ffmpeg docs
> prolly help with picking the right format:
> http://cekirdek.pardus.org.tr/~ismail/ffmpeg-docs/avutil_8h.html#33d341c4f443d24492a95fb7641d0986.)
>
> -f.r.
>   
All right, problem with changing the upload format is ptanimimg is not
prepared for this (maybe images could define a preferred format for
upload?).

About ffmpeg formats seems in that web there is some that would solve
the problem also, only (small) problem is the version i have of ffmpeg
doesnt yet have the ones i'd like to use :) thx a lot (again) for the
pointer. knowing new ffmpeg has the right formats makes me much easier :)

Greetings!

 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]

Reply via email to