Use the MediaCodec API to encode camera data

Add MediaCodecEncoder class to wrap the MediaCodec API