|
|
|
@ -47,7 +47,7 @@ import java.util.List; |
|
|
|
|
public class CameraActivity extends AppCompatActivity implements View.OnClickListener, OptionView.Callback { |
|
|
|
|
|
|
|
|
|
private final static CameraLogger LOG = CameraLogger.create("DemoApp"); |
|
|
|
|
private final static boolean USE_FRAME_PROCESSOR = false; |
|
|
|
|
private final static boolean USE_FRAME_PROCESSOR = true; |
|
|
|
|
private final static boolean DECODE_BITMAP = false; |
|
|
|
|
|
|
|
|
|
private CameraView camera; |
|
|
|
@ -372,13 +372,13 @@ public class CameraActivity extends AppCompatActivity implements View.OnClickLis |
|
|
|
|
message(filter.toString(), false); |
|
|
|
|
|
|
|
|
|
// Normal behavior:
|
|
|
|
|
// camera.setFilter(filter.newInstance());
|
|
|
|
|
camera.setFilter(filter.newInstance()); |
|
|
|
|
|
|
|
|
|
// To test MultiFilter:
|
|
|
|
|
DuotoneFilter duotone = new DuotoneFilter(); |
|
|
|
|
duotone.setFirstColor(Color.RED); |
|
|
|
|
duotone.setSecondColor(Color.GREEN); |
|
|
|
|
camera.setFilter(new MultiFilter(duotone, filter.newInstance())); |
|
|
|
|
// DuotoneFilter duotone = new DuotoneFilter();
|
|
|
|
|
// duotone.setFirstColor(Color.RED);
|
|
|
|
|
// duotone.setSecondColor(Color.GREEN);
|
|
|
|
|
// camera.setFilter(new MultiFilter(duotone, filter.newInstance()));
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|