Lines Matching defs:avctx

42 static void fill_picture_parameters(AVCodecContext *avctx,
51 pp->wDecodedPictureIndex = ff_dxva2_get_surface_index(avctx, ctx, current_picture->f);
54 pp->wForwardRefPictureIndex = ff_dxva2_get_surface_index(avctx, ctx, s->last_picture.f);
58 pp->wBackwardRefPictureIndex = ff_dxva2_get_surface_index(avctx, ctx, s->next_picture.f);
108 static void fill_quantization_matrices(AVCodecContext *avctx,
125 static void fill_slice(AVCodecContext *avctx,
152 static int commit_bitstream_and_slice_buffer(AVCodecContext *avctx,
156 const struct MpegEncContext *s = avctx->priv_data;
157 AVDXVAContext *ctx = DXVA_CONTEXT(avctx);
169 if (ff_dxva2_is_d3d11(avctx)) {
179 if (avctx->pix_fmt == AV_PIX_FMT_DXVA2_VLD) {
197 av_log(avctx, AV_LOG_ERROR, "Failed to build bitstream");
213 if (ff_dxva2_is_d3d11(avctx))
218 if (avctx->pix_fmt == AV_PIX_FMT_DXVA2_VLD)
226 if (ff_dxva2_is_d3d11(avctx)) {
237 if (avctx->pix_fmt == AV_PIX_FMT_DXVA2_VLD) {
248 return ff_dxva2_commit_buffer(avctx, ctx, sc,
255 static int dxva2_mpeg2_start_frame(AVCodecContext *avctx,
259 const struct MpegEncContext *s = avctx->priv_data;
260 AVDXVAContext *ctx = DXVA_CONTEXT(avctx);
264 if (!DXVA_CONTEXT_VALID(avctx, ctx))
268 fill_picture_parameters(avctx, ctx, s, &ctx_pic->pp);
269 fill_quantization_matrices(avctx, ctx, s, &ctx_pic->qm);
277 static int dxva2_mpeg2_decode_slice(AVCodecContext *avctx,
280 const struct MpegEncContext *s = avctx->priv_data;
286 avpriv_request_sample(avctx, "%d slices in dxva2",
295 fill_slice(avctx, s, &ctx_pic->slice[ctx_pic->slice_count++], position,
300 static int dxva2_mpeg2_end_frame(AVCodecContext *avctx)
302 struct MpegEncContext *s = avctx->priv_data;
309 ret = ff_dxva2_common_end_frame(avctx, s->current_picture_ptr->f,
314 ff_mpeg_draw_horiz_band(s, 0, avctx->height);