[FFmpeg-devel] [RFC] Cleanse swscale

Luca Barbato lu_zero
Thu Jan 13 11:36:37 CET 2011


On 1/13/11 4:28 AM, Baptiste Coudurier wrote:
> Hummm Luca, can you clarify ? This seems huge to me as well.

swscale for the *_template.c stuff adopts this approach

RENAME(function){
	
}
...


RENAME(init){
generic_function = RENAME(function);

}

so it duplicates functions.

by untemplating the C code (the step I posted) you have to keep 
basically a duplicate of the C code for every arch that has already 
optimizations even if you might just keep a single copy. Right now you 
have duplicates in the binary.

the next step would be refactor so there aren't unneeded duplicates.

lu



More information about the ffmpeg-devel mailing list