[x265] Is it useful to change the csp color space function argument into the template function argument?

Ximing Cheng chengximing1989 at gmail.com
Sat Dec 19 19:47:10 CET 2015


In my test, there is a small gain on encoder speed. About 1% ~ 2% faster.

On Sun, Dec 20, 2015 at 12:21 AM, Ximing Cheng <chengximing1989 at gmail.com>
wrote:

> In the code, there is a lot of places using the csp color space as an
> integer argument which passed to functions, so in the deeper functions have
> to use if statement to choose the right condition to execute, if we change
> this into template functions as the CSP value have only four different
> values.
>
> Is it useful to change the csp color space function argument into the
> template function argument, as a lot of code may be changed?
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/x265-devel/attachments/20151220/65b097b5/attachment.html>


More information about the x265-devel mailing list