Lines Matching defs:ctx_pic
192 struct dxva2_picture_context *ctx_pic = s->current_picture_ptr->hwaccel_picture_private;
229 for (i = 0; i < ctx_pic->slice_count; i++) {
231 slice = &ctx_pic->slice[i];
240 if (i < ctx_pic->slice_count - 1)
259 memcpy(current, &ctx_pic->bitstream[position], size);
279 if (i < ctx_pic->slice_count)
307 ctx_pic->slice,
308 ctx_pic->slice_count * sizeof(*ctx_pic->slice),
318 struct dxva2_picture_context *ctx_pic = v->s.current_picture_ptr->hwaccel_picture_private;
322 assert(ctx_pic);
324 fill_picture_parameters(avctx, ctx, v, &ctx_pic->pp);
326 ctx_pic->slice_count = 0;
327 ctx_pic->bitstream_size = 0;
328 ctx_pic->bitstream = NULL;
338 struct dxva2_picture_context *ctx_pic = current_picture->hwaccel_picture_private;
341 if (ctx_pic->slice_count >= MAX_SLICES) {
343 ctx_pic->slice_count);
353 if (!ctx_pic->bitstream)
354 ctx_pic->bitstream = buffer;
355 ctx_pic->bitstream_size += size;
357 position = buffer - ctx_pic->bitstream;
358 fill_slice(avctx, &ctx_pic->slice[ctx_pic->slice_count++], position, size);
365 struct dxva2_picture_context *ctx_pic = v->s.current_picture_ptr->hwaccel_picture_private;
368 if (ctx_pic->slice_count <= 0 || ctx_pic->bitstream_size <= 0)
372 &ctx_pic->pp, sizeof(ctx_pic->pp),