GNOME Bugzilla – Bug 169629
[theoraenc] sharpness property
Last modified: 2005-03-12 22:44:16 UTC
The `sharpness' parameter can come very handy at times, but is not exported by theoraenc. (See, for example: http://lists.xiph.org/pipermail/theora-dev/2004-July/002268.html) Patch to expose this parameter will be attached shortly.
Created attachment 38423 [details] [review] Patch to expose the sharpness parameter
Why is it a guint8 and not a gint?...
Because it's in the 0-2 range, and guint8 is the smallest type that can hold it. That's all. It could just as well be gint.
Yes, I'd prefer a gint. guint8 should only be used for very specific reasons (e.g. becuse you're using an array and need per-byte access), since guint8 is actually slower than gint.
I see. Should I submit an updated patch, just to change that one line?
Yes, because I'm a lazy ass.
Created attachment 38576 [details] [review] Updated patch Did the guint8->gint change. Otherwise the patch is exactly the same as before.
applied, thanks.