Lines Matching defs:avctx
92 static int kmsgrab_get_fb(AVFormatContext *avctx,
96 KMSGrabContext *ctx = avctx->priv_data;
103 av_log(avctx, AV_LOG_ERROR, "Failed to get framebuffer "
109 av_log(avctx, AV_LOG_ERROR, "Plane %"PRIu32" framebuffer "
116 av_log(avctx, AV_LOG_ERROR, "No handle set on framebuffer.\n");
124 av_log(avctx, AV_LOG_ERROR, "Failed to get PRIME fd from "
156 static int kmsgrab_get_fb2(AVFormatContext *avctx,
160 KMSGrabContext *ctx = avctx->priv_data;
168 av_log(avctx, AV_LOG_ERROR, "Failed to get framebuffer "
173 av_log(avctx, AV_LOG_ERROR, "Plane %"PRIu32" framebuffer "
180 av_log(avctx, AV_LOG_ERROR, "Plane %"PRIu32" framebuffer "
187 av_log(avctx, AV_LOG_ERROR, "No handle set on framebuffer.\n");
233 av_log(avctx, AV_LOG_ERROR, "Failed to get PRIME fd from "
262 static int kmsgrab_read_packet(AVFormatContext *avctx, AVPacket *pkt)
264 KMSGrabContext *ctx = avctx->priv_data;
288 av_log(avctx, AV_LOG_ERROR, "Failed to get plane "
294 av_log(avctx, AV_LOG_ERROR, "Plane %"PRIu32" no longer has "
308 err = kmsgrab_get_fb2(avctx, plane, desc);
311 err = kmsgrab_get_fb(avctx, plane, desc);
328 &kmsgrab_free_desc, avctx, 0);
344 &kmsgrab_free_frame, avctx, 0);
408 static av_cold int kmsgrab_read_header(AVFormatContext *avctx)
410 KMSGrabContext *ctx = avctx->priv_data;
423 av_log(avctx, AV_LOG_ERROR, "Failed to open DRM device.\n");
432 av_log(avctx, AV_LOG_WARNING, "Failed to set universal planes "
440 av_log(avctx, AV_LOG_ERROR, "Failed to get plane %"PRId64": "
447 av_log(avctx, AV_LOG_ERROR, "Plane %"PRId64" does not have "
456 av_log(avctx, AV_LOG_ERROR, "Failed to get plane "
467 av_log(avctx, AV_LOG_VERBOSE, "Failed to get "
473 av_log(avctx, AV_LOG_DEBUG, "Plane %"PRIu32": "
492 av_log(avctx, AV_LOG_ERROR, "No usable planes found on "
495 av_log(avctx, AV_LOG_ERROR, "No usable planes found.\n");
501 av_log(avctx, AV_LOG_INFO, "Using plane %"PRIu32" to "
510 av_log(avctx, AV_LOG_INFO, "GETFB2 not supported, "
514 av_log(avctx, AV_LOG_ERROR, "Failed to get "
520 av_log(avctx, AV_LOG_INFO, "Template framebuffer is "
530 av_log(avctx, AV_LOG_ERROR, "No handle set on framebuffer: "
540 av_log(avctx, AV_LOG_ERROR, "Framebuffer pixel format "
552 av_log(avctx, AV_LOG_ERROR, "Framebuffer pixel format "
562 av_log(avctx, AV_LOG_ERROR, "Framebuffer format modifier "
571 av_log(avctx, AV_LOG_VERBOSE, "Format is %s, from "
592 av_log(avctx, AV_LOG_ERROR, "Unsupported format %s.\n",
600 av_log(avctx, AV_LOG_ERROR, "Failed to get "
607 av_log(avctx, AV_LOG_INFO, "Template framebuffer is %"PRIu32": "
615 av_log(avctx, AV_LOG_ERROR, "No handle set on framebuffer: "
622 stream = avformat_new_stream(avctx, NULL);
650 av_log(avctx, AV_LOG_ERROR, "Failed to initialise "
669 static av_cold int kmsgrab_read_close(AVFormatContext *avctx)
671 KMSGrabContext *ctx = avctx->priv_data;