j2k: merge Jpeg2000CodingStyle from jpeg2000

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
j2kdec: prog_order reading from jpeg2000dec

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
j2k: rename a few inline functions and data tables to match jpeg2000

also inlcudes some other cosmetics

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>