Skip to content

Commit

Permalink
V1.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Mosect committed Jan 27, 2023
1 parent 949d559 commit b6a64d9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 12 deletions.
11 changes: 0 additions & 11 deletions app/src/main/java/com/mosect/app/scanpanel/ZxingDecoder.java
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
package com.mosect.app.scanpanel;

import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Rect;
import android.graphics.YuvImage;

import com.google.zxing.BinaryBitmap;
import com.google.zxing.MultiFormatReader;
Expand All @@ -12,8 +9,6 @@
import com.google.zxing.common.HybridBinarizer;
import com.mosect.lib.scanpanel.coder.FrameDecoder;

import java.io.ByteArrayOutputStream;

public class ZxingDecoder implements FrameDecoder {

private final MultiFormatReader multiFormatReader;
Expand All @@ -24,12 +19,6 @@ public ZxingDecoder() {

@Override
public String decodeFrame(int format, byte[] data, int width, int height, Rect clip) throws Exception {
// YuvImage image = new YuvImage(data, format, width, height, new int[]{width, width});
// ByteArrayOutputStream temp = new ByteArrayOutputStream(512);
// image.compressToJpeg(clip, 100, temp);
// byte[] jpeg = temp.toByteArray();
// Bitmap bm = BitmapFactory.decodeByteArray(jpeg, 0, jpeg.length);
// bm.recycle();
int cl = 0, ct = 0, cw = width, ch = height;
if (null != clip) {
cl = clip.left;
Expand Down
2 changes: 1 addition & 1 deletion lib/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ plugins {
id 'maven-publish'
}

def libVersion = '1.0.1'
def libVersion = '1.0.2'

android {
compileSdk 32
Expand Down

0 comments on commit b6a64d9

Please sign in to comment.