[FFmpeg-devel] [PATCH 2/2] avutil/hwcontext_d3d12va: added resource Flags support to command line

Dmitrii Ovchinnikov ovchinnikov.dmitrii at gmail.com
Thu Jun 12 02:28:13 EEST 2025


>> We should set these flags in d3d12va_frames_init
>> instead of referencing device->flags directly
Sorry, I didn't fully understand this part.

Is it actually possible to pass the required flags to
the frames context without using the device context?

Or perhaps you meant something like this:
1) Add a D3D12_HEAP_FLAGS heap_flags field to AVD3D12VAFramesContext
2) Set both heap_flags and flags inside d3d12va_frames_init,
   after validating the format,
while still passing the property through the device context?

>> it seemed that the options uav_resource=1,render_target_resource=1,
>> shared_resource=1 are too long.

Maybe we could shorten the word resource to res?
Something like this: uav_res shared_res render_targ_res(rt_res)

Sincerely, Ovchinnikov D.A.


More information about the ffmpeg-devel mailing list