I'm not sure this is a good idea. The pointers in pixels will go out of scope after this call has finished (compressor instance might get cleared)