vd_lavc: add --hwdec-decode-images#17906
Conversation
|
I think users can do it with autoprofile. |
|
autoprofiles don't work, they are evaluated too late. |
In what way is this needed? mpv simply falls back to swdec if hwdec isn't possible because of a cpu filter |
How does this work? Is there PR for this functionality? |
It just hangs with vaapi. With nvdec it fallsback for me only because I get CUDA_ERROR_OUT_OF_MEMORY. d3d11 also doesn't fallback according to #17738 (comment). |
d01312e to
44e777f
Compare
Will be needed in the next commit to check whether a stream is an image from vd_lavc.c.
| } else if (ctx->codec->image && !ctx->hwdec_opts->hwdec_decode_images) { | ||
| MP_VERBOSE(vd, "Not trying to use hardware decoding: source is an " | ||
| "image.\n"); | ||
| break; |
There was a problem hiding this comment.
This should be the second condition, so we print this message instead of the codec or force_swdec one
Allows skipping hardware decoding for images, defaulting to no. Requested in mpv-player#14062 and mpv-player#17838 (comment).
demux: move image from from sh_stream to mp_codec_params
Will be needed in the next commit to check whether a stream is an image from vd_lavc.c.
vd_lavc: add --hwdec-decode-images
Allows skipping hardware decoding for images, defaulting to no.
Requested in #14062, #17838 (comment),
and needed to display tile grid heif and avif images (#17738 (comment)).