[FFmpeg-devel] [PATCH v2] avcodec/cuvidddec: Guess pixel format based on probed bit depth and chroma sampling
Roman Arzumanyan
r.arzumanyan at visionlabs.ai
Fri Aug 2 17:05:00 EEST 2024
Thanks a lot Timo !
Just for my own education: in my application I follow the usual sequence of
API calls to init hw device context and open the codec. What's the right
place to probe the input? I was under the impression that it's done within
avformat_find_stream_info().
пт, 2 авг. 2024 г. в 16:57, Timo Rothenpieler <timo at rothenpieler.org>:
> On 02/08/2024 15:31, Roman Arzumanyan wrote:
> > Hello world,
> >
> > Please find v2 of the previous patch attached.
> > Both bit depth and chroma sampling (420 and 444 as supported by Nvdec)
> are
> > now taken into account when selecting sw_pix_fmt.
>
> It's actually AV_PIX_FMT_YUV444P16 for both 10 and 12 bit, due to how
> the bits are aligned opposite to what ffmpeg expects in
> AV_PIX_FMT_YUV444P10.
>
> No need to resend for that, will ammend locally.
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
>
> To unsubscribe, visit link above, or email
> ffmpeg-devel-request at ffmpeg.org with subject "unsubscribe".
>
More information about the ffmpeg-devel
mailing list