Lines Matching defs:hwframe_ctx
122 AVHWFramesContext *hwframe_ctx = (AVHWFramesContext*)ctx->hwframe->data;
219 hwframe_ctx = (AVHWFramesContext*)ctx->hwframe->data;
271 if (hwframe_ctx->pool && (
272 hwframe_ctx->width < avctx->width ||
273 hwframe_ctx->height < avctx->height ||
274 hwframe_ctx->format != AV_PIX_FMT_CUDA ||
275 hwframe_ctx->sw_format != avctx->sw_pix_fmt)) {
277 av_log(avctx, AV_LOG_DEBUG, "width: %d <-> %d\n", hwframe_ctx->width, avctx->width);
278 av_log(avctx, AV_LOG_DEBUG, "height: %d <-> %d\n", hwframe_ctx->height, avctx->height);
279 av_log(avctx, AV_LOG_DEBUG, "format: %s <-> cuda\n", av_get_pix_fmt_name(hwframe_ctx->format));
281 av_get_pix_fmt_name(hwframe_ctx->sw_format), av_get_pix_fmt_name(avctx->sw_pix_fmt));
325 if (!hwframe_ctx->pool) {
326 hwframe_ctx->format = AV_PIX_FMT_CUDA;
327 hwframe_ctx->sw_format = avctx->sw_pix_fmt;
328 hwframe_ctx->width = avctx->width;
329 hwframe_ctx->height = avctx->height;
788 AVHWFramesContext *hwframe_ctx;
854 hwframe_ctx = (AVHWFramesContext*)ctx->hwframe->data;
856 ctx->hwdevice = av_buffer_ref(hwframe_ctx->device_ref);
881 hwframe_ctx = (AVHWFramesContext*)ctx->hwframe->data;
884 device_ctx = hwframe_ctx->device_ctx;