Dana
2025-11-30 2351ee9d82136621690291f310fa6c4980d23c49
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
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) +
                '}';
    }
}