[FFmpeg-devel] [PATCH] configure: Check for DXGI_OUTDUPL_FRAME_INFO for the ddagrab filter

Martin Storsjö martin at martin.st
Mon Aug 1 15:56:00 EEST 2022


On Mon, 1 Aug 2022, Hendrik Leppkes wrote:

> On Mon, Aug 1, 2022 at 2:36 PM Martin Storsjö <martin at martin.st> wrote:
>>
>> The DXGI_OUTDUPL_FRAME_INFO type isn't available in Windows API
>> subsets other than "desktop", while the IDXGIOutput1 interface is
>> available for all API subsets.
>>
>> This fixes compilation for UWP/"Windows Store" configurations (and
>> older API subsets like Windows Phone).
>
> The entire desktop duplication API is not present on Phone targets
> (its called "desktop" duplication afterall). I think it would be
> better to check for a primary DDA function, instead of some auxiliary
> structure.

FWIW, based on the MSVC error output 
(http://fate.ffmpeg.org/log.cgi?log=compile&slot=arm-msvc2019-phone&time=20220730152801), 
the only hard errors it listed were the undefined types 
(DXGI_OUTDUPL_POINTER_SHAPE_INFO and DXGI_OUTDUPL_FRAME_INFO) - but I 
presume that IDXGIOutputDuplication_AcquireNextFrame and 
IDXGIOutputDuplication_ReleaseFrame could be good candidates for checking 
too - I don't see anything else in that error log that one could check 
for?

// Martin


More information about the ffmpeg-devel mailing list