On Wed, 28 Feb 2024 17:01:13 +0100 Andreas Rheinhardt wrote: > Niklas Haas: > > On Wed, 28 Feb 2024 16:45:50 +0100 Andreas Rheinhardt wrote: > >> I don't think this should be duplicated for every bitdepth. > > > > To clarify, you think the bit depth should be just treated as a runtime > > parameter instead of this being a template at all? How would you suggest > > to handle the diference in pixel size between 8-bit and 10/12-bit? > > > > Maybe a middle ground would be to compile this template only twice, once > > for HBD and once for 8-bit, with the HBD code-path taking the bitdepth > > as an extra parameter. > > That's my preferred way. > > > > > (That's actually what dav1d does internally) I gave it a try, do you think it's better?