static void reset_contexts(SnowContext *s){

    int plane_index, level, orientation;



    for(plane_index=0; plane_index<2; plane_index++){

        for(level=0; level<s->spatial_decomposition_count; level++){

            for(orientation=level ? 1:0; orientation<4; orientation++){

                memset(s->plane[plane_index].band[level][orientation].state, 0, sizeof(s->plane[plane_index].band[level][orientation].state));

            }

        }

    }

    memset(s->mb_band.state, 0, sizeof(s->mb_band.state));

    memset(s->mv_band[0].state, 0, sizeof(s->mv_band[0].state));

    memset(s->mv_band[1].state, 0, sizeof(s->mv_band[1].state));

    memset(s->header_state, 0, sizeof(s->header_state));

}

static void reset_contexts(SnowContext *s){

    int plane_index, level, orientation;



    for(plane_index=0; plane_index<2; plane_index++){

        for(level=0; level<s->spatial_decomposition_count; level++){

            for(orientation=level ? 1:0; orientation<4; orientation++){

                memset(s->plane[plane_index].band[level][orientation].state, 0, sizeof(s->plane[plane_index].band[level][orientation].state));

            }

        }

    }

    memset(s->mb_band.state, 0, sizeof(s->mb_band.state));

    memset(s->mv_band[0].state, 0, sizeof(s->mv_band[0].state));

    memset(s->mv_band[1].state, 0, sizeof(s->mv_band[1].state));

    memset(s->header_state, 0, sizeof(s->header_state));

}

static void FUNC_0(SnowContext *VAR_0){

    int VAR_1, VAR_2, VAR_3;



    for(VAR_1=0; VAR_1<2; VAR_1++){

        for(VAR_2=0; VAR_2<VAR_0->spatial_decomposition_count; VAR_2++){

            for(VAR_3=VAR_2 ? 1:0; VAR_3<4; VAR_3++){

                memset(VAR_0->plane[VAR_1].band[VAR_2][VAR_3].state, 0, sizeof(VAR_0->plane[VAR_1].band[VAR_2][VAR_3].state));

            }

        }

    }

    memset(VAR_0->mb_band.state, 0, sizeof(VAR_0->mb_band.state));

    memset(VAR_0->mv_band[0].state, 0, sizeof(VAR_0->mv_band[0].state));

    memset(VAR_0->mv_band[1].state, 0, sizeof(VAR_0->mv_band[1].state));

    memset(VAR_0->header_state, 0, sizeof(VAR_0->header_state));

}

static void FUNC_0(SnowContext *VAR_0){ int VAR_1, VAR_2, VAR_3; for(VAR_1=0; VAR_1<2; VAR_1++){ for(VAR_2=0; VAR_2<VAR_0->spatial_decomposition_count; VAR_2++){ for(VAR_3=VAR_2 ? 1:0; VAR_3<4; VAR_3++){ memset(VAR_0->plane[VAR_1].band[VAR_2][VAR_3].state, 0, sizeof(VAR_0->plane[VAR_1].band[VAR_2][VAR_3].state)); } } } memset(VAR_0->mb_band.state, 0, sizeof(VAR_0->mb_band.state)); memset(VAR_0->mv_band[0].state, 0, sizeof(VAR_0->mv_band[0].state)); memset(VAR_0->mv_band[1].state, 0, sizeof(VAR_0->mv_band[1].state)); memset(VAR_0->header_state, 0, sizeof(VAR_0->header_state)); }