I'm working on a patch that will crossfade sequentially a series of pictures and apply several realtime effects to them: basically it allows the user to specify a folder containing the images and then, using a slider, to crossfade between the images from the first to the next in the folder, according to the alphabetical order.
I've set up a two qt.movie thing so that when the first player is playing an image then the second is playing the second image an the user can crossfade between the two, when the user has fully crossfaded to the second player the first player will load the third image and so on. I'm using openGl as much as possible to speed things up, so the two players are mixed with a slab normal thing and then pass some other treatment and finally they are sent to a gl.videoplane for display.
It all works ok until I use images that have the same aspect ratio, but the problems arise if I try and use pictures with different sizes and aspect ratios, for example I need to sequence pics with a 2.666 aspect ratio and pictures with a 1.55 aspect ratio. I know how to change the size of a videoplane to match the incoming matrix, but it doesn't work if the videoplane has to display theresult of the crossfade of two images that have different ratios: one of the two will be warped.
I am starting to think that my approach is wrong and I'd like to gather some suggestions about the way to take here.
Maybe one way to work around this could be to add solid colour bars to the images so that all have the same final size.. and maybe try and make so that the bars are rendered transparent...
I'm sorry but at the moment posting an example could be misleading since the patch is rather big and I cannot edit it now to make it less of a total incomprehensible mess..
Any tip would be greatly appreciated.