On Wed, Mar 7, 2012 at 9:24 PM, Einar Rünkaru <eina...@smail.ee> wrote: > Hi > > On Tue, Mar 6, 2012 at 10:39 PM, Florent Delannoy > <florent.delan...@gmail.com> wrote:
>> >>> Allocate everything once if needed and delete in destructor >> The matrices I get there have to be of the frame size, and as far as I know >> the frame size isn't known at instantiation time, it depends on the frame >> passed to process_buffer. > > The frame is described in preferences/format and may change only if > user changes the format. I recommend to use something like > PluginVClient::new_temp in process_buffer. The method itself can be > used for one frame. > I looked at plugin api. No need to worry: if an user changes the parameters of frame, plugin is destroyed and a new instance is created. So no need to check if the parameters of frame are changed - for a plugin instance they never change. Einar _______________________________________________ Cinelerra mailing list Cinelerra@skolelinux.no https://init.linpro.no/mailman/skolelinux.no/listinfo/cinelerra