MCPcopy Create free account
hub / github.com/FFmpeg/FFmpeg / d3d12va_discard_command_allocator

Function d3d12va_discard_command_allocator

libavcodec/d3d12va_encode.c:119–131  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

117}
118
119static int d3d12va_discard_command_allocator(AVCodecContext *avctx, ID3D12CommandAllocator *pAllocator, uint64_t fence_value)
120{
121 D3D12VAEncodeContext *ctx = avctx->priv_data;
122
123 CommandAllocator allocator = {
124 .command_allocator = pAllocator,
125 .fence_value = fence_value,
126 };
127
128 av_fifo_write(ctx->allocator_queue, &allocator, 1);
129
130 return 0;
131}
132
133static int d3d12va_encode_wait(AVCodecContext *avctx,
134 FFHWBaseEncodePicture *base_pic)

Callers 2

d3d12va_encode_issueFunction · 0.85

Calls 1

av_fifo_writeFunction · 0.85

Tested by

no test coverage detected