> Quoting Wu, Tong1 (2022-07-01 08:51:28) > > Plus, do you think adding a AV_PIX_FMT_FLAG_HWACCEL check for the > > input pixel format and change the function name to > > av_hwdevice_get_type_by_hwaccel_pix_fmt will help? > > I'd prefer not to, that name is way too long > > > Let users know only hardware pixel formats are acceptable for this > > function and like I said at this moment not any hardware format is > > supported by more than one hardware devices. > > Maybe just document in the doxy that it will return the preferred device type > for a pixel format.
Sure, will do it in v3. Thanks for the comments. > > Overall I don't insist on any changes here, mainly wondering if anyone can > think of a potential future case where we'd want a single pixel format > supported by multiple devices > > -- > Anton Khirnov > _______________________________________________ > ffmpeg-devel mailing list > ffmpeg-devel@ffmpeg.org > https://ffmpeg.org/mailman/listinfo/ffmpeg-devel > > To unsubscribe, visit link above, or email ffmpeg-devel-requ...@ffmpeg.org > with subject "unsubscribe". _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".