static void fill_picture_parameters(AVCodecContext *avctx,

                                    struct dxva_context *ctx, const VC1Context *v,

                                    DXVA_PictureParameters *pp)

{

    const MpegEncContext *s = &v->s;

    const Picture *current_picture = s->current_picture_ptr;



    memset(pp, 0, sizeof(*pp));

    pp->wDecodedPictureIndex    =

    pp->wDeblockedPictureIndex  = ff_dxva2_get_surface_index(ctx, &current_picture->f);

    if (s->pict_type != AV_PICTURE_TYPE_I && !v->bi_type)

        pp->wForwardRefPictureIndex = ff_dxva2_get_surface_index(ctx, &s->last_picture.f);

    else

        pp->wForwardRefPictureIndex = 0xffff;

    if (s->pict_type == AV_PICTURE_TYPE_B && !v->bi_type)

        pp->wBackwardRefPictureIndex = ff_dxva2_get_surface_index(ctx, &s->next_picture.f);

    else

        pp->wBackwardRefPictureIndex = 0xffff;

    if (v->profile == PROFILE_ADVANCED) {

        /* It is the cropped width/height -1 of the frame */

        pp->wPicWidthInMBminus1 = avctx->width  - 1;

        pp->wPicHeightInMBminus1= avctx->height - 1;

    } else {

        /* It is the coded width/height in macroblock -1 of the frame */

        pp->wPicWidthInMBminus1 = s->mb_width  - 1;

        pp->wPicHeightInMBminus1= s->mb_height - 1;

    }

    pp->bMacroblockWidthMinus1  = 15;

    pp->bMacroblockHeightMinus1 = 15;

    pp->bBlockWidthMinus1       = 7;

    pp->bBlockHeightMinus1      = 7;

    pp->bBPPminus1              = 7;

    if (s->picture_structure & PICT_TOP_FIELD)

        pp->bPicStructure      |= 0x01;

    if (s->picture_structure & PICT_BOTTOM_FIELD)

        pp->bPicStructure      |= 0x02;

    pp->bSecondField            = v->interlace && v->fcm != ILACE_FIELD && !s->first_field;

    pp->bPicIntra               = s->pict_type == AV_PICTURE_TYPE_I || v->bi_type;

    pp->bPicBackwardPrediction  = s->pict_type == AV_PICTURE_TYPE_B && !v->bi_type;

    pp->bBidirectionalAveragingMode = (1                                           << 7) |

                                      ((ctx->cfg->ConfigIntraResidUnsigned != 0)   << 6) |

                                      ((ctx->cfg->ConfigResidDiffAccelerator != 0) << 5) |

                                      ((v->lumscale != 32 || v->lumshift != 0)     << 4) |

                                      ((v->profile == PROFILE_ADVANCED)            << 3);

    pp->bMVprecisionAndChromaRelation = ((v->mv_mode == MV_PMODE_1MV_HPEL_BILIN) << 3) |

                                        (1                                       << 2) |

                                        (0                                       << 1) |

                                        (!s->quarter_sample                          );

    pp->bChromaFormat           = v->chromaformat;

    ctx->report_id++;

    if (ctx->report_id >= (1 << 16))

        ctx->report_id = 1;

    pp->bPicScanFixed           = ctx->report_id >> 8;

    pp->bPicScanMethod          = ctx->report_id & 0xff;

    pp->bPicReadbackRequests    = 0;

    pp->bRcontrol               = v->rnd;

    pp->bPicSpatialResid8       = (v->panscanflag  << 7) |

                                  (v->refdist_flag << 6) |

                                  (s->loop_filter  << 5) |

                                  (v->fastuvmc     << 4) |

                                  (v->extended_mv  << 3) |

                                  (v->dquant       << 1) |

                                  (v->vstransform      );

    pp->bPicOverflowBlocks      = (v->quantizer_mode << 6) |

                                  (v->multires       << 5) |

                                  (v->resync_marker  << 4) |

                                  (v->rangered       << 3) |

                                  (s->max_b_frames       );

    pp->bPicExtrapolation       = (!v->interlace || v->fcm == PROGRESSIVE) ? 1 : 2;

    pp->bPicDeblocked           = ((!pp->bPicBackwardPrediction && v->overlap)        << 6) |

                                  ((v->profile != PROFILE_ADVANCED && v->rangeredfrm) << 5) |

                                  (s->loop_filter                                     << 1);

    pp->bPicDeblockConfined     = (v->postprocflag             << 7) |

                                  (v->broadcast                << 6) |

                                  (v->interlace                << 5) |

                                  (v->tfcntrflag               << 4) |

                                  (v->finterpflag              << 3) |

                                  ((s->pict_type != AV_PICTURE_TYPE_B) << 2) |

                                  (v->psf                      << 1) |

                                  (v->extended_dmv                 );

    if (s->pict_type != AV_PICTURE_TYPE_I)

        pp->bPic4MVallowed      = v->mv_mode == MV_PMODE_MIXED_MV ||

                                  (v->mv_mode == MV_PMODE_INTENSITY_COMP &&

                                   v->mv_mode2 == MV_PMODE_MIXED_MV);

    if (v->profile == PROFILE_ADVANCED)

        pp->bPicOBMC            = (v->range_mapy_flag  << 7) |

                                  (v->range_mapy       << 4) |

                                  (v->range_mapuv_flag << 3) |

                                  (v->range_mapuv          );

    pp->bPicBinPB               = 0;

    pp->bMV_RPS                 = 0;

    pp->bReservedBits           = 0;

    if (s->picture_structure == PICT_FRAME) {

        pp->wBitstreamFcodes        = v->lumscale;

        pp->wBitstreamPCEelements   = v->lumshift;

    } else {

        /* Syntax: (top_field_param << 8) | bottom_field_param */

        pp->wBitstreamFcodes        = (v->lumscale << 8) | v->lumscale;

        pp->wBitstreamPCEelements   = (v->lumshift << 8) | v->lumshift;

    }

    pp->bBitstreamConcealmentNeed   = 0;

    pp->bBitstreamConcealmentMethod = 0;

}

static void fill_picture_parameters(AVCodecContext *avctx,

                                    struct dxva_context *ctx, const VC1Context *v,

                                    DXVA_PictureParameters *pp)

{

    const MpegEncContext *s = &v->s;

    const Picture *current_picture = s->current_picture_ptr;



    memset(pp, 0, sizeof(*pp));

    pp->wDecodedPictureIndex    =

    pp->wDeblockedPictureIndex  = ff_dxva2_get_surface_index(ctx, &current_picture->f);

    if (s->pict_type != AV_PICTURE_TYPE_I && !v->bi_type)

        pp->wForwardRefPictureIndex = ff_dxva2_get_surface_index(ctx, &s->last_picture.f);

    else

        pp->wForwardRefPictureIndex = 0xffff;

    if (s->pict_type == AV_PICTURE_TYPE_B && !v->bi_type)

        pp->wBackwardRefPictureIndex = ff_dxva2_get_surface_index(ctx, &s->next_picture.f);

    else

        pp->wBackwardRefPictureIndex = 0xffff;

    if (v->profile == PROFILE_ADVANCED) {

        

        pp->wPicWidthInMBminus1 = avctx->width  - 1;

        pp->wPicHeightInMBminus1= avctx->height - 1;

    } else {

        

        pp->wPicWidthInMBminus1 = s->mb_width  - 1;

        pp->wPicHeightInMBminus1= s->mb_height - 1;

    }

    pp->bMacroblockWidthMinus1  = 15;

    pp->bMacroblockHeightMinus1 = 15;

    pp->bBlockWidthMinus1       = 7;

    pp->bBlockHeightMinus1      = 7;

    pp->bBPPminus1              = 7;

    if (s->picture_structure & PICT_TOP_FIELD)

        pp->bPicStructure      |= 0x01;

    if (s->picture_structure & PICT_BOTTOM_FIELD)

        pp->bPicStructure      |= 0x02;

    pp->bSecondField            = v->interlace && v->fcm != ILACE_FIELD && !s->first_field;

    pp->bPicIntra               = s->pict_type == AV_PICTURE_TYPE_I || v->bi_type;

    pp->bPicBackwardPrediction  = s->pict_type == AV_PICTURE_TYPE_B && !v->bi_type;

    pp->bBidirectionalAveragingMode = (1                                           << 7) |

                                      ((ctx->cfg->ConfigIntraResidUnsigned != 0)   << 6) |

                                      ((ctx->cfg->ConfigResidDiffAccelerator != 0) << 5) |

                                      ((v->lumscale != 32 || v->lumshift != 0)     << 4) |

                                      ((v->profile == PROFILE_ADVANCED)            << 3);

    pp->bMVprecisionAndChromaRelation = ((v->mv_mode == MV_PMODE_1MV_HPEL_BILIN) << 3) |

                                        (1                                       << 2) |

                                        (0                                       << 1) |

                                        (!s->quarter_sample                          );

    pp->bChromaFormat           = v->chromaformat;

    ctx->report_id++;

    if (ctx->report_id >= (1 << 16))

        ctx->report_id = 1;

    pp->bPicScanFixed           = ctx->report_id >> 8;

    pp->bPicScanMethod          = ctx->report_id & 0xff;

    pp->bPicReadbackRequests    = 0;

    pp->bRcontrol               = v->rnd;

    pp->bPicSpatialResid8       = (v->panscanflag  << 7) |

                                  (v->refdist_flag << 6) |

                                  (s->loop_filter  << 5) |

                                  (v->fastuvmc     << 4) |

                                  (v->extended_mv  << 3) |

                                  (v->dquant       << 1) |

                                  (v->vstransform      );

    pp->bPicOverflowBlocks      = (v->quantizer_mode << 6) |

                                  (v->multires       << 5) |

                                  (v->resync_marker  << 4) |

                                  (v->rangered       << 3) |

                                  (s->max_b_frames       );

    pp->bPicExtrapolation       = (!v->interlace || v->fcm == PROGRESSIVE) ? 1 : 2;

    pp->bPicDeblocked           = ((!pp->bPicBackwardPrediction && v->overlap)        << 6) |

                                  ((v->profile != PROFILE_ADVANCED && v->rangeredfrm) << 5) |

                                  (s->loop_filter                                     << 1);

    pp->bPicDeblockConfined     = (v->postprocflag             << 7) |

                                  (v->broadcast                << 6) |

                                  (v->interlace                << 5) |

                                  (v->tfcntrflag               << 4) |

                                  (v->finterpflag              << 3) |

                                  ((s->pict_type != AV_PICTURE_TYPE_B) << 2) |

                                  (v->psf                      << 1) |

                                  (v->extended_dmv                 );

    if (s->pict_type != AV_PICTURE_TYPE_I)

        pp->bPic4MVallowed      = v->mv_mode == MV_PMODE_MIXED_MV ||

                                  (v->mv_mode == MV_PMODE_INTENSITY_COMP &&

                                   v->mv_mode2 == MV_PMODE_MIXED_MV);

    if (v->profile == PROFILE_ADVANCED)

        pp->bPicOBMC            = (v->range_mapy_flag  << 7) |

                                  (v->range_mapy       << 4) |

                                  (v->range_mapuv_flag << 3) |

                                  (v->range_mapuv          );

    pp->bPicBinPB               = 0;

    pp->bMV_RPS                 = 0;

    pp->bReservedBits           = 0;

    if (s->picture_structure == PICT_FRAME) {

        pp->wBitstreamFcodes        = v->lumscale;

        pp->wBitstreamPCEelements   = v->lumshift;

    } else {

        

        pp->wBitstreamFcodes        = (v->lumscale << 8) | v->lumscale;

        pp->wBitstreamPCEelements   = (v->lumshift << 8) | v->lumshift;

    }

    pp->bBitstreamConcealmentNeed   = 0;

    pp->bBitstreamConcealmentMethod = 0;

}

        pp->wBackwardRefPictureIndex = ff_dxva2_get_surface_index(ctx, &s->next_picture.f);     pp->wDeblockedPictureIndex  = ff_dxva2_get_surface_index(ctx, &current_picture->f);         pp->wForwardRefPictureIndex = ff_dxva2_get_surface_index(ctx, &s->last_picture.f);         pp->wBackwardRefPictureIndex = ff_dxva2_get_surface_index(ctx, &s->next_picture.f);
static void FUNC_0(AVCodecContext *VAR_0,

                                    struct dxva_context *VAR_1, const VC1Context *VAR_2,

                                    DXVA_PictureParameters *VAR_3)

{

    const MpegEncContext *VAR_4 = &VAR_2->VAR_4;

    const Picture *VAR_5 = VAR_4->current_picture_ptr;



    memset(VAR_3, 0, sizeof(*VAR_3));

    VAR_3->wDecodedPictureIndex    =

    VAR_3->wDeblockedPictureIndex  = ff_dxva2_get_surface_index(VAR_1, &VAR_5->f);

    if (VAR_4->pict_type != AV_PICTURE_TYPE_I && !VAR_2->bi_type)

        VAR_3->wForwardRefPictureIndex = ff_dxva2_get_surface_index(VAR_1, &VAR_4->last_picture.f);

    else

        VAR_3->wForwardRefPictureIndex = 0xffff;

    if (VAR_4->pict_type == AV_PICTURE_TYPE_B && !VAR_2->bi_type)

        VAR_3->wBackwardRefPictureIndex = ff_dxva2_get_surface_index(VAR_1, &VAR_4->next_picture.f);

    else

        VAR_3->wBackwardRefPictureIndex = 0xffff;

    if (VAR_2->profile == PROFILE_ADVANCED) {

        

        VAR_3->wPicWidthInMBminus1 = VAR_0->width  - 1;

        VAR_3->wPicHeightInMBminus1= VAR_0->height - 1;

    } else {

        

        VAR_3->wPicWidthInMBminus1 = VAR_4->mb_width  - 1;

        VAR_3->wPicHeightInMBminus1= VAR_4->mb_height - 1;

    }

    VAR_3->bMacroblockWidthMinus1  = 15;

    VAR_3->bMacroblockHeightMinus1 = 15;

    VAR_3->bBlockWidthMinus1       = 7;

    VAR_3->bBlockHeightMinus1      = 7;

    VAR_3->bBPPminus1              = 7;

    if (VAR_4->picture_structure & PICT_TOP_FIELD)

        VAR_3->bPicStructure      |= 0x01;

    if (VAR_4->picture_structure & PICT_BOTTOM_FIELD)

        VAR_3->bPicStructure      |= 0x02;

    VAR_3->bSecondField            = VAR_2->interlace && VAR_2->fcm != ILACE_FIELD && !VAR_4->first_field;

    VAR_3->bPicIntra               = VAR_4->pict_type == AV_PICTURE_TYPE_I || VAR_2->bi_type;

    VAR_3->bPicBackwardPrediction  = VAR_4->pict_type == AV_PICTURE_TYPE_B && !VAR_2->bi_type;

    VAR_3->bBidirectionalAveragingMode = (1                                           << 7) |

                                      ((VAR_1->cfg->ConfigIntraResidUnsigned != 0)   << 6) |

                                      ((VAR_1->cfg->ConfigResidDiffAccelerator != 0) << 5) |

                                      ((VAR_2->lumscale != 32 || VAR_2->lumshift != 0)     << 4) |

                                      ((VAR_2->profile == PROFILE_ADVANCED)            << 3);

    VAR_3->bMVprecisionAndChromaRelation = ((VAR_2->mv_mode == MV_PMODE_1MV_HPEL_BILIN) << 3) |

                                        (1                                       << 2) |

                                        (0                                       << 1) |

                                        (!VAR_4->quarter_sample                          );

    VAR_3->bChromaFormat           = VAR_2->chromaformat;

    VAR_1->report_id++;

    if (VAR_1->report_id >= (1 << 16))

        VAR_1->report_id = 1;

    VAR_3->bPicScanFixed           = VAR_1->report_id >> 8;

    VAR_3->bPicScanMethod          = VAR_1->report_id & 0xff;

    VAR_3->bPicReadbackRequests    = 0;

    VAR_3->bRcontrol               = VAR_2->rnd;

    VAR_3->bPicSpatialResid8       = (VAR_2->panscanflag  << 7) |

                                  (VAR_2->refdist_flag << 6) |

                                  (VAR_4->loop_filter  << 5) |

                                  (VAR_2->fastuvmc     << 4) |

                                  (VAR_2->extended_mv  << 3) |

                                  (VAR_2->dquant       << 1) |

                                  (VAR_2->vstransform      );

    VAR_3->bPicOverflowBlocks      = (VAR_2->quantizer_mode << 6) |

                                  (VAR_2->multires       << 5) |

                                  (VAR_2->resync_marker  << 4) |

                                  (VAR_2->rangered       << 3) |

                                  (VAR_4->max_b_frames       );

    VAR_3->bPicExtrapolation       = (!VAR_2->interlace || VAR_2->fcm == PROGRESSIVE) ? 1 : 2;

    VAR_3->bPicDeblocked           = ((!VAR_3->bPicBackwardPrediction && VAR_2->overlap)        << 6) |

                                  ((VAR_2->profile != PROFILE_ADVANCED && VAR_2->rangeredfrm) << 5) |

                                  (VAR_4->loop_filter                                     << 1);

    VAR_3->bPicDeblockConfined     = (VAR_2->postprocflag             << 7) |

                                  (VAR_2->broadcast                << 6) |

                                  (VAR_2->interlace                << 5) |

                                  (VAR_2->tfcntrflag               << 4) |

                                  (VAR_2->finterpflag              << 3) |

                                  ((VAR_4->pict_type != AV_PICTURE_TYPE_B) << 2) |

                                  (VAR_2->psf                      << 1) |

                                  (VAR_2->extended_dmv                 );

    if (VAR_4->pict_type != AV_PICTURE_TYPE_I)

        VAR_3->bPic4MVallowed      = VAR_2->mv_mode == MV_PMODE_MIXED_MV ||

                                  (VAR_2->mv_mode == MV_PMODE_INTENSITY_COMP &&

                                   VAR_2->mv_mode2 == MV_PMODE_MIXED_MV);

    if (VAR_2->profile == PROFILE_ADVANCED)

        VAR_3->bPicOBMC            = (VAR_2->range_mapy_flag  << 7) |

                                  (VAR_2->range_mapy       << 4) |

                                  (VAR_2->range_mapuv_flag << 3) |

                                  (VAR_2->range_mapuv          );

    VAR_3->bPicBinPB               = 0;

    VAR_3->bMV_RPS                 = 0;

    VAR_3->bReservedBits           = 0;

    if (VAR_4->picture_structure == PICT_FRAME) {

        VAR_3->wBitstreamFcodes        = VAR_2->lumscale;

        VAR_3->wBitstreamPCEelements   = VAR_2->lumshift;

    } else {

        

        VAR_3->wBitstreamFcodes        = (VAR_2->lumscale << 8) | VAR_2->lumscale;

        VAR_3->wBitstreamPCEelements   = (VAR_2->lumshift << 8) | VAR_2->lumshift;

    }

    VAR_3->bBitstreamConcealmentNeed   = 0;

    VAR_3->bBitstreamConcealmentMethod = 0;

}

static void FUNC_0(AVCodecContext *VAR_0,
struct dxva_context *VAR_1, const VC1Context *VAR_2,
DXVA_PictureParameters *VAR_3)
{ const MpegEncContext *VAR_4 = &VAR_2->VAR_4; const Picture *VAR_5 = VAR_4->current_picture_ptr; memset(VAR_3, 0, sizeof(*VAR_3)); VAR_3->wDecodedPictureIndex    =
VAR_3->wDeblockedPictureIndex  = ff_dxva2_get_surface_index(VAR_1, &VAR_5->f); if (VAR_4->pict_type != AV_PICTURE_TYPE_I && !VAR_2->bi_type)
VAR_3->wForwardRefPictureIndex = ff_dxva2_get_surface_index(VAR_1, &VAR_4->last_picture.f); else
VAR_3->wForwardRefPictureIndex = 0xffff; if (VAR_4->pict_type == AV_PICTURE_TYPE_B && !VAR_2->bi_type)
VAR_3->wBackwardRefPictureIndex = ff_dxva2_get_surface_index(VAR_1, &VAR_4->next_picture.f); else
VAR_3->wBackwardRefPictureIndex = 0xffff; if (VAR_2->profile == PROFILE_ADVANCED) { VAR_3->wPicWidthInMBminus1 = VAR_0->width  - 1; VAR_3->wPicHeightInMBminus1= VAR_0->height - 1; } else { VAR_3->wPicWidthInMBminus1 = VAR_4->mb_width  - 1; VAR_3->wPicHeightInMBminus1= VAR_4->mb_height - 1; } VAR_3->bMacroblockWidthMinus1  = 15; VAR_3->bMacroblockHeightMinus1 = 15; VAR_3->bBlockWidthMinus1       = 7; VAR_3->bBlockHeightMinus1      = 7; VAR_3->bBPPminus1              = 7; if (VAR_4->picture_structure & PICT_TOP_FIELD)
VAR_3->bPicStructure      |= 0x01; if (VAR_4->picture_structure & PICT_BOTTOM_FIELD)
VAR_3->bPicStructure      |= 0x02; VAR_3->bSecondField            = VAR_2->interlace && VAR_2->fcm != ILACE_FIELD && !VAR_4->first_field; VAR_3->bPicIntra               = VAR_4->pict_type == AV_PICTURE_TYPE_I || VAR_2->bi_type; VAR_3->bPicBackwardPrediction  = VAR_4->pict_type == AV_PICTURE_TYPE_B && !VAR_2->bi_type; VAR_3->bBidirectionalAveragingMode = (1                                           << 7) |
((VAR_1->cfg->ConfigIntraResidUnsigned != 0)   << 6) |
((VAR_1->cfg->ConfigResidDiffAccelerator != 0) << 5) |
((VAR_2->lumscale != 32 || VAR_2->lumshift != 0)     << 4) |
((VAR_2->profile == PROFILE_ADVANCED)            << 3); VAR_3->bMVprecisionAndChromaRelation = ((VAR_2->mv_mode == MV_PMODE_1MV_HPEL_BILIN) << 3) |
(1                                       << 2) |
(0                                       << 1) |
(!VAR_4->quarter_sample                          ); VAR_3->bChromaFormat           = VAR_2->chromaformat; VAR_1->report_id++; if (VAR_1->report_id >= (1 << 16))
VAR_1->report_id = 1; VAR_3->bPicScanFixed           = VAR_1->report_id >> 8; VAR_3->bPicScanMethod          = VAR_1->report_id & 0xff; VAR_3->bPicReadbackRequests    = 0; VAR_3->bRcontrol               = VAR_2->rnd; VAR_3->bPicSpatialResid8       = (VAR_2->panscanflag  << 7) |
(VAR_2->refdist_flag << 6) |
(VAR_4->loop_filter  << 5) |
(VAR_2->fastuvmc     << 4) |
(VAR_2->extended_mv  << 3) |
(VAR_2->dquant       << 1) |
(VAR_2->vstransform      ); VAR_3->bPicOverflowBlocks      = (VAR_2->quantizer_mode << 6) |
(VAR_2->multires       << 5) |
(VAR_2->resync_marker  << 4) |
(VAR_2->rangered       << 3) |
(VAR_4->max_b_frames       ); VAR_3->bPicExtrapolation       = (!VAR_2->interlace || VAR_2->fcm == PROGRESSIVE) ? 1 : 2; VAR_3->bPicDeblocked           = ((!VAR_3->bPicBackwardPrediction && VAR_2->overlap)        << 6) |
((VAR_2->profile != PROFILE_ADVANCED && VAR_2->rangeredfrm) << 5) |
(VAR_4->loop_filter                                     << 1); VAR_3->bPicDeblockConfined     = (VAR_2->postprocflag             << 7) |
(VAR_2->broadcast                << 6) |
(VAR_2->interlace                << 5) |
(VAR_2->tfcntrflag               << 4) |
(VAR_2->finterpflag              << 3) |
((VAR_4->pict_type != AV_PICTURE_TYPE_B) << 2) |
(VAR_2->psf                      << 1) |
(VAR_2->extended_dmv                 ); if (VAR_4->pict_type != AV_PICTURE_TYPE_I)
VAR_3->bPic4MVallowed      = VAR_2->mv_mode == MV_PMODE_MIXED_MV ||
(VAR_2->mv_mode == MV_PMODE_INTENSITY_COMP &&
VAR_2->mv_mode2 == MV_PMODE_MIXED_MV); if (VAR_2->profile == PROFILE_ADVANCED)
VAR_3->bPicOBMC            = (VAR_2->range_mapy_flag  << 7) |
(VAR_2->range_mapy       << 4) |
(VAR_2->range_mapuv_flag << 3) |
(VAR_2->range_mapuv          ); VAR_3->bPicBinPB               = 0; VAR_3->bMV_RPS                 = 0; VAR_3->bReservedBits           = 0; if (VAR_4->picture_structure == PICT_FRAME) { VAR_3->wBitstreamFcodes        = VAR_2->lumscale; VAR_3->wBitstreamPCEelements   = VAR_2->lumshift; } else { VAR_3->wBitstreamFcodes        = (VAR_2->lumscale << 8) | VAR_2->lumscale; VAR_3->wBitstreamPCEelements   = (VAR_2->lumshift << 8) | VAR_2->lumshift; } VAR_3->bBitstreamConcealmentNeed   = 0; VAR_3->bBitstreamConcealmentMethod = 0; }