1 package net.osdn.gokigen.pkremote.camera.vendor.fujix.operation;
4 import android.util.Log;
6 import androidx.annotation.NonNull;
8 import net.osdn.gokigen.pkremote.camera.interfaces.control.ICaptureControl;
9 import net.osdn.gokigen.pkremote.camera.interfaces.liveview.IAutoFocusFrameDisplay;
10 import net.osdn.gokigen.pkremote.camera.vendor.fujix.wrapper.command.IFujiXCommandCallback;
11 import net.osdn.gokigen.pkremote.camera.vendor.fujix.wrapper.command.IFujiXCommandPublisher;
12 import net.osdn.gokigen.pkremote.camera.vendor.fujix.wrapper.command.messages.CaptureCommand;
14 public class FujiXCaptureControl implements ICaptureControl, IFujiXCommandCallback
16 private final String TAG = this.toString();
17 private final IFujiXCommandPublisher issuer;
18 private final IAutoFocusFrameDisplay frameDisplay;
21 public FujiXCaptureControl(@NonNull IFujiXCommandPublisher issuer, IAutoFocusFrameDisplay frameDisplay)
24 this.frameDisplay = frameDisplay;
29 public void doCapture(int kind)
33 boolean ret = issuer.enqueueCommand(new CaptureCommand(this));
36 Log.v(TAG, "enqueue ERROR");
46 public void receivedMessage(int id, byte[] rx_body)
48 Log.v(TAG, "Response Received.");
49 frameDisplay.hideFocusFrame();
53 public void onReceiveProgress(int currentBytes, int totalBytes, byte[] body)
55 Log.v(TAG, " " + currentBytes + "/" + totalBytes);
59 public boolean isReceiveMulti()