Le lundi 14 février 2011 15:34:55, Burkhard Plaum a écrit : > - When using application supplied memory, make sure that all scanlines are > aligned at 16 byte boundaries. If this isn't possible, use a temporary > frame and gavl_video_frame_copy(). gavl_video_frame_copy() is quite > well optimized and doesn't require alignment (better to fix the > application though)
Thanks for the detailed explanation, I confirm your analysis. This is a bit of a bummer for our case, though, because we are passing frames back and forth between OCaml and gavl. We have little control over OCaml's memory representation and we initially wanted the binding for gavl to not copy data.. I will see what can be done about it.. Last question though: is there any function in Gavl's API that allows to test if memory allignment is not correct? Romain ------------------------------------------------------------------------------ The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE: Pinpoint memory and threading errors before they happen. Find and fix more than 250 security defects in the development cycle. Locate bottlenecks in serial and parallel code that limit performance. http://p.sf.net/sfu/intel-dev2devfeb _______________________________________________ Savonet-devl mailing list Savonet-devl@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/savonet-devl