// Path: library/src/main/java/com/jwoolston/android/uvc/interfaces/Descriptor.java
// public static enum VideoSubclass {
//     SC_UNDEFINED(0x00),
//     SC_VIDEOCONTROL(0x01),
//     SC_VIDEOSTREAMING(0x02),
//     SC_VIDEO_INTERFACE_COLLECTION(0x03);
// 
//     public final byte subclass;
// 
//     private VideoSubclass(int subclass) {
//         this.subclass = (byte) (subclass & 0xFF);
//     }
// 
//     public static VideoSubclass getVideoSubclass(byte subclass) {
//         for (VideoSubclass s : VideoSubclass.values()) {
//             if (s.subclass == subclass) {
//                 return s;
//             }
//         }
//         return null;
//     }
// }


import android.util.SparseArray;
import com.jwoolston.android.uvc.interfaces.Descriptor.VideoSubclass;
import timber.log.Timber;
package com.jwoolston.android.uvc.interfaces;




/**
 * @author Jared Woolston (Jared.Woolston@gmail.com)
 */
public class VideoIAD extends InterfaceAssociationDescriptor {

    private SparseArray<VideoClassInterface> interfaces;

    VideoIAD(byte[] descriptor) throws IllegalArgumentException {
        super(descriptor);
// Path: library/src/main/java/com/jwoolston/android/uvc/interfaces/Descriptor.java
// public static enum VideoSubclass {
//     SC_UNDEFINED(0x00),
//     SC_VIDEOCONTROL(0x01),
//     SC_VIDEOSTREAMING(0x02),
//     SC_VIDEO_INTERFACE_COLLECTION(0x03);
// 
//     public final byte subclass;
// 
//     private VideoSubclass(int subclass) {
//         this.subclass = (byte) (subclass & 0xFF);
//     }
// 
//     public static VideoSubclass getVideoSubclass(byte subclass) {
//         for (VideoSubclass s : VideoSubclass.values()) {
//             if (s.subclass == subclass) {
//                 return s;
//             }
//         }
//         return null;
//     }
// }


// Path: library/src/main/java/com/jwoolston/android/uvc/interfaces/VideoIAD.java
import android.util.SparseArray;
import com.jwoolston.android.uvc.interfaces.Descriptor.VideoSubclass;
import timber.log.Timber;

package com.jwoolston.android.uvc.interfaces;




/**
 * @author Jared Woolston (Jared.Woolston@gmail.com)
 */
public class VideoIAD extends InterfaceAssociationDescriptor {

    private SparseArray<VideoClassInterface> interfaces;

    VideoIAD(byte[] descriptor) throws IllegalArgumentException {
        super(descriptor);
        if (VideoSubclass.getVideoSubclass(descriptor[bFunctionSubClass])