int vc1_decode_entry_point(AVCodecContext *avctx, VC1Context *v, GetBitContext *gb)

{

    int i;



    av_log(avctx, AV_LOG_DEBUG, "Entry point: %08X\n", show_bits_long(gb, 32));

    v->broken_link = get_bits1(gb);

    v->closed_entry = get_bits1(gb);

    v->panscanflag = get_bits1(gb);

    v->refdist_flag = get_bits1(gb);

    v->s.loop_filter = get_bits1(gb);

    v->fastuvmc = get_bits1(gb);

    v->extended_mv = get_bits1(gb);

    v->dquant = get_bits(gb, 2);

    v->vstransform = get_bits1(gb);

    v->overlap = get_bits1(gb);

    v->quantizer_mode = get_bits(gb, 2);



    if(v->hrd_param_flag){

        for(i = 0; i < v->hrd_num_leaky_buckets; i++) {

            skip_bits(gb, 8); //hrd_full[n]

        }

    }



    if(get_bits1(gb)){

        avctx->coded_width = (get_bits(gb, 12)+1)<<1;

        avctx->coded_height = (get_bits(gb, 12)+1)<<1;

    }

    if(v->extended_mv)

        v->extended_dmv = get_bits1(gb);

    if((v->range_mapy_flag = get_bits1(gb))) {

        av_log(avctx, AV_LOG_ERROR, "Luma scaling is not supported, expect wrong picture\n");

        v->range_mapy = get_bits(gb, 3);

    }

    if((v->range_mapuv_flag = get_bits1(gb))) {

        av_log(avctx, AV_LOG_ERROR, "Chroma scaling is not supported, expect wrong picture\n");

        v->range_mapuv = get_bits(gb, 3);

    }



    av_log(avctx, AV_LOG_DEBUG, "Entry point info:\n"

        "BrokenLink=%i, ClosedEntry=%i, PanscanFlag=%i\n"

        "RefDist=%i, Postproc=%i, FastUVMC=%i, ExtMV=%i\n"

        "DQuant=%i, VSTransform=%i, Overlap=%i, Qmode=%i\n",

        v->broken_link, v->closed_entry, v->panscanflag, v->refdist_flag, v->s.loop_filter,

        v->fastuvmc, v->extended_mv, v->dquant, v->vstransform, v->overlap, v->quantizer_mode);



    return 0;

}

int vc1_decode_entry_point(AVCodecContext *avctx, VC1Context *v, GetBitContext *gb)

{

    int i;



    av_log(avctx, AV_LOG_DEBUG, "Entry point: %08X\n", show_bits_long(gb, 32));

    v->broken_link = get_bits1(gb);

    v->closed_entry = get_bits1(gb);

    v->panscanflag = get_bits1(gb);

    v->refdist_flag = get_bits1(gb);

    v->s.loop_filter = get_bits1(gb);

    v->fastuvmc = get_bits1(gb);

    v->extended_mv = get_bits1(gb);

    v->dquant = get_bits(gb, 2);

    v->vstransform = get_bits1(gb);

    v->overlap = get_bits1(gb);

    v->quantizer_mode = get_bits(gb, 2);



    if(v->hrd_param_flag){

        for(i = 0; i < v->hrd_num_leaky_buckets; i++) {

            skip_bits(gb, 8); 

        }

    }



    if(get_bits1(gb)){

        avctx->coded_width = (get_bits(gb, 12)+1)<<1;

        avctx->coded_height = (get_bits(gb, 12)+1)<<1;

    }

    if(v->extended_mv)

        v->extended_dmv = get_bits1(gb);

    if((v->range_mapy_flag = get_bits1(gb))) {

        av_log(avctx, AV_LOG_ERROR, "Luma scaling is not supported, expect wrong picture\n");

        v->range_mapy = get_bits(gb, 3);

    }

    if((v->range_mapuv_flag = get_bits1(gb))) {

        av_log(avctx, AV_LOG_ERROR, "Chroma scaling is not supported, expect wrong picture\n");

        v->range_mapuv = get_bits(gb, 3);

    }



    av_log(avctx, AV_LOG_DEBUG, "Entry point info:\n"

        "BrokenLink=%i, ClosedEntry=%i, PanscanFlag=%i\n"

        "RefDist=%i, Postproc=%i, FastUVMC=%i, ExtMV=%i\n"

        "DQuant=%i, VSTransform=%i, Overlap=%i, Qmode=%i\n",

        v->broken_link, v->closed_entry, v->panscanflag, v->refdist_flag, v->s.loop_filter,

        v->fastuvmc, v->extended_mv, v->dquant, v->vstransform, v->overlap, v->quantizer_mode);



    return 0;

}

        avctx->coded_width = (get_bits(gb, 12)+1)<<1;         avctx->coded_height = (get_bits(gb, 12)+1)<<1;
int FUNC_0(AVCodecContext *VAR_0, VC1Context *VAR_1, GetBitContext *VAR_2)

{

    int VAR_3;



    av_log(VAR_0, AV_LOG_DEBUG, "Entry point: %08X\n", show_bits_long(VAR_2, 32));

    VAR_1->broken_link = get_bits1(VAR_2);

    VAR_1->closed_entry = get_bits1(VAR_2);

    VAR_1->panscanflag = get_bits1(VAR_2);

    VAR_1->refdist_flag = get_bits1(VAR_2);

    VAR_1->s.loop_filter = get_bits1(VAR_2);

    VAR_1->fastuvmc = get_bits1(VAR_2);

    VAR_1->extended_mv = get_bits1(VAR_2);

    VAR_1->dquant = get_bits(VAR_2, 2);

    VAR_1->vstransform = get_bits1(VAR_2);

    VAR_1->overlap = get_bits1(VAR_2);

    VAR_1->quantizer_mode = get_bits(VAR_2, 2);



    if(VAR_1->hrd_param_flag){

        for(VAR_3 = 0; VAR_3 < VAR_1->hrd_num_leaky_buckets; VAR_3++) {

            skip_bits(VAR_2, 8); 

        }

    }



    if(get_bits1(VAR_2)){

        VAR_0->coded_width = (get_bits(VAR_2, 12)+1)<<1;

        VAR_0->coded_height = (get_bits(VAR_2, 12)+1)<<1;

    }

    if(VAR_1->extended_mv)

        VAR_1->extended_dmv = get_bits1(VAR_2);

    if((VAR_1->range_mapy_flag = get_bits1(VAR_2))) {

        av_log(VAR_0, AV_LOG_ERROR, "Luma scaling is not supported, expect wrong picture\n");

        VAR_1->range_mapy = get_bits(VAR_2, 3);

    }

    if((VAR_1->range_mapuv_flag = get_bits1(VAR_2))) {

        av_log(VAR_0, AV_LOG_ERROR, "Chroma scaling is not supported, expect wrong picture\n");

        VAR_1->range_mapuv = get_bits(VAR_2, 3);

    }



    av_log(VAR_0, AV_LOG_DEBUG, "Entry point info:\n"

        "BrokenLink=%VAR_3, ClosedEntry=%VAR_3, PanscanFlag=%VAR_3\n"

        "RefDist=%VAR_3, Postproc=%VAR_3, FastUVMC=%VAR_3, ExtMV=%VAR_3\n"

        "DQuant=%VAR_3, VSTransform=%VAR_3, Overlap=%VAR_3, Qmode=%VAR_3\n",

        VAR_1->broken_link, VAR_1->closed_entry, VAR_1->panscanflag, VAR_1->refdist_flag, VAR_1->s.loop_filter,

        VAR_1->fastuvmc, VAR_1->extended_mv, VAR_1->dquant, VAR_1->vstransform, VAR_1->overlap, VAR_1->quantizer_mode);



    return 0;

}

int FUNC_0(AVCodecContext *VAR_0, VC1Context *VAR_1, GetBitContext *VAR_2)
{ int VAR_3; av_log(VAR_0, AV_LOG_DEBUG, "Entry point: %08X\n", show_bits_long(VAR_2, 32)); VAR_1->broken_link = get_bits1(VAR_2); VAR_1->closed_entry = get_bits1(VAR_2); VAR_1->panscanflag = get_bits1(VAR_2); VAR_1->refdist_flag = get_bits1(VAR_2); VAR_1->s.loop_filter = get_bits1(VAR_2); VAR_1->fastuvmc = get_bits1(VAR_2); VAR_1->extended_mv = get_bits1(VAR_2); VAR_1->dquant = get_bits(VAR_2, 2); VAR_1->vstransform = get_bits1(VAR_2); VAR_1->overlap = get_bits1(VAR_2); VAR_1->quantizer_mode = get_bits(VAR_2, 2); if(VAR_1->hrd_param_flag){ for(VAR_3 = 0; VAR_3 < VAR_1->hrd_num_leaky_buckets; VAR_3++) { skip_bits(VAR_2, 8); } } if(get_bits1(VAR_2)){ VAR_0->coded_width = (get_bits(VAR_2, 12)+1)<<1; VAR_0->coded_height = (get_bits(VAR_2, 12)+1)<<1; } if(VAR_1->extended_mv)
VAR_1->extended_dmv = get_bits1(VAR_2); if((VAR_1->range_mapy_flag = get_bits1(VAR_2))) { av_log(VAR_0, AV_LOG_ERROR, "Luma scaling is not supported, expect wrong picture\n"); VAR_1->range_mapy = get_bits(VAR_2, 3); } if((VAR_1->range_mapuv_flag = get_bits1(VAR_2))) { av_log(VAR_0, AV_LOG_ERROR, "Chroma scaling is not supported, expect wrong picture\n"); VAR_1->range_mapuv = get_bits(VAR_2, 3); } av_log(VAR_0, AV_LOG_DEBUG, "Entry point info:\n"
"BrokenLink=%VAR_3, ClosedEntry=%VAR_3, PanscanFlag=%VAR_3\n"
"RefDist=%VAR_3, Postproc=%VAR_3, FastUVMC=%VAR_3, ExtMV=%VAR_3\n"
"DQuant=%VAR_3, VSTransform=%VAR_3, Overlap=%VAR_3, Qmode=%VAR_3\n",
VAR_1->broken_link, VAR_1->closed_entry, VAR_1->panscanflag, VAR_1->refdist_flag, VAR_1->s.loop_filter,
VAR_1->fastuvmc, VAR_1->extended_mv, VAR_1->dquant, VAR_1->vstransform, VAR_1->overlap, VAR_1->quantizer_mode); return 0; }