[FFmpeg-devel] [PATCH] avcodec/cuvidddec: Guess pixel format based on probed bit depth

Roman Arzumanyan r.arzumanyan at visionlabs.ai
Thu Aug 1 16:54:34 EEST 2024


Hello world,

This patch adds a pixel format guess based on probed bit depth.
With current FFMpeg ToT, when the cuvid codec is opened, input sw_pix_fmt
is AV_PIX_FMT_NV12 until the first frame is decoded. Even if input has 10
or 12 bit depth, the format will be NV12 for some time.

What's the need for this patch ?
Applications that rely on libavcodec will have a chance to calculate the
proper amount of vRAM required to store a reconstructed video frame before
decoding begins.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Guess-pixel-format-based-on-bit-depth.patch
Type: text/x-patch
Size: 1928 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20240801/68141cfd/attachment.bin>


More information about the ffmpeg-devel mailing list