Add some classes to implement encode from surface

Add packetizer package