Skip to content

dxsdyhm/ZxingQmx

Repository files navigation

1.ZxingQmx

java与C通用的扫码示例工程

2.区别

decode(byte[] data,int w,int h);
decodeByNative(byte[] data,int w,int h);

3.编译

去掉jni中报错的代码,直接编译即可,删除ChangeBuffer中的changeImgBuffer

public class ChangeBuffer {
    static {
        System.loadLibrary("native-lib");
    }
    public native static int mapInit();
    //删除此方法
    public native static byte[] changeImgBuffer(byte[] buffer,int w,int h);
    public native static String changeImgBufferNative(byte[] buffer,int w,int h);
}

About

java与C通用的扫码示例工程

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published