Hello,
just one random thougth - which it seems no one else has touched
upon. I like this style:
If the function in question is called many times (from the same scope)
, it might be a viable option to allocate the frame buffer in the
calling scope:
void function(...., BYTE *frame) {
/* Work with frame */
}
calling scope:
BYTE *frame = malloc()
/*
Code with several calls like this:
*/
function(..., frame);
/*
Finally - no more calls to function().
*/
free(frame);
Of course, this only has merit if the function using frame is called
*many times*.
Anyway - good luck;
HTH - Joakim
--
Joakim Hove
hove AT ift uib no
Tlf: +47 (55 5)8 27 90
Fax: +47 (55 5)8 94 40
http://www.ift.uib.no/~hove/