Le 2014-10-21 07:34, Hans Verkuil a écrit :
I think we should add flags here as well. NEAREST (the default),
ROUND_DOWN and
ROUND_UP. Existing calls will use NEAREST. I can think of use-cases
for all
three of these, and I think the caller should just have to specify
what is
needed.
Just replacing the algorithm used seems asking for problems, you want
to be
able to select what you want to do.
One more thing, we realize that in selection scenario, we do want
nearest or lowest, so indeed a flag that let user space choose is the best.
Nicolas
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html