Lines Matching refs:hwctx
145 VDPAUHWContext *hwctx = avctx->hwaccel_context;
167 if (hwctx) {
168 hwctx->reset = 0;
170 if (hwctx->context.decoder != VDP_INVALID_HANDLE) {
171 vdctx->decoder = hwctx->context.decoder;
172 vdctx->render = hwctx->context.render;
177 vdctx->device = hwctx->device;
178 vdctx->get_proc_address = hwctx->get_proc_address;
180 if (hwctx->flags & AV_HWACCEL_FLAG_IGNORE_LEVEL)
183 if (!(hwctx->flags & AV_HWACCEL_FLAG_ALLOW_HIGH_DEPTH) &&
195 dev_ctx = frames_ctx->device_ctx->hwctx;
318 VDPAUHWContext *hwctx = avctx->hwaccel_context;
324 avctx->coded_height == vdctx->height && (!hwctx || !hwctx->reset))
345 AVVDPAUContext *hwctx = avctx->hwaccel_context;
354 if (hwctx && !hwctx->render && hwctx->render2) {
355 status = hwctx->render2(avctx, frame, (void *)&pic_ctx->info,
413 VDPAUHWContext *hwctx;
418 if (av_reallocp(&avctx->hwaccel_context, sizeof(*hwctx)))
421 hwctx = avctx->hwaccel_context;
423 memset(hwctx, 0, sizeof(*hwctx));
424 hwctx->context.decoder = VDP_INVALID_HANDLE;
425 hwctx->device = device;
426 hwctx->get_proc_address = get_proc;
427 hwctx->flags = flags;
428 hwctx->reset = 1;