Interesting diff, may be cingg can use something like this for speeding up swscale conversions?

https://projects.blender.org/blender/blender/pulls/116309/commits/4647c80f52ead89524e429584c517831a5f6f04c

But it seems that only upcoming ffmpeg version will allow to set transfer characteristics directly on avframe during scaling. 

So may be until this day our colorspace plugin should grow some knowledge about various gamma systems and also white points?