static enum AVHWDeviceType hw_device_match_type_by_hwaccel(enum HWAccelID hwaccel_id)

{

    int i;

    if (hwaccel_id == HWACCEL_NONE)

        return AV_HWDEVICE_TYPE_NONE;

    for (i = 0; hwaccels[i].name; i++) {

        if (hwaccels[i].id == hwaccel_id)

            return hwaccels[i].device_type;

    }

    return AV_HWDEVICE_TYPE_NONE;

}

static enum AVHWDeviceType hw_device_match_type_by_hwaccel(enum HWAccelID hwaccel_id)

{

    int i;

    if (hwaccel_id == HWACCEL_NONE)

        return AV_HWDEVICE_TYPE_NONE;

    for (i = 0; hwaccels[i].name; i++) {

        if (hwaccels[i].id == hwaccel_id)

            return hwaccels[i].device_type;

    }

    return AV_HWDEVICE_TYPE_NONE;

}

static enum AVHWDeviceType FUNC_0(enum HWAccelID VAR_0)

{

    int VAR_1;

    if (VAR_0 == HWACCEL_NONE)

        return AV_HWDEVICE_TYPE_NONE;

    for (VAR_1 = 0; hwaccels[VAR_1].name; VAR_1++) {

        if (hwaccels[VAR_1].id == VAR_0)

            return hwaccels[VAR_1].device_type;

    }

    return AV_HWDEVICE_TYPE_NONE;

}

static enum AVHWDeviceType FUNC_0(enum HWAccelID VAR_0)
{ int VAR_1; if (VAR_0 == HWACCEL_NONE)
return AV_HWDEVICE_TYPE_NONE; for (VAR_1 = 0; hwaccels[VAR_1].name; VAR_1++) { if (hwaccels[VAR_1].id == VAR_0)
return hwaccels[VAR_1].device_type; } return AV_HWDEVICE_TYPE_NONE; }