package com.anyun.libusbcamera;
|
|
import java.util.Arrays;
|
|
public class UsbCameraInfo {
|
public int index; // 该Camera的video序号
|
public String name;
|
public int version; // 安运指定摄像头有该段
|
public String true_version;
|
public String sn; // 安运指定摄像头有该段
|
public UsbCameraFormat []formats; // 支持的格式列表
|
public static final int OPEN_USB_SUCCESS = 0;
|
|
public UsbCameraInfo(int index, String name, int version, String true_version, String sn, UsbCameraFormat[] formats) {
|
this.index = index;
|
this.name = name;
|
this.version = version;
|
this.true_version = true_version;
|
this.sn = sn;
|
this.formats = formats;
|
}
|
|
@Override
|
public String toString() {
|
return "UsbCameraInfo{" +
|
"index=" + index +
|
", name='" + name + '\'' +
|
", version=" + version +
|
", true_version='" + true_version + '\'' +
|
", sn='" + sn + '\'' +
|
", formats=" + Arrays.toString(formats) +
|
'}';
|
}
|
}
|