> But seriously: what is patentable in video codecs? Isn't it just math function? Give input in the domain of function and you get output.
It's akin to asking "what is patentable in a medication; it's just a chemical formula, a diagram on paper".
It's a function satisfying non-trivial constraints, like: size of the output should be smaller than the size of the input [ideally, ratio is adjustable by the user]; regardless of the quality ratio, the output should be similar to the input [really, how do you define "similarity"? -- simple RMS difference won't do]; etc, etc.
Finding such a function is a rather big research endeavour, and IF it has been privately funded, then by all means, there should be away to ensure that the researcher(s) have exclusive rights to the exploitation of their results.
I agree though that the patent system is very faulty, but I am NOT for totally abolishing mechanisms for IP protection.