rewrite the QR code decoding and encoding program in zxing using c.