j2kdec: merge JPEG2000_PGOD_CPRL code from jpeg2000