attribution

This commit is contained in:
Roman Kozlov 2018-03-21 16:59:20 +02:00
parent 8bbcaf1921
commit fe22571b74
1 changed files with 5 additions and 0 deletions

View File

@ -2,6 +2,11 @@ package com.wix.RNCameraKit.camera.barcode;
import com.google.zxing.LuminanceSource; import com.google.zxing.LuminanceSource;
/**
* This class is mostly copy of {@link com.google.zxing.PlanarYUVLuminanceSource} class.
* The only difference is adding {@code rotateCounterClockwise()} method
* It was copied due to PlanarYUVLuminanceSource being final, so it can not be extended
*/
public class RotateLuminanceSource extends LuminanceSource { public class RotateLuminanceSource extends LuminanceSource {
private static final int THUMBNAIL_SCALE_FACTOR = 2; private static final int THUMBNAIL_SCALE_FACTOR = 2;