Lines Matching refs:pic
79 VAAPIEncodePicture *pic)
83 VAAPIEncodeVP9Picture *hpic = pic->priv_data;
84 VAEncPictureParameterBufferVP9 *vpic = pic->codec_picture_params;
88 vpic->reconstructed_frame = pic->recon_surface;
89 vpic->coded_buf = pic->output_buffer;
97 switch (pic->type) {
99 av_assert0(pic->nb_refs == 0);
105 av_assert0(pic->nb_refs == 1);
107 VAAPIEncodeVP9Picture *href = pic->refs[0]->priv_data;
123 av_assert0(pic->nb_refs == 2);
125 VAAPIEncodeVP9Picture *href0 = pic->refs[0]->priv_data,
126 *href1 = pic->refs[1]->priv_data;
127 av_assert0(href0->slot < pic->b_depth + 1 &&
128 href1->slot < pic->b_depth + 1);
130 if (pic->b_depth == ctx->max_b_depth) {
135 vpic->refresh_frame_flags = 0xfe << pic->b_depth & 0xff;
136 hpic->slot = 1 + pic->b_depth;
151 pic->display_order);
154 pic->display_order, hpic->slot);
160 for (i = 0; i < pic->nb_refs; i++) {
161 VAAPIEncodePicture *ref_pic = pic->refs[i];
168 vpic->pic_flags.bits.frame_type = (pic->type != PICTURE_TYPE_IDR);
169 vpic->pic_flags.bits.show_frame = pic->display_order <= pic->encode_order;
171 if (pic->type == PICTURE_TYPE_IDR)
173 else if (pic->type == PICTURE_TYPE_P)