avcodec/dpxenc: implement write16/32 as functions