avcodec/j2kenc: Support writing JP2 encapsulation