static int config_input(AVFilterLink *inlink)
{
    HQDN3DContext *s = inlink->dst->priv;
    const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(inlink->format);
    int i;
    s->hsub  = desc->log2_chroma_w;
    s->vsub  = desc->log2_chroma_h;
    s->depth = desc->comp[0].depth_minus1+1;
    s->line = av_malloc(inlink->w * sizeof(*s->line));
    if (!s->line)
        return AVERROR(ENOMEM);
    for (i = 0; i < 4; i++) {
        s->coefs[i] = precalc_coefs(s->strength[i], s->depth);
        if (!s->coefs[i])
            return AVERROR(ENOMEM);
    }
    if (ARCH_X86)
        ff_hqdn3d_init_x86(s);
    return 0;
}
static int config_input(AVFilterLink *inlink)
{
    HQDN3DContext *s = inlink->dst->priv;
    const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(inlink->format);
    int i;
    s->hsub  = desc->log2_chroma_w;
    s->vsub  = desc->log2_chroma_h;
    s->depth = desc->comp[0].depth_minus1+1;
    s->line = av_malloc(inlink->w * sizeof(*s->line));
    if (!s->line)
        return AVERROR(ENOMEM);
    for (i = 0; i < 4; i++) {
        s->coefs[i] = precalc_coefs(s->strength[i], s->depth);
        if (!s->coefs[i])
            return AVERROR(ENOMEM);
    }
    if (ARCH_X86)
        ff_hqdn3d_init_x86(s);
    return 0;
}
static int FUNC_0(AVFilterLink *VAR_0)
{
    HQDN3DContext *s = VAR_0->dst->priv;
    const AVPixFmtDescriptor *VAR_1 = av_pix_fmt_desc_get(VAR_0->format);
    int VAR_2;
    s->hsub  = VAR_1->log2_chroma_w;
    s->vsub  = VAR_1->log2_chroma_h;
    s->depth = VAR_1->comp[0].depth_minus1+1;
    s->line = av_malloc(VAR_0->w * sizeof(*s->line));
    if (!s->line)
        return AVERROR(ENOMEM);
    for (VAR_2 = 0; VAR_2 < 4; VAR_2++) {
        s->coefs[VAR_2] = precalc_coefs(s->strength[VAR_2], s->depth);
        if (!s->coefs[VAR_2])
            return AVERROR(ENOMEM);
    }
    if (ARCH_X86)
        ff_hqdn3d_init_x86(s);
    return 0;
}
static int FUNC_0(AVFilterLink *VAR_0)
{ HQDN3DContext *s = VAR_0->dst->priv; const AVPixFmtDescriptor *VAR_1 = av_pix_fmt_desc_get(VAR_0->format); int VAR_2; s->hsub  = VAR_1->log2_chroma_w; s->vsub  = VAR_1->log2_chroma_h; s->depth = VAR_1->comp[0].depth_minus1+1; s->line = av_malloc(VAR_0->w * sizeof(*s->line)); if (!s->line)
return AVERROR(ENOMEM); for (VAR_2 = 0; VAR_2 < 4; VAR_2++) { s->coefs[VAR_2] = precalc_coefs(s->strength[VAR_2], s->depth); if (!s->coefs[VAR_2])
return AVERROR(ENOMEM); } if (ARCH_X86)
ff_hqdn3d_init_x86(s); return 0; }